Skip to content

Menu

Continue Cheat Sheet: config.yaml, Model Roles, Rules, MCP and cn CLI

Checked against Continue Continue 2.0.0 (VS Code extension, 19 Jun 2026) on 28 November 2026. Each section links to the official docs it was checked against.

This sheet is for developers who still run Continue, the open-source assistant for VS Code, JetBrains and the terminal. It covers the 2.0.0 release from June 2026 and the docs at docs.continue.dev. Read the status note below first, because the project is no longer actively developed.

When to use what

Status first. The GitHub README now says the continuedev/continue repository is no longer actively maintained and is read-only, and describes 2.0.0 as a final release of the VS Code extension, CLI and JetBrains plugin. The extension keeps working, but don't expect fixes for new model APIs. If you're choosing a tool today, compare it with Cline or Zed first; if you already have a tuned config, it's reasonable to keep using it.

Inside Continue, pick the mode by risk. Chat has no tools. Plan gives read-only tools for exploring. Agent can change files and asks before each tool call by default. Cmd/Ctrl + . cycles between them.

Keep everything in config.yaml; the old config.json is deprecated. Give each model the roles it's good at: a large model for chat and edit, a small fast one for autocomplete. Rules belong in .continue/rules/ as Markdown with frontmatter, so they travel with the repo. Converting older JSON snippets is easy with the YAML/JSON converter, and the YAML validator catches indentation slips before Continue silently ignores a block.

Other top-level keys are context, prompts, docs, mcpServers and data. YAML anchors need a %YAML 1.1 header.

name: my-config version: 1.0.0 schema: v1

The three required top-level keys

Try it: YAML ValidatorFrom the docs, not run by us
models: - name: GPT-4 provider: openai model: gpt-4 roles: [chat, edit]

Declare a model with provider, model id and the jobs it does

From the docs, not run by us
roles: [chat, edit, apply, autocomplete, embed, rerank, summarize]

Every role value; the default is chat, edit, apply and summarize

From the docs, not run by us
apiKey: ${{ secrets.OPENAI_API_KEY }}

Pull a key from secrets rather than writing it into the file

From the docs, not run by us
capabilities: [tool_use, image_input]

Tell Continue the model can call tools or read images

From the docs, not run by us
apiBase: http://localhost:11434

Point a model at a self-hosted or proxy endpoint

From the docs, not run by us
rules: - Always use TypeScript strict mode

Inline rules in config, next to the .continue/rules files

From the docs, not run by us
context: - provider: file

Let you @-mention any file

From the docs, not run by us
- provider: diff

Add your current Git diff to the conversation

From the docs, not run by us
- provider: terminal

Add the last terminal output, useful for errors

From the docs, not run by us
- provider: problems

Add the editor's diagnostics for the open file

From the docs, not run by us
- provider: repo-map params: includeSignatures: true

Give the model an outline of the repo with function signatures

From the docs, not run by us
- provider: http params: url: https://example.com/ctx

Fetch context from your own HTTP endpoint

From the docs, not run by us

Rules aren't sent with autocomplete or apply requests.

.continue/rules/

Workspace folder for Markdown rule files

Try it: AGENTS.md / CLAUDE.md GeneratorFrom the docs, not run by us
name: TypeScript rules

Frontmatter name shown in the UI

From the docs, not run by us
globs: ["**/*.ts", "**/*.tsx"]

Apply the rule only when matching files are in play

From the docs, not run by us
alwaysApply: true

Include the rule in every request; false leaves it to globs or the description

From the docs, not run by us
description: Use when touching database code

Lets agent mode pull the rule in when the task matches

From the docs, not run by us
01-general.md, 02-api.md

Files load in alphabetical order, so prefix numbers to control it

From the docs, not run by us

Shortcuts come from https://docs.continue.dev/customize/overview and https://docs.continue.dev/ide-extensions/agent/quick-start.

mcpServers: - name: SQLite command: uvx args: [mcp-server-sqlite, --db-path, ./test.db]

Run a stdio MCP server; env and cwd are optional

Try it: MCP Config GeneratorFrom the docs, not run by us
connectionTimeout: 30000

Wait longer for a slow server to connect

From the docs, not run by us
Cmd/Ctrl + L

Open the chat sidebar in VS Code (Cmd/Ctrl + J in JetBrains)

From the docs, not run by us
Cmd/Ctrl + .

Cycle between Chat, Plan and Agent modes

From the docs, not run by us
Plan mode

Read-only tools for exploring code without changing it

From the docs, not run by us
Agent mode

All tools enabled; asks permission per tool call by default

From the docs, not run by us
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash

Install cn on macOS or Linux

From the docs, not run by us
cn

Start the interactive terminal agent in the current project

From the docs, not run by us
cn -p "write tests for utils.ts"

Run headless with one prompt, for scripts

From the docs, not run by us
cn --readonly

Plan mode: read-only tools only

From the docs, not run by us
cn --config ./config.yaml

Use a specific config file

From the docs, not run by us
cn --allow Bash --exclude Write

Allow or block named tools; both flags repeat

From the docs, not run by us
cn --resume

Continue the previous session

From the docs, not run by us
cn --rule ./rules/style.md

Add a rule for this run; repeatable

From the docs, not run by us

Worked example: A minimal config.yaml with a chat model, autocomplete and one rule

Write the config:

name: team
version: 1.0.0
schema: v1
models:
  - name: Main
    provider: openai
    model: gpt-4
    apiKey: ${{ secrets.OPENAI_API_KEY }}
    roles: [chat, edit, apply]
  - name: Local autocomplete
    provider: ollama
    model: qwen2.5-coder:1.5b
    roles: [autocomplete]
context:
  - provider: diff
  - provider: terminal

Then add .continue/rules/01-tests.md:

---
name: Test style
globs: ["**/*.test.ts"]
---
Use Vitest and describe blocks; no snapshot tests.

Reload the window. The model picker should list Main for chat and edit, while tab completions come from the local model, so your typing never waits on a paid API. The test rule only appears when a .test.ts file is part of the request, which keeps the prompt short for everything else. The Ollama model id here is just an example; use one you have pulled.

Common mistakes

  • Assuming Continue will keep up with next year's models

    The repo is read-only after 2.0.0; plan a move to a maintained agent if you need new providers.

  • Editing config.json and wondering why nothing changes

    config.json is deprecated; move settings into config.yaml with name, version and schema at the top.

  • Giving one big model every role including autocomplete

    Set roles per model and give autocomplete to a small, fast model.

  • Using the codebase or folder provider from older tutorials

    Both are deprecated; use repo-map, file and agent tools instead.

  • Writing a rule with no globs and alwaysApply: false

    Add globs or a clear description, otherwise the rule is only used if the agent decides it matters.