How to customize Continue.dev prompts
Continue.dev installed and configured
What this does
Modifies the system prompts and context instructions that Continue.dev sends to the language model, tailoring responses for code analysis, refactoring, or documentation tasks. After completion, prompts reflect project-specific rules and style.
Steps
Open the config file. Click the gear icon in the Continue sidebar or open
~/.continue/config.jsondirectly.Locate or create the
systemMessageblock. Add a top-level key calledsystemMessagewith a string value describing the desired behavior.{ "systemMessage": "You are a security-focused coding assistant. Always flag potential vulnerabilities and suggest mitigations. Prefer concise, annotated code examples." }Define context providers for project awareness.
"contextProviders": [ { "name": "code", "description": "Current file context" }, { "name": "docs", "description": "Project documentation" } ]Customize slash commands (optional). Define custom slash commands under
slashCommandsto trigger specialized prompts."slashCommands": [ { "name": "review", "description": "Run a security review on the current file", "prompt": "{{{ input }}}\n\nReview the above code for security issues." } ]Save and verify behavior. Reload VS Code and type a message or use a slash command.
Verification
Select-String -Path ~/.continue/config.json -Pattern "systemMessage|slashCommands"
# Expected: matching lines confirming custom entries exist
Common failures
- Model ignores custom prompts — The model may not respect
systemMessage. Check provider documentation. - Config not reloading — Run "Developer: Reload Window" after every save.
- JSON syntax error on save — Validate with a JSON linter before saving.
- Slash command not appearing — The command name must be lowercase.
- Context overflow — Keep
systemMessageunder 500 tokens for most models.
Operator checkpoint
Before treating this as solved, write down the local runtime, model or package version, hardware/backend if relevant, and the verification output. This keeps the guide useful as a Will-It-Run style decision instead of a one-off command transcript.