Imtiaz RayhanFounder & EditorPrompting Continue.dev well starts before you type a prompt. Continue is an open-source AI coding extension for VS Code and JetBrains, and its defining feature is explicit configurability — workspace rules in .continue/rules/, a declarative config.yaml file (which superseded legacy config.json setups), custom slash commands, context providers, MCP servers, and per-task model routing. Out of the box it behaves like a plain assistant. Tuned, it becomes a personal agent harness shaped to your codebase. The interesting work is deciding what goes into config and rules, because once you do, day-to-day prompts stay short.
What Continue.dev Is
Continue installs into VS Code or JetBrains and adds chat, inline edits, agent mode, and slash commands, as documented in the Continue documentation. Three traits set it apart:
- It is open source. The extension, defaults, and configuration schema are public on GitHub. You can inspect how context is assembled, fork it, and ship custom internal builds.
- It is config- and rule-driven. Repository rules in
.continue/rules/and aconfig.yamlfile describe your models, prompts, context providers, and MCP integrations in plain text that checks into git. - It is BYO-model. Continue does not lock you to one vendor. You can wire in frontier models from Anthropic, OpenAI, Google, and DeepSeek alongside local open-weight models via Ollama or LM Studio — often several at once, routed by role.
For the broader category, see The Complete Guide to Prompting AI Coding Agents and the tool use glossary entry. Continue sits in the same IDE-integrated family as Cursor and Windsurf, trading curated lock-in for an open, composable core.
config.yaml and .continue/rules/ Are the Real Prompt
Most coding assistants bury configuration behind settings panels. Continue puts it in two version-controlled surfaces:
config.yaml(superseding legacyconfig.json). Declares your model endpoints, role assignments (chat,edit,apply,autocomplete,embed), reusable prompts, context providers, and MCP servers..continue/rules/*.md. Markdown rule files in your repository that Continue auto-detects and applies across chat, edit, and agent modes, detailed in the Continue rules deep dive.
Splitting durable guidance out of your chat box changes how you work:
- Rules hold standing constraints. Framework versions, directory boundaries, error-handling patterns, and forbidden edits live in
.continue/rules/(for example,.continue/rules/testing.mdor.continue/rules/security.md), optionally scoped to matching file globs so rules only load when relevant. - Prompts hold repeatable workflows. Named commands like
/review,/test, and/commitpackage tasks you trigger explicitly. - User messages hold only the delta. You describe today's specific change and acceptance criteria instead of re-explaining the codebase on every turn.
The implication: you are not just writing prompts, you are designing a workflow. A tuned config.yaml plus two or three focused rule files makes daily prompts trivially short. Skipping them puts all the work back on every message you type.
Custom Slash Commands and Reusable Prompts
A custom slash command is a named prompt template defined in config.yaml or a .continue/prompts/ file, optionally paired with a specific model. You trigger it with /name, followed by any task-specific arguments, and Continue runs the template with the context you declared.
Good candidates are workflows you repeat every week:
/review— a code review pass on the selection or diff with your team's security, readability, and test-coverage checklist baked in./test— generate tests for the selected function using your project's exact test runner and mocking conventions./docs— write or update doc comments for the current symbol in house style./explain— explain unfamiliar code using your domain vocabulary./commit— draft a conventional-commit message from the staged git diff.
The payoff is two-sided. Prompts stay short — you type /test instead of repeating three paragraphs of framework rules. And outputs stay consistent — every developer sharing the repository config triggers the same prompt and gets the same shape. A reliable heuristic: if you type the same opening paragraph three times in a week, move it into .continue/rules/ (if always active) or a slash command (if triggered on demand).
Context Providers and MCP Servers
A context provider is a named source Continue splices directly into a prompt — current selection, open files, git diff, terminal output, codebase search, or indexed documentation URLs. Alongside built-in providers, Continue supports Model Context Protocol (MCP) servers in agent mode so the model can query live external tools such as GitHub issues, Sentry errors, Postgres schemas, or internal APIs without bespoke extension plugins.
Three prompting patterns unlock once context providers and MCP servers are wired up:
- Explicit context beats copy-pasting. Reference the diff or terminal provider instead of pasting stale text — the prompt stays short and the context stays live.
- Scoped context beats whole-file dumps. Attaching only the selected function, changed hunk, or targeted glob keeps attention focused and token bills predictable.
- Live docs and MCP tools beat training memory. Pointing a docs provider at a fast-moving framework or calling a database schema tool via MCP grounds the model in reality instead of guesswork.
If a prompt keeps failing because "the model does not know X," the fix is almost always a rule file, a context provider, or an MCP tool — not a longer prose prompt. That matches the context-in-config principle in the Cursor prompting guide: keep stable knowledge in files and tools, and reserve your prompt for the change.
Model Routing — Different Tasks, Different Models
Continue's biggest cost and latency advantage is assigning distinct models to distinct roles in config.yaml. With late-2026 API pricing spanning two orders of magnitude — from $0.10 per million input tokens for lightweight tiers to $8 per million for flagship reasoning tiers on Anthropic's pricing page and OpenAI's API pricing page — sending every keystroke to a frontier reasoning model wastes budget fast.
| Role | What it does | December 2026 model fit |
|---|---|---|
| Autocomplete | Line-by-line ghost text as you type | Ultra-low-latency, low-cost: Claude Haiku 5.5 ($0.10/$0.50 up to 100K), GPT-6 Luna ($0.10/$0.50), Gemini 3.5 Flash-Lite ($0.30/$2.50), or a local Ollama model |
| Chat / Agent | Multi-step reasoning, architecture, and tool loops | High-capability 1M+ context models: Claude Opus 5.5 ($4/$20), Claude Sonnet 5.5 ($2/$10), GPT-6.2 Sol ($2/$10, 1.05M), or Gemini 4 Neon ($3/$15) |
| Edit | Targeted inline edits under the cursor | Fast, code-strong hosted models: Claude Sonnet 5.5 ($2/$10), GPT-6.2 Sol ($2/$10), DeepSeek V4 Pro ($1.32/$3.96 peak, half off-peak, MIT open weights), or Mistral Large 4 ($0.70/$2.10) |
| Apply | Merges a proposed block into a clean file diff | Small, fast model: GPT-6 Luna ($0.10/$0.50), Claude Haiku 5.5 ($0.10/$0.50 up to 100K), or a fast local model |
| Embeddings | Codebase indexing for semantic retrieval | Dedicated embedding model, often run locally via Ollama |
Exact model slugs depend on your provider and Continue release, so verify identifiers in your provider console and Continue docs. The strategy stays durable: route by task, not habit. Reserve frontier reasoning models such as Claude Opus 5.5, Claude Fable 5.2 ($8/$40), or GPT-6.2 Astra ($8/$40) for hard multi-file planning, and route autocomplete and apply to sub-dollar tiers or local hardware.
A Tuned config.yaml and Rules Example
This illustrative snippet shows how config.yaml and .continue/rules/ fit together. Schema fields evolve across releases; check the Continue docs for your installed version.
# .continue/config.yaml (illustrative — check Continue docs for exact model slugs)
name: workspace-assistant
version: 1.0.0
schema: v1
models:
- name: Claude Opus 5.5 (Agent & Hard Edits)
provider: anthropic
model: claude-opus-5-5
roles: [chat, edit]
- name: GPT-6.2 Sol (Everyday Chat & Edits)
provider: openai
model: gpt-6.2-sol
roles: [chat, edit]
- name: Claude Haiku 5.5 (Fast Apply & Autocomplete)
provider: anthropic
model: claude-haiku-5-5
roles: [apply, autocomplete]
- name: Local Ollama Fallback
provider: ollama
model: llama4-maverick-local
roles: [chat, autocomplete]
context:
- provider: currentFile
- provider: open
- provider: diff
- provider: terminal
- provider: docs
mcpServers:
- name: github
command: npx
args: ["-y", "@modelcontextprotocol/server-github"]
prompts:
- name: review
description: Review selected code against the team checklist
prompt: |
Review the selected code as a senior engineer on this team.
Check correctness, error handling, test coverage, and security.
Cite exact line numbers and propose minimal fixes.
- name: test
description: Generate Vitest unit tests matching adjacent files
prompt: |
Write tests for the selected function using Vitest.
Cover one happy path, one edge case, and one error case.
Match the style and assertions of adjacent test files.
- name: commit
description: Draft a conventional commit message from staged changes
prompt: |
Draft a Conventional Commits message for the staged git diff.
Use feat/fix/refactor/docs/test/chore, wrap body lines at 72 chars,
and omit attribution trailers.
Pair that with a focused workspace rule file that applies automatically across chat, edit, and agent modes:
---
name: TypeScript & Testing Standards
globs: ["src/**/*.ts", "src/**/*.tsx"]
---
- Strict TypeScript only — never introduce `any` or suppress errors with `@ts-ignore`.
- Validate all external payloads with Zod at API boundaries.
- Run `pnpm typecheck && pnpm test` before claiming a change is complete.
- Never modify files under `prisma/migrations/` directly.
Notice how little your chat prompt needs to repeat. /review already carries the team checklist, the rule file automatically enforces TypeScript and migration boundaries whenever you touch src/, and the diff context provider supplies live staged changes without copy-pasting.
A Tuned Prompt Example
Here is a hypothetical session showing how compact prompting becomes once config.yaml and .continue/rules/ carry the standing context:
[In the Continue panel, with the target module and failing test file open.]
> /test selected
[Continue runs the `test` prompt from config.yaml, automatically applies
.continue/rules/typescript-testing.md, pulls open-file context, routes to
Claude Opus 5.5 or GPT-6.2 Sol, and generates Vitest cases matching adjacent files.]
[You review the diff, apply it via the fast apply model, and run the tests. One fails.]
> The third test expects an empty string to throw, but `parseToken()` returns null
> by design. Update only the third test to assert `null`. Leave the other two tests
> and the implementation untouched.
[Scoped inline edit modifies only the third test case.]
Two prompts, both short. The first leans on a reusable prompt, workspace rules, and context providers. The second is an atomic, bounded instruction. Neither wastes tokens restating framework style or strict-mode rules, matching the atomic-prompt discipline in the Aider prompting guide.
When Continue Wins
Continue is strongest in specific environments:
- You want full control.
config.yamland.continue/rules/are plain text in git. No hidden routing or opaque system prompts. - You have strict privacy or compliance requirements. Routing autocomplete, embeddings, or all roles to local models (such as Llama 4 Maverick, DeepSeek V4 Pro, or Mistral Large 4 on private infrastructure or Ollama) keeps proprietary code off third-party APIs.
- You have specialized team conventions. Modular
.continue/rules/*.mdfiles and custom slash commands encode domain rules cleanly across teammates. - You mix multiple providers. If your team splits workloads across Anthropic, OpenAI, Google, DeepSeek, and local endpoints, Continue unifies them in one extension.
- You work across VS Code and JetBrains. Continue runs in both editors with the same configuration model.
Where Continue is weaker: a first-day user who skips configuration sees a generic side panel and assumes the tool is underwhelming. Curated IDEs front-load out-of-the-box polish; Continue rewards an hour of intentional setup with long-term flexibility.
Common Anti-Patterns
- Skipping
config.yamland.continue/rules/. Using Continue with defaults and wondering why it feels generic. Fix: write one workspace rule file and three custom prompts that match your weekly workflow. - Still maintaining a monolithic legacy
config.json. Older JSON setups miss newer modular YAML capabilities and team-sharing ergonomics. Fix: migrate toconfig.yamland split standing guidelines into.continue/rules/*.md. - Ignoring model routing. Sending autocomplete keystrokes to Claude Opus 5.5 or GPT-6.2 Astra burns budget; sending multi-file refactors to a tiny autocomplete model wastes your time. Fix: match each role to a fitting price-performance tier and revisit quarterly as pricing moves.
- Dumping every instruction into one giant rule file. Global rules that apply to every file dilute model focus on unrelated tasks. Fix: split
.continue/rules/by domain and scope them withglobs. - Copy-pasting diffs or docs that providers or MCP can fetch. Manual pastes go stale and bloat chat turns. Fix: attach the built-in
diff/terminalproviders or wire an MCP server for live lookups. - Treating config as write-once. Model slugs, MCP servers, and team conventions evolve. Fix: version-control
.continue/rules/in the repo and prune unused slash commands regularly.
FAQ
How is prompting Continue.dev different from prompting Cursor or Windsurf?
Cursor and Windsurf (now Devin Desktop) front-load curated IDE workflows; Continue front-loads openness and modularity. With Cursor you lean on @file mentions and project rules; with Windsurf you lean on flow awareness and workspace rules; with Continue you define .continue/rules/, custom prompts, context providers, MCP servers, and multi-vendor model routing directly in config.yaml. Tuned Continue prompts are often shorter because more of the work lives in git-tracked config.
Do I need to use local models?
No. Continue works seamlessly with hosted frontier models — Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2 Sol, Gemini 4 Neon, DeepSeek V4 Pro, and more. Local model support via Ollama or LM Studio is an option, not a mandate. Many teams mix both: local models for embeddings and autocomplete, hosted frontier models for chat, edits, and agent mode.
Is Continue.dev really free?
The core extension is open source with no license fee. What costs money is the model inference you connect — route to Anthropic, OpenAI, or Google and you pay their API rates directly rather than an editor markup. Route to local open-weight models and there is no per-token API bill beyond your hardware.
How much config is too much?
If you cannot remember what a slash command does without checking config.yaml, delete it. If a rule file contradicts another rule file, merge or scope them with globs. Start with one project rule file and two or three daily commands, then grow strictly from repeated friction.
Can I share rules and config across a team?
Yes. Checking .continue/rules/*.md into your repository ensures every contributor automatically inherits the same project standards across chat, edit, and agent modes, while keeping API keys in environment variables or personal user config so credentials never touch git.