Changesets · Branches · Tags · Compare
| Changeset | 37ac5484f9b8cdb6fe61e56cb84b51b2111876c8f9330de63cdbdabd101ae8aa |
|---|---|
| Author | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-19 17:37 -07:00 |
| Committer | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-19 17:37 -07:00 |
| Parents | 1277cc89cc42 |
4 files changed
modified docs/docs.json +1 −0
| @@ -230,6 +230,7 @@ | ||
| 230 | 230 | "pages": [ |
| 231 | 231 | "guides/overview", |
| 232 | 232 | "guides/understanding-agents", |
| 233 | + "guides/understanding-models-rules-tools", | |
| 233 | 234 | "guides/codebase-documentation-awareness", |
| 234 | 235 | "guides/cli", |
| 235 | 236 | "guides/continuous-ai", |
deleted docs/guides/understanding-blocks.mdx +0 −157
| @@ -1,157 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -title: "Understanding Blocks" | |
| 3 | -description: "Learn how to work with Continue's composable block system. Understand how to use hub blocks, create local blocks, and organize your configurations for maximum reusability." | |
| 4 | ---- | |
| 5 | - | |
| 6 | -# Understanding Blocks | |
| 7 | - | |
| 8 | -Continue uses composable **blocks** - reusable building components like models, context providers, rules, and documentation sources. Think of blocks as LEGO pieces that you can mix and match to create powerful coding agents tailored to your needs. | |
| 9 | - | |
| 10 | -## What Are Blocks? | |
| 11 | - | |
| 12 | -**Blocks** are individual building components that agents use. Each block handles one specific function - for example, one language model, one documentation source, or one set of rules. Agents combine multiple blocks to create complete coding assistants. | |
| 13 | - | |
| 14 | -## Where Agents Live | |
| 15 | - | |
| 16 | -Agents can be loaded from two places: | |
| 17 | - | |
| 18 | -**[Continue Hub](https://hub.continue.dev/explore/agents)** | |
| 19 | -Community-shared agents stored on the hub and automatically synced to your extension. | |
| 20 | - | |
| 21 | -**Local Storage** | |
| 22 | -Your custom agents stored in: | |
| 23 | -- **Global**: `~/.continue/agents` (Mac) or `%USERPROFILE%\.continue/agents` (Windows) | |
| 24 | -- **Workspace**: `/.continue/agents` folder in your project | |
| 25 | - | |
| 26 | -The filename becomes the display name (e.g., `My Custom Agent.yaml`). | |
| 27 | - | |
| 28 | -## Working with Hub Blocks | |
| 29 | - | |
| 30 | -Hub blocks are identified by slugs in the format `owner/block-name`. For example, to use the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o), you'd reference it as `openai/gpt-4o`. | |
| 31 | - | |
| 32 | -Import hub blocks using the `uses` syntax alongside your custom blocks: | |
| 33 | - | |
| 34 | -```yaml | |
| 35 | -name: Team Agent | |
| 36 | -version: 1.0.0 | |
| 37 | -schema: v1 | |
| 38 | - | |
| 39 | -models: | |
| 40 | - - uses: anthropic/claude-3.5-sonnet # Import from hub | |
| 41 | - - model: deepseek-reasoner # Define custom block | |
| 42 | - provider: ollama | |
| 43 | -``` | |
| 44 | - | |
| 45 | -## Creating Local Blocks | |
| 46 | - | |
| 47 | -Local blocks let you create reusable components that automatically apply to multiple agents, reducing duplication and ensuring consistency across your setup. | |
| 48 | - | |
| 49 | -**Workspace Blocks** | |
| 50 | -Applied automatically to all agents when working in a specific project. Perfect for project-specific configurations like TypeScript rules for web apps or Python linting standards for data science projects. | |
| 51 | - | |
| 52 | -**Global Blocks** | |
| 53 | -Applied to all agents across all workspaces. Ideal for personal preferences, universal coding standards, or tools you use everywhere. | |
| 54 | - | |
| 55 | -## Block Types & Organization | |
| 56 | - | |
| 57 | -Organize your local blocks using these directories: | |
| 58 | - | |
| 59 | -<Columns cols={2}> | |
| 60 | -<Card title="Agents" icon="robot"> | |
| 61 | -`.continue/agents` - Complete agent configurations | |
| 62 | -</Card> | |
| 63 | - | |
| 64 | -<Card title="Rules" icon="shield"> | |
| 65 | -`.continue/rules` - Coding standards and guidelines | |
| 66 | -</Card> | |
| 67 | - | |
| 68 | -<Card title="Models" icon="brain"> | |
| 69 | -`.continue/models` - Language model configurations | |
| 70 | -</Card> | |
| 71 | - | |
| 72 | -<Card title="Prompts" icon="message-square"> | |
| 73 | -`.continue/prompts` - Custom prompt templates | |
| 74 | -</Card> | |
| 75 | - | |
| 76 | -<Card title="Context" icon="layers"> | |
| 77 | -`.continue/context` - Context provider configurations | |
| 78 | -</Card> | |
| 79 | - | |
| 80 | -<Card title="Documentation" icon="book"> | |
| 81 | -`.continue/docs` - Documentation site integrations | |
| 82 | -</Card> | |
| 83 | - | |
| 84 | -<Card title="Data" icon="database"> | |
| 85 | -`.continue/data` - Development data destinations | |
| 86 | -</Card> | |
| 87 | - | |
| 88 | -<Card title="MCP Servers" icon="server"> | |
| 89 | -`.continue/mcpServers` - Model Context Protocol servers | |
| 90 | -</Card> | |
| 91 | -</Columns> | |
| 92 | - | |
| 93 | -## Working with Secrets | |
| 94 | - | |
| 95 | -Local blocks can use mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) which read from: | |
| 96 | -- **Global**: `.env` file in `~/.continue/.env` | |
| 97 | -- **Workspace**: `.env` file at your project root | |
| 98 | - | |
| 99 | -## Block Inputs and Customization | |
| 100 | - | |
| 101 | -Blocks can accept user inputs for customization. Create parameterized blocks using mustache templating: | |
| 102 | - | |
| 103 | -```yaml title="config.yaml" | |
| 104 | -name: myprofile/custom-model | |
| 105 | -version: 1.0.0 | |
| 106 | -schema: v1 | |
| 107 | - | |
| 108 | -models: | |
| 109 | - - name: My Favorite Model | |
| 110 | - provider: anthropic | |
| 111 | - apiKey: ${{ inputs.ANTHROPIC_API_KEY }} | |
| 112 | - defaultCompletionOptions: | |
| 113 | - temperature: ${{ inputs.TEMP }} | |
| 114 | -``` | |
| 115 | - | |
| 116 | -Then import with custom values: | |
| 117 | - | |
| 118 | -```yaml title="config.yaml" | |
| 119 | -name: myprofile/custom-agent | |
| 120 | -version: 1.0.0 | |
| 121 | -schema: v1 | |
| 122 | - | |
| 123 | -models: | |
| 124 | - - uses: myprofile/custom-model | |
| 125 | - with: | |
| 126 | - ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 127 | - TEMP: 0.9 | |
| 128 | -``` | |
| 129 | - | |
| 130 | -Note that hub secrets can be passed as inputs using the mustache format: `${{ secrets.SECRET_NAME }}`. | |
| 131 | - | |
| 132 | -## Overriding Block Properties | |
| 133 | - | |
| 134 | -You can directly override block properties using the `override` syntax: | |
| 135 | - | |
| 136 | -```yaml title="config.yaml" | |
| 137 | -name: myprofile/custom-agent | |
| 138 | -version: 1.0.0 | |
| 139 | -schema: v1 | |
| 140 | - | |
| 141 | -models: | |
| 142 | - - uses: myprofile/custom-model | |
| 143 | - with: | |
| 144 | - ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 145 | - TEMP: 0.9 | |
| 146 | - override: | |
| 147 | - roles: | |
| 148 | - - chat | |
| 149 | -``` | |
| 150 | - | |
| 151 | -## Next Steps | |
| 152 | - | |
| 153 | -Now that you understand how blocks and agents work, explore: | |
| 154 | -- **[Config Reference](/reference)**: Detailed documentation of all available properties | |
| 155 | -- **[Continue Hub](https://hub.continue.dev)**: Browse community blocks and agents | |
| 156 | -- **[Custom Context Providers](/customize/deep-dives/custom-providers)**: Create advanced context integrations | |
| 157 | -- **[Model Roles](/customize/model-roles/overview)**: Understanding how different models work together | |
| No newline at the end of the file |
added docs/guides/understanding-models-rules-tools.mdx +160 −0
| @@ -0,0 +1,160 @@ | ||
| 1 | +--- | |
| 2 | +title: "Understanding Models, Rules, and Tools" | |
| 3 | +description: "Learn how to work with Continue's configuration system. Understand how to use hub models, rules, and tools, create local configurations, and organize your setup for maximum reusability." | |
| 4 | +--- | |
| 5 | + | |
| 6 | +## What Are Models, Rules, and Tools? | |
| 7 | + | |
| 8 | +Continue agents are built from three main types of configuration: | |
| 9 | + | |
| 10 | +<Columns cols={3}> | |
| 11 | +<Card title="Models" icon="cube"> | |
| 12 | +Language models that power different capabilities like chat, autocomplete, and agent mode | |
| 13 | +</Card> | |
| 14 | + | |
| 15 | +<Card title="Rules" icon="pencil"> | |
| 16 | + Guidelines and instructions that shape how the AI behaves and responds | |
| 17 | +</Card> | |
| 18 | + | |
| 19 | +<Card title="Tools" icon="server"> | |
| 20 | +MCP tools that provide additional capabilities like database access, web search, or custom functions | |
| 21 | +</Card> | |
| 22 | +</Columns> | |
| 23 | + | |
| 24 | +There are two places where you can define these configurations: | |
| 25 | + | |
| 26 | +<Columns cols={2}> | |
| 27 | +<Card title="Hub" icon="cloud"> | |
| 28 | +Pre-built models, rules, and tools from the Continue community that you can import and use immediately | |
| 29 | +</Card> | |
| 30 | + | |
| 31 | +<Card title="Local" icon="computer"> | |
| 32 | +Custom configurations you create and manage in your workspace or globally | |
| 33 | +</Card> | |
| 34 | +</Columns> | |
| 35 | + | |
| 36 | +## Hub | |
| 37 | + | |
| 38 | +Hub items are identified by slugs in the format `owner/item-name`. For example, to use the [OpenAI GPT-4o model](https://hub.continue.dev/openai/gpt-4o), you'd reference it as `openai/gpt-4o`. | |
| 39 | + | |
| 40 | +Import from the hub using the `uses` syntax alongside your custom configurations: | |
| 41 | + | |
| 42 | +```yaml config.yaml | |
| 43 | +name: Team Agent | |
| 44 | +version: 1.0.0 | |
| 45 | +schema: v1 | |
| 46 | + | |
| 47 | +models: | |
| 48 | + - uses: anthropic/claude-3.5-sonnet # Import from hub | |
| 49 | + with: | |
| 50 | + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # Use a hub secret | |
| 51 | +``` | |
| 52 | + | |
| 53 | +## Local | |
| 54 | + | |
| 55 | +Local configurations let you create custom models, rules, and tools that automatically apply to multiple agents, reducing duplication and ensuring consistency across your setup. | |
| 56 | + | |
| 57 | +<Columns cols={2}> | |
| 58 | +<Card title="Global" icon="globe"> | |
| 59 | +Applied to all agents across all workspaces. Ideal for personal preferences, universal coding standards, or tools you use everywhere. | |
| 60 | +</Card> | |
| 61 | +<Card title="Workspace" icon="folder-open"> | |
| 62 | +Applied automatically to all agents when working in a specific project. | |
| 63 | + | |
| 64 | +Perfect for project-specific setups like TypeScript rules for web apps or the Playwright MCP tool. | |
| 65 | + | |
| 66 | +</Card> | |
| 67 | + | |
| 68 | +</Columns> | |
| 69 | + | |
| 70 | +### Organization | |
| 71 | + | |
| 72 | +Organize your local configurations using these directories: | |
| 73 | + | |
| 74 | +<Columns cols={3}> | |
| 75 | +<Card title="Models" icon="cube"> | |
| 76 | + `.continue/models` | |
| 77 | +</Card> | |
| 78 | + | |
| 79 | +<Card title="Rules" icon="pencil"> | |
| 80 | + `.continue/rules` | |
| 81 | +</Card> | |
| 82 | + | |
| 83 | +<Card title="Tools" icon="server"> | |
| 84 | + `.continue/mcpServers` | |
| 85 | +</Card> | |
| 86 | +</Columns> | |
| 87 | + | |
| 88 | +## Working with Secrets | |
| 89 | + | |
| 90 | +Local configurations can use mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) which read from: | |
| 91 | + | |
| 92 | +<Columns cols={2}> | |
| 93 | +<Card title="Global" icon="globe"> | |
| 94 | +`.env` file in `~/.continue/.env` | |
| 95 | +</Card> | |
| 96 | + | |
| 97 | +<Card title="Workspace" icon="folder-open"> | |
| 98 | +`.env` file at your project root | |
| 99 | +</Card> | |
| 100 | +</Columns> | |
| 101 | + | |
| 102 | +## Inputs and Customization | |
| 103 | + | |
| 104 | +Configurations can accept user inputs for customization by defining an `${{ inputs.SECRET_NAME }}` value. | |
| 105 | + | |
| 106 | +For example, here is how you could require that the user provide a value for the `apiKey` property on a model: | |
| 107 | + | |
| 108 | +```yaml title="config.yaml" highlight={8} | |
| 109 | +name: myprofile/custom-model | |
| 110 | +version: 1.0.0 | |
| 111 | +schema: v1 | |
| 112 | + | |
| 113 | +models: | |
| 114 | + - name: My Favorite Model | |
| 115 | + # ... other model properties ... | |
| 116 | + apiKey: ${{ inputs.SECRET_NAME }} | |
| 117 | +``` | |
| 118 | + | |
| 119 | +Users then map their secret to this input using a `${{ secrets.SECRET_NAME }}` value that maps to a property name which matches the required input, e.g. `SECRET_NAME`. Note that on the hub, this mapping is created automatically for you. | |
| 120 | + | |
| 121 | +```yaml title="config.yaml" highlight={8} | |
| 122 | +name: myprofile/custom-agent | |
| 123 | +version: 1.0.0 | |
| 124 | +schema: v1 | |
| 125 | + | |
| 126 | +models: | |
| 127 | + - uses: myprofile/custom-model | |
| 128 | + with: | |
| 129 | + SECRET_NAME: ${{ secrets.SECRET_NAME }} | |
| 130 | +``` | |
| 131 | + | |
| 132 | +Note that hub secrets can be passed as inputs using the mustache format: `${{ secrets.SECRET_NAME }}`. | |
| 133 | + | |
| 134 | +## Overriding Properties | |
| 135 | + | |
| 136 | +You can directly override properties using the `override` syntax: | |
| 137 | + | |
| 138 | +```yaml title="config.yaml" highlight={10-13} | |
| 139 | +name: myprofile/custom-agent | |
| 140 | +version: 1.0.0 | |
| 141 | +schema: v1 | |
| 142 | + | |
| 143 | +models: | |
| 144 | + - uses: myprofile/custom-model | |
| 145 | + with: | |
| 146 | + ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 147 | + TEMP: 0.9 | |
| 148 | + override: | |
| 149 | + roles: | |
| 150 | + - chat | |
| 151 | +``` | |
| 152 | + | |
| 153 | +## Next Steps | |
| 154 | + | |
| 155 | +Now that you understand how models, rules, and tools work, explore: | |
| 156 | + | |
| 157 | +- **[Config Reference](/reference)**: Detailed documentation of all available properties | |
| 158 | +- **[Continue Hub](https://hub.continue.dev)**: Browse community models, rules, and tools | |
| 159 | +- **[Custom Context Providers](/customize/deep-dives/custom-providers)**: Create advanced context integrations | |
| 160 | +- **[Model Roles](/customize/model-roles/overview)**: Understanding how different models work together |
modified docs/reference.mdx +4 −4
| @@ -1,17 +1,17 @@ | ||
| 1 | 1 | --- |
| 2 | 2 | title: "config.yaml Reference" |
| 3 | -description: "Comprehensive guide to the config.yaml format used by Continue.dev for building custom coding agents. Learn how to define models, context providers, rules, prompts, and more using reusable blocks and YAML configuration." | |
| 3 | +description: "Comprehensive guide to the config.yaml format used by Continue.dev for building custom coding agents. Learn how to define models, context providers, rules, prompts, and more using YAML configuration." | |
| 4 | 4 | --- |
| 5 | 5 | |
| 6 | 6 | ## Introduction |
| 7 | 7 | |
| 8 | 8 | Continue Agents are defined using the `config.yaml` specification. |
| 9 | 9 | |
| 10 | -**Agents** are composed of reusable **Blocks**, such as models, rules, and MCP servers. | |
| 10 | +**Agents** are composed of models, rules, and tools (MCP servers). | |
| 11 | 11 | |
| 12 | 12 | <Columns cols={2}> |
| 13 | -<Card title="Understanding Blocks" icon="cube" href="/guides/understanding-blocks"> | |
| 14 | -Learn how to work with Continue's block system, including using hub blocks, creating local blocks, and organizing your configurations. | |
| 13 | +<Card title="Understanding Models, Rules, and Tools" icon="cube" href="/guides/understanding-models-rules-tools"> | |
| 14 | +Learn how to work with Continue's configuration system, including using hub models, rules, and tools, creating local configurations, and organizing your setup. | |
| 15 | 15 | </Card> |
| 16 | 16 | |
| 17 | 17 | <Card title="Understanding Agents" icon="robot" href="/guides/understanding-agents"> |