diff --git a/docs/docs/agent/context-selection.md b/docs/docs/agent/context-selection.md
new file mode 100644
index 000000000..e341707d7
--- /dev/null
+++ b/docs/docs/agent/context-selection.md
@@ -0,0 +1,12 @@
+---
+title: Context selection
+description: How context can be selected for Chat
+keywords: [context]
+sidebar_position: 3
+---
+
+You can use the same [methods to manually add context as Chat](../chat/context-selection.md).
+
+In addition, tool call responses are automatically included as context items.
+
+This enables Agent mode to see the result of the previous action and decide what to do next.
\ No newline at end of file
diff --git a/docs/docs/agent/how-it-works.md b/docs/docs/agent/how-it-works.md
new file mode 100644
index 000000000..b89c7ac85
--- /dev/null
+++ b/docs/docs/agent/how-it-works.md
@@ -0,0 +1,38 @@
+---
+title: How it works
+description: How Agent works
+keywords: [how, agent, works]
+sidebar_position: 4
+---
+
+Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses.
+
+## The tool handshake
+
+Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
+
+The following handshake describes how Agent uses tools:
+1. In Agent mode, available tools are sent along with `user` chat requests
+2. The model can choose to include a tool call in its response
+3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
+4. Continue calls the tool using built-in functionality or the MCP server that offers that particular tool
+5. Continue sends the result back to the model
+6. The model responds, potentially with another tool call and step 2 begins again
+
+:::info
+In [Chat mode](../chat/how-to-use-it.md), tools are **not** included in the request to the model.
+:::
+
+## Built-in tools
+
+Continue includes several built-in tools which provide the model access to IDE functionality:
+
+- **Read file** (`builtin_read_file`): read the contents of a file within the project
+- **Read currently open file** (`builtin_read_currently_open_file`): read the contents of the currently open file
+- **Create new file** (`builtin_create_new_file`): Create a new file within the project, with path and contents specified by the model
+- **Exact search** (`builtin_exact_search`): perform a `ripgrep` search within the project
+- **Run terminal command** (`builtin_run_terminal_command`): run a terminal command from the workspace root
+- **Search web** (`builtin_search_web`): Perform a web search to get top results
+- **View diff** (`builtin_view_diff`): View the current working git diff
+- **View repo map** (`builtin_view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../customize/context-providers.mdx#repository-map)
+- **View subdirectory** (`builtin_view_subdirectory`): request a copy of a repo map for a specific directory within the project
\ No newline at end of file
diff --git a/docs/docs/agent/how-to-customize.md b/docs/docs/agent/how-to-customize.md
new file mode 100644
index 000000000..9159ea871
--- /dev/null
+++ b/docs/docs/agent/how-to-customize.md
@@ -0,0 +1,32 @@
+---
+title: How to customize
+description: How to customize Chat
+keywords: [customize, chat]
+sidebar_position: 5
+---
+
+## Add MCP tools
+
+You can add MCP servers to your assistant to give Agent access to more tools. [Explore MCP Servers on the Hub](https://hub.continue.dev/explore/mcp) and see the [MCP guide](../customize/deep-dives/mcp.mdx) for more details.
+
+## Tool policies
+
+You can adjust Agent's usage behavior for each tool in your assistant to one of these options:
+
+- **Ask First (default)** - request permission from the user; show the `Cancel` and `Continue` buttons
+- **Automatic** - do not request permission, automatically call the tool and feed the response back to the model
+- **Excluded** - do not send this tool to the model
+
+:::warning
+Be careful setting any tools to `automatic` if their behavior is not read-only.
+:::
+
+First, open `Tool Policies` by clicking the tools icon in the input toolbar
+
+
+
+Then, you can view and change tool policies. To change a policy, click on the policy text ("Excluded", etc.) to toggle it. You can also turn groups of tools (e.g. all Built-in tools or all tools from a specific MCP server) off using the section toggles.
+
+
+
+Tool policies are stored locally per user.
\ No newline at end of file
diff --git a/docs/docs/agent/how-to-use-it.md b/docs/docs/agent/how-to-use-it.md
new file mode 100644
index 000000000..780163faf
--- /dev/null
+++ b/docs/docs/agent/how-to-use-it.md
@@ -0,0 +1,49 @@
+---
+title: Agent
+description: How to use Agent
+sidebar_label: How to use it
+keywords: [how, use, agent]
+sidebar_position: 1
+---
+
+
+
+## How to use it
+
+Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing the model to make decisions and save you the work of manually finding context and performing actions.
+
+### Use Agent
+
+You can switch to `Agent` in the mode selector below the chat input box.
+
+
+
+:::info
+If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Setup](./model-setup.mdx) for more information.
+:::
+
+### Chat with Agent
+
+Agent lives within the same interface as [Chat](../chat/how-it-works.md), so the same [input](../chat/how-to-use-it.md#type-a-request-and-press-enter) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/how-to-use-it.md#reference-context-with-the--symbol) or adding [highlighted code from the editor](../chat/how-to-use-it.md#highlight-a-code-section-to-include-as-context).
+
+#### Use natural language
+
+With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say
+
+> Set the @typescript-eslint/naming-convention rule to "off" for all eslint configurations in this project
+
+Agent will then decide which tools to use to get the job done.
+
+## Give Agent permission
+
+By default, Agent will ask permission when it wants to use a tool. Click `Continue` to allow Agent mode to proceed with the tool call or `Cancel` to reject it.
+
+
+
+You can use tool policies to exclude or make usage automatic for specific tools. See [How to Customize](./how-to-customize.md) for more background.
+
+## View Tool Responses
+
+Any data returned from a tool call is automatically fed back into the model as a context item. Most errors are also caught and returned, so that Agent mode can decide how to proceed.
+
+
\ No newline at end of file
diff --git a/docs/docs/agent/model-setup.mdx b/docs/docs/agent/model-setup.mdx
new file mode 100644
index 000000000..89e1cdf7e
--- /dev/null
+++ b/docs/docs/agent/model-setup.mdx
@@ -0,0 +1,19 @@
+---
+title: Model setup
+description: Models for Continue Agent
+keywords: [model, agent]
+sidebar_position: 2
+---
+
+Agent can be used with models that support tool use through Continue.
+
+For the best Agent experience we recommend Claude 3.7 Sonnet from Anthropic. Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-3-7-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys).
+
+Currently the following providers are supported:
+
+- [Anthropic](../customize/model-providers/top-level/anthropic.mdx) - we recommend [Claude Sonnet 3.7](https://hub.continue.dev/anthropic/claude-3-7-sonnet)
+- [Ollama](../customize/model-providers/top-level/ollama.mdx) - we recommend [Qwen 2.5 Coder 7b](https://hub.continue.dev/ollama/qwen2.5-coder-7b). Also see all Ollama models that support tools [here](https://ollama.com/search?c=tools).
+- [OpenAI](../customize/model-providers/top-level/openai.mdx) - we recommend [GPT-4o](https://hub.continue.dev/openai/gpt-4o)
+- [Gemini](../customize/model-providers/top-level/gemini.mdx) - we recommend [Gemini 2.0 Flash](https://hub.continue.dev/google/gemini-2.0-flash)
+
+The best chat models generally support tool usage. See [recommended chat models](../customize/model-roles/chat.mdx#recommended-chat-models) for more.
diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md
index db77a43f0..c1d29d078 100644
--- a/docs/docs/autocomplete/how-to-customize.md
+++ b/docs/docs/autocomplete/how-to-customize.md
@@ -5,6 +5,6 @@ keywords: [customize]
sidebar_position: 5
---
-Continue offers a handful of settings to customize autocomplete behavior. For the most part, these options can be found in the [User Settings Page](../customize/settings.md).
+Continue offers a handful of settings to customize autocomplete behavior. For the most part, these options can be found in the [User Settings Page](../customize/deep-dives/settings.md).
For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
diff --git a/docs/docs/chat/how-to-customize.md b/docs/docs/chat/how-to-customize.md
index acb357983..ce8c9ff1b 100644
--- a/docs/docs/chat/how-to-customize.md
+++ b/docs/docs/chat/how-to-customize.md
@@ -10,6 +10,5 @@ There are a number of different ways to customize Chat:
- You can add a [`rules` block](../hub/blocks/block-types.md#rules) to your assistant to give the model persistent instructions through the system prompt. See the [rules deep dive](../customize/deep-dives/rules.md) for more information.
- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx)
- You can configure [`@Docs`](../customize/deep-dives/docs.mdx)
-- You can configure and create custom [tools](../customize/tools.mdx)
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.mdx)
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx)
diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx
index c350b4d2c..4170ede21 100644
--- a/docs/docs/customize/deep-dives/autocomplete.mdx
+++ b/docs/docs/customize/deep-dives/autocomplete.mdx
@@ -90,7 +90,7 @@ Explore autocomplete model configurations on [the hub](https://hub.continue.dev/
### Autocomplete User Settings
-The following settings can be configured for autocompletion in the IDE extension [User Settings Page](../settings.md):
+The following settings can be configured for autocompletion in the IDE extension [User Settings Page](./settings.md):
- `Use autocomplete cache`: If on, caches completions
- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
@@ -98,7 +98,7 @@ The following settings can be configured for autocompletion in the IDE extension
### `config.json` Configuration
-The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](../../reference.md#tabautocompleteoptions) for more details.
+The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](../../json-reference.md#tabautocompleteoptions) for more details.
## FAQs
diff --git a/docs/docs/customize/deep-dives/configuration.md b/docs/docs/customize/deep-dives/configuration.md
index dd48ddbe7..269fa64e5 100644
--- a/docs/docs/customize/deep-dives/configuration.md
+++ b/docs/docs/customize/deep-dives/configuration.md
@@ -18,7 +18,7 @@ To open your configuration file, you can click the "gear" icon in the bottom rig
When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
-See the full reference for `config.yaml` [here](../../yaml-reference.md).
+See the full reference for `config.yaml` [here](../../reference.md).
## Deprecated configuration methods
@@ -26,7 +26,7 @@ See the full reference for `config.yaml` [here](../../yaml-reference.md).
View the `config.json` migration guide [here](../../yaml-migration.md)
:::
-- [`config.json`](../../reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml`
+- [`config.json`](../../json-reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml`
- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema:
- `~/.continue/config.ts` (MacOS / Linux)
diff --git a/docs/docs/customize/deep-dives/development-data.md b/docs/docs/customize/deep-dives/development-data.md
index da9f5136c..dd1e0c546 100644
--- a/docs/docs/customize/deep-dives/development-data.md
+++ b/docs/docs/customize/deep-dives/development-data.md
@@ -16,6 +16,6 @@ You can also configure custom destinations for your data, including remote HTTP
For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data).
-See more details about adding `data` blocks to your configuration files in the [YAML specification](../../yaml-reference.md#data)
+See more details about adding `data` blocks to your configuration files in the [YAML specification](../../reference.md#data)
When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data).
diff --git a/docs/docs/customize/deep-dives/docs.mdx b/docs/docs/customize/deep-dives/docs.mdx
index 2431e0db3..0ddf61729 100644
--- a/docs/docs/customize/deep-dives/docs.mdx
+++ b/docs/docs/customize/deep-dives/docs.mdx
@@ -215,7 +215,7 @@ If your documentation is private, you can skip the default crawler and use a loc
-The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler.
+The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](./settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler.
Further notes:
@@ -401,4 +401,4 @@ The following configuration example includes:
-This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../settings.md).
+This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](./settings.md).
diff --git a/docs/docs/customize/tools.mdx b/docs/docs/customize/deep-dives/mcp.mdx
similarity index 52%
rename from docs/docs/customize/tools.mdx
rename to docs/docs/customize/deep-dives/mcp.mdx
index 1aad549f1..e4e828520 100644
--- a/docs/docs/customize/tools.mdx
+++ b/docs/docs/customize/deep-dives/mcp.mdx
@@ -1,36 +1,19 @@
---
-title: Tools
-description: Tool use and customization
+title: MCP
+description: MCP use and customization
keywords: [tool, use, function calling, claude, automatic]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
-Tools allow Continue to take action in your IDE and beyond (when you give permission). Currently, they are only supported for the following providers:
-
-- [Anthropic](./model-providers/top-level/anthropic.mdx) - see recommended models [here](https://docs.anthropic.com/en/docs/build-with-claude/tool-use#choosing-a-model).
-- [Ollama](./model-providers/top-level/ollama.mdx) - see recommended models [here](https://ollama.com/search?c=tools).
-- [OpenAI](./model-providers/top-level/openai.mdx)
-- [Gemini](./model-providers/top-level/gemini.mdx)
-
-To use tools, click on the icon in the input toolbar like below.
-
-
-
-To let you balance speed and safety, each tool can be set to 1 of 3 modes:
-
-- `Automatic`: When the LLM requests to use the tool, Continue will automatically call it and send the response to the LLM.
-- `Allowed`: When the LLM requests to use the tool, Continue will first give you the opportunity to "Cancel" or "Continue" with the tool.
-- `Disabled`: The LLM will not know about or be able to use the tool.
-
-### Custom tools
+## MCP
Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use.
MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can explore available MCP server blocks [here](https://hub.continue.dev/explore/mcp).
-To set up your own MCP server, read the [MCP quickstart](https://modelcontextprotocol.io/quickstart) and then [create an `mcpServers` block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add the following to your [config file](../customize/deep-dives/configuration.md):
+To set up your own MCP server, read the [MCP quickstart](https://modelcontextprotocol.io/quickstart) and then [create an `mcpServers` block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add the following to your [config file](./configuration.md):
diff --git a/docs/docs/customize/settings.md b/docs/docs/customize/deep-dives/settings.md
similarity index 95%
rename from docs/docs/customize/settings.md
rename to docs/docs/customize/deep-dives/settings.md
index f76494032..bd9adbabb 100644
--- a/docs/docs/customize/settings.md
+++ b/docs/docs/customize/deep-dives/settings.md
@@ -14,7 +14,7 @@ Which takes you to this page:

-Click the `Open Assistant configuration` button to open your configuration file. See the [Configuration Reference](../reference.md) for more information.
+Click the `Open Assistant configuration` button to open your configuration file. See the [Configuration Reference](../../reference.md) for more information.
Below that, the following settings which are not part of a configuration file are available:
diff --git a/docs/docs/customize/model-roles/intro.mdx b/docs/docs/customize/model-roles/intro.mdx
index 3c3a6476e..7256303a7 100644
--- a/docs/docs/customize/model-roles/intro.mdx
+++ b/docs/docs/customize/model-roles/intro.mdx
@@ -18,11 +18,11 @@ Models in Continue can be configured to be used for various roles in the extensi
- [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
- [`rerank`](./reranking.mdx): Used to rerank results from vector search
-These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](../../yaml-reference.md#models) for more details.
+These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](../../reference.md#models) for more details.
## Selecting model roles
-You can control which of the models in your assistant for a given role will be currently used for that role. Visit the [Settings page](../settings.md) and go to the **Active Models** section.
+You can control which of the models in your assistant for a given role will be currently used for that role. Visit the [Settings page](../deep-dives/settings.md) and go to the **Active Models** section.

diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md
index ae2baf79a..13d8230a7 100644
--- a/docs/docs/customize/overview.md
+++ b/docs/docs/customize/overview.md
@@ -10,7 +10,7 @@ Continue can be deeply customized. For example you might:
- **Select different model providers for each Compose feature**. Different Continue features can use different model providers. We call these _model types_. For example, you can use a different model provider for chat than you do for autocomplete. Learn more about [model types](../customize/model-roles/) .
- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](/customize/context-providers).
- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customize/slash-commands).
-- **Call external tools and functions**. Unchain your LLM with the power of _Tools_. You can call any external tool or function from your prompts. Currently only available with Anthropic. Learn more about [Tools](/customize/tools).
+- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../agent/how-to-use-it.md). Add custom tools using [MCP Servers](../customize/deep-dives/mcp.mdx)
Whatever you choose, you'll probably start by editing `config.yaml`.
diff --git a/docs/docs/customize/slash-commands.mdx b/docs/docs/customize/slash-commands.mdx
index e1890ba81..5aacb1cb9 100644
--- a/docs/docs/customize/slash-commands.mdx
+++ b/docs/docs/customize/slash-commands.mdx
@@ -8,7 +8,7 @@ import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
-Slash commands can currently only be added using [`config.json`](../reference.md). The [`YAML Config Format`](../reference.md) is the new and preferred format. We recommend looking into [Prompt Files](../customize/deep-dives/prompt-files.md) to achieve similar functionality.
+Slash commands can currently only be added using [`config.json`](../json-reference.md). The [`YAML Config Format`](../reference.md) is the new and preferred format. We recommend looking into [Prompt Files](../customize/deep-dives/prompt-files.md) to achieve similar functionality.
:::
Slash commands are shortcuts that can be activated by typing '/' and selecting from the dropdown. For example, the built-in '/edit' slash command lets you stream edits directly into your editor.
diff --git a/docs/docs/customize/tutorials/build-your-own-slash-command.md b/docs/docs/customize/tutorials/build-your-own-slash-command.md
index f0cc1147f..27b0517b3 100644
--- a/docs/docs/customize/tutorials/build-your-own-slash-command.md
+++ b/docs/docs/customize/tutorials/build-your-own-slash-command.md
@@ -3,7 +3,7 @@ title: Build your own slash command
---
:::info
-Slash commands can currently only be added using [`config.json`](../../reference.md) or `config.ts`. The [`YAML Config Format`](../../reference.md) is the new and preferred format. We recommend looking into [Prompt Files](../deep-dives/prompt-files.md) to achieve similar functionality.
+Slash commands can currently only be added using [`config.json`](../../json-reference.md) or `config.ts`. The [`YAML Config Format`](../../reference.md) is the new and preferred format. We recommend looking into [Prompt Files](../deep-dives/prompt-files.md) to achieve similar functionality.
:::
There are two ways to add custom slash commands:
diff --git a/docs/docs/customize/tutorials/running-continue-without-internet.md b/docs/docs/customize/tutorials/running-continue-without-internet.md
index e3de1e79e..2ba683909 100644
--- a/docs/docs/customize/tutorials/running-continue-without-internet.md
+++ b/docs/docs/customize/tutorials/running-continue-without-internet.md
@@ -7,6 +7,6 @@ keywords: [no internet, air-gapped, local model]
Continue can be run even on an air-gapped computer if you use a local model. Only a few adjustments are required for this to work.
1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
-2. Open the [User Settings Page](../settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../../telemetry.md).
+2. Open the [User Settings Page](../deep-dives/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../../telemetry.md).
3. Also in `config.json`, set the default model to a local model. You can available options [here](../model-providers/).
4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
diff --git a/docs/docs/getting-started/overview.mdx b/docs/docs/getting-started/overview.mdx
index 446031fa7..fdd6a46d7 100644
--- a/docs/docs/getting-started/overview.mdx
+++ b/docs/docs/getting-started/overview.mdx
@@ -4,9 +4,9 @@ description: Getting started with Continue
keywords: [quickstart, start, overview, chat, autocomplete, edit, actions]
---
-import Tabs from "@theme/Tabs";
-import TabItem from "@theme/TabItem";
import Admonition from "@theme/Admonition";
+import TabItem from "@theme/TabItem";
+import Tabs from "@theme/Tabs";
To quickly understand what you can do with Continue, check out each tab below.
@@ -33,26 +33,29 @@ To quickly understand what you can do with Continue, check out each tab below.
+
- [Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
+ [Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
- 
+ 
+
+
+ Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
+
+
+
+
+
+
+ [Agent](../agent/how-to-use-it.md#how-to-use-it) equips the Chat model with the tools needed to handle a wide range of coding tasks
+
+ 
- Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
+ Learn more about [Agent](../agent/how-to-use-it.md#how-to-use-it)
-
- [Actions](../actions/how-to-use-it.md#how-to-use-it) are shortcuts for common use cases
-
- 
-
-
- Learn more about how to use [Actions](../actions/how-to-use-it.md#how-to-use-it)
-
-
-
diff --git a/docs/docs/hub/assistants/create-an-assistant.md b/docs/docs/hub/assistants/create-an-assistant.md
index 207f1c955..62fdf666c 100644
--- a/docs/docs/hub/assistants/create-an-assistant.md
+++ b/docs/docs/hub/assistants/create-an-assistant.md
@@ -32,7 +32,6 @@ Choose a name, slug, description, and icon for your assistant.
The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar.
-Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](../../yaml-reference.md#complete-yaml-config-example) docs for more details.
+Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details.

-
diff --git a/docs/docs/hub/blocks/block-types.md b/docs/docs/hub/blocks/block-types.md
index 9091184d4..0c2698542 100644
--- a/docs/docs/hub/blocks/block-types.md
+++ b/docs/docs/hub/blocks/block-types.md
@@ -11,31 +11,31 @@ sidebar_label: Types
Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the open-source IDE extension like Chat, Autocomplete, Edit, Embed, Rerank, etc. You can explore available models on [the hub](https://hub.continue.dev/explore/models).
-Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles). View [`models`](../../yaml-reference.md#models) in the YAML Reference for more details.
+Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles). View [`models`](../../reference.md#models) in the YAML Reference for more details.
## Context
Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and Github issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub.
-Learn more about context providers [here](../../yaml-reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../yaml-reference.md#context).
+Learn more about context providers [here](../../reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../reference.md#context).
## Docs
Docs are blocks that point to documentation sites, which will be indexed locally and then can be referenced as context using @Docs in Chat. [Explore docs](https://hub.continue.dev/explore/docs) on the hub.
-Learn more in the [@Docs deep dive](../../customize/deep-dives/docs.mdx), and view [`docs`](../../yaml-reference.md#docs) in the YAML Reference for more details.
+Learn more in the [@Docs deep dive](../../customize/deep-dives/docs.mdx), and view [`docs`](../../reference.md#docs) in the YAML Reference for more details.
## MCP Servers
Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub.
-Learn more in the [Tools deep dive](../../customize/tools.mdx), and view [`mcpServers`](../../yaml-reference.md#mcpservers) in the YAML Reference for more details.
+Learn more in the [MCP deep dive](../../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../../reference.md#mcpservers) in the YAML Reference for more details.
## Rules
Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
-Learn more in the [rules deep dive](../../customize/deep-dives/rules.md), and view [`rules`](../../yaml-reference.md#rules) in the YAML Reference for more details.
+Learn more in the [rules deep dive](../../customize/deep-dives/rules.md), and view [`rules`](../../reference.md#rules) in the YAML Reference for more details.
## Prompts
@@ -46,10 +46,10 @@ Prompt blocks have the same syntax as [prompt files](../../customize/deep-dives/
1. Currently, prompt blocks cannot use context providers
2. Prompt blocks are stored within `config.yaml` rather than `.continue/prompts` in project directory and
-The `config.yaml` spec for `prompts` can be found [here](../../yaml-reference.md#prompts).
+The `config.yaml` spec for `prompts` can be found [here](../../reference.md#prompts).
## Data
Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](../../customize/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data).
-Data destinations are configured in the [`data`](../../yaml-reference.md#data) section of `config.yaml`.
+Data destinations are configured in the [`data`](../../reference.md#data) section of `config.yaml`.
diff --git a/docs/docs/hub/blocks/create-a-block.md b/docs/docs/hub/blocks/create-a-block.md
index 870295c99..fcf12acfd 100644
--- a/docs/docs/hub/blocks/create-a-block.md
+++ b/docs/docs/hub/blocks/create-a-block.md
@@ -23,10 +23,10 @@ To create a block from scratch, you will need to click “New block” in the to

-After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](../../yaml-reference.md). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](../../yaml-reference.md#complete-yaml-config-example) docs for more details.
+After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](../../reference.md). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details.

### Block inputs
-Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their assistant.
\ No newline at end of file
+Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their assistant.
diff --git a/docs/docs/hub/blocks/intro.md b/docs/docs/hub/blocks/intro.md
index 919aa9f7d..69d0f9224 100644
--- a/docs/docs/hub/blocks/intro.md
+++ b/docs/docs/hub/blocks/intro.md
@@ -9,4 +9,4 @@ keywords: [blocks, introduction, basics]
Blocks are the components you use to build a custom AI code assistant. These include [models](./block-types.md#models), [rules](./block-types.md#rules), [context providers](./block-types.md#context), [prompts](./block-types.md#prompts), [docs](./block-types.md#docs), [data destinations](./block-types.md#data), and [MCP servers](./block-types.md#mcp-servers).
-Blocks follow the [`config.yaml`](../../yaml-reference.md) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
+Blocks follow the [`config.yaml`](../../reference.md) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md
index 9628dd4cb..f5695d033 100644
--- a/docs/docs/introduction.md
+++ b/docs/docs/introduction.md
@@ -22,4 +22,4 @@ keywords:
- [Chat](chat/how-to-use-it) to understand and iterate on code in the sidebar
- [Autocomplete](autocomplete/how-to-use-it) to receive inline code suggestions as you type
- [Edit](edit/how-to-use-it) to modify code without leaving your current file
-- [Actions](actions/how-to-use-it) to establish shortcuts for common use cases
+- [Agent](agent/how-to-use-it) to make more substanial changes to your codebase
\ No newline at end of file
diff --git a/docs/docs/json-reference.md b/docs/docs/json-reference.md
index 11e92a183..e4e6196df 100644
--- a/docs/docs/json-reference.md
+++ b/docs/docs/json-reference.md
@@ -5,7 +5,7 @@ keywords: [config, config_schema.json, json]
---
:::info
-`config.json` is the original Continue configuration format. The newer and preferred format is [`YAML Config`](./reference). See the [migration guide](./yaml-migration).
+We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](./reference.md).
:::
Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json).
@@ -14,7 +14,7 @@ Below are details for each property that can be set in `config.json`. The config
### `models`
-Your **chat** models are defined here, which are used for [Chat](./chat/how-to-use-it), [Edit](./edit/how-to-use-it), and [Actions](./actions/how-to-use-it).
+Your **chat** models are defined here, which are used for [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Actions](./actions/how-to-use-it.md).
Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
**Properties:**
@@ -36,7 +36,7 @@ Each model has specific configuration options tailored to its provider and funct
- `engine`: Engine for Azure OpenAI requests.
- `capabilities`: Override auto-detected capabilities:
- `uploadImage`: Boolean indicating if the model supports image uploads.
- - `tools`: Boolean indicating if the model supports tool calls.
+ - `tools`: Boolean indicating if the model supports tool use.
_(AWS Only)_
@@ -59,7 +59,7 @@ Example:
"contextLength": 128000,
"title": "GPT-4o",
"provider": "openai",
- "apiKey": ""
+ "apiKey": "YOUR_API_KEY"
}
]
}
@@ -97,7 +97,7 @@ Specifies options for tab autocompletion behavior.
Example
-````json title="config.json"
+```json title="config.json"
{
"tabAutocompleteOptions": {
"debounceDelay": 500,
@@ -105,6 +105,7 @@ Example
"disableInFiles": ["*.md"]
}
}
+```
### `embeddingsProvider`
@@ -117,8 +118,8 @@ Embeddings model settings - the model used for @Codebase and @docs.
- `apiKey`: API key for the provider.
- `apiBase`: Base URL for API requests.
- `requestOptions`: Additional HTTP request settings specific to the embeddings provider.
-- `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
-- `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
+- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
+- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
(AWS ONLY)
@@ -132,12 +133,12 @@ Example:
"embeddingsProvider": {
"provider": "openai",
"model": "text-embedding-ada-002",
- "apiKey": "",
- "maxChunkSize": 256,
- "maxBatchSize": 5
+ "apiKey": "",
+ "maxEmbeddingChunkSize": 256,
+ "maxEmbeddingBatchSize": 5
}
}
-````
+```
### `completionOptions`
@@ -150,7 +151,7 @@ Parameters that control the behavior of text generation and completion settings.
- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass.
- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability.
- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output.
-- `frequencePenalty`: Penalizes tokens based on their frequency in the text, reducing repetition.
+- `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition.
- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0).
- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions.
- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`).
@@ -220,7 +221,7 @@ Example
"name": "voyage",
"params": {
"model": "rerank-2",
- "apiKey": ""
+ "apiKey": ""
}
}
}
@@ -234,23 +235,21 @@ List of documentation sites to index.
- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
-- `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL
-- `maxDepth`: Maximum depth for crawling. Default `3`
+
+- `maxDepth`: Maximum link depth for crawling. Default `4`
- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
+- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
Example
```json title="config.json"
-{
- "docs": [
+"docs": [
{
- "title": "Continue",
- "startUrl": "https://docs.continue.dev/intro",
- "rootUrl": "https://docs.continue.dev",
- "faviconUrl": "https://docs.continue.dev/favicon.ico"
- }
- ]
-}
+ "title": "Continue",
+ "startUrl": "https://docs.continue.dev/intro",
+ "faviconUrl": "https://docs.continue.dev/favicon.ico",
+ }
+]
```
### `slashCommands`
@@ -261,7 +260,7 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi
- `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review".
- `description`: Brief description of the command.
-- `step`: Used for built-in commands; set the name for pre-configured options.
+- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options.
- `params`: Additional parameters to configure command behavior (command-specific - see code for command)
Example:
@@ -343,40 +342,6 @@ Example
}
```
-### `disableSessionTitles`
-
-Prevents generating summary titles for each chat session when set to `true`.
-
-### `ui`
-
-Customizable UI settings to control interface appearance and behavior.
-
-**Properties:**
-
-- `codeBlockToolbarPosition`: Sets the toolbar position within code blocks, either `top` (default) or `bottom`.
-- `fontSize`: Specifies font size for UI elements.
-- `displayRawMarkdown`: If `true`, shows raw markdown in responses.
-- `showChatScrollbar`: If `true`, enables a scrollbar in the chat window.
-- `codeWrap`: If `true`, enables text wrapping in code blocks.
-
-Example:
-
-```json title="config.json"
-{
- "ui": {
- "codeBlockToolbarPosition": "bottom",
- "fontSize": 14,
- "displayRawMarkdown": false,
- "showChatScrollbar": false,
- "codeWrap": false
- }
-}
-```
-
-### `allowAnonymousTelemetry`
-
-When `true`, anonymous usage data is collected using Posthog, to improve features. Default is `true`.
-
### `userToken`
An optional token that identifies the user, primarily for authenticated services.
@@ -437,3 +402,28 @@ Example
}
}
```
+
+### Fully deprecated settings
+
+Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/deep-dives/settings.md). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/deep-dives/settings.md) and removed from `config.json`.
+
+- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
+- `promptPath`: This value will override during migration.
+- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
+- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
+- `tabAutocompleteOptions`
+ - `useCache`: This value will override during migration.
+ - `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
+ - `multilineCompletions`: This value will override during migration.
+- `experimental`
+ - `useChromiumForDocsCrawling`: This value will override during migration.
+ - `readResponseTTS`: This value will override during migration.
+- `ui` - all will override during migration
+
+ - `codeBlockToolbarPosition`
+ - `fontSize`
+ - `codeWrap`
+ - `displayRawMarkdown`
+ - `showChatScrollbar`
+
+ See [User Settings Page](./customize/deep-dives/settings.md) for more information about each option.
diff --git a/docs/docs/reference.md b/docs/docs/reference.md
index 143fec98b..bbb1ab11d 100644
--- a/docs/docs/reference.md
+++ b/docs/docs/reference.md
@@ -1,231 +1,273 @@
---
-title: config.json Reference
-description: Reference for the Continue _config.json_ configuration file
-keywords: [config, config_schema.json, json]
+title: Config YAML Reference
+description: Reference for the Continue configuration YAML file
+keywords: [config, yaml, configuration, customize, customization]
---
+# config.yaml Reference
+
+## Introduction
+
+Continue hub assistants are defined using the `config.yaml` specification. Local assistants can also be configured using a YAML file `config.yaml` placed in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`)
+
:::info
-We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](./yaml-reference.md).
+Config YAML replaces `config.json`. View the **[Migration Guide](/yaml-migration)**.
:::
-Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json).
+An assistant is made up of:
-**All properties at all levels are optional unless explicitly marked required**
+1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant
+2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as models, docs, and context providers.
+
+A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In `config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`), but only has **ONE** item under whichever block type it is.
+
+Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants).
+
+Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks.
+
+### Using Blocks
+
+Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner can be a user or organization.
+
+Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other `uses` clauses or explicit blocks of that type.
+
+:::info
+Note that `uses` blocks cannot be used with a local `config.yaml`
+:::
+
+For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one.
+
+```yaml title="Assistant models section"
+models:
+ - uses: anthropic/claude-3.5-sonnet # an imported model block
+ - model: deepseek-reasoner # an explicit model block
+ provider: ollama
+```
+
+### Inputs
+
+Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use mustache templating as follows:
+
+```yaml title="Block config.yaml"
+name: myprofile/custom-model
+models:
+ - name: My Favorite Model
+ provider: anthropic
+ apiKey: ${{ inputs.ANTHROPIC_API_KEY }}
+ defaultCompletionOptions:
+ temperature: ${{ inputs.TEMP }}
+```
+
+Which can then be imported like
+
+```yaml title="Assistant config.yaml"
+name: myprofile/custom-assistant
+models:
+ - uses: myprofile/custom-model
+ with:
+ ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
+ TEMP: 0.9
+```
+
+Note that hub secrets can be passed as inputs, using the a similar mustache format: `secrets.SECRET_NAME`.
+
+### Overrides
+
+Block properties can be also be directly overriden using `override`. For example:
+
+```yaml title="Assistant config.yaml"
+name: myprofile/custom-assistant
+models:
+ - uses: myprofile/custom-model
+ with:
+ ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
+ TEMP: 0.9
+ override:
+ roles:
+ - chat
+```
+
+## Properties
+
+Below are details for each property that can be set in `config.yaml`.
+
+**All properties at all levels are optional unless explicitly marked as required.**
+
+The top-level properties in the `config.yaml` configuration file are:
+
+- [`name`](#name) (**required**)
+- [`version`](#version) (**required**)
+- [`schema`](#schema) (**required**)
+- [`models`](#models)
+- [`context`](#context)
+- [`rules`](#rules)
+- [`prompts`](#prompts)
+- [`docs`](#docs)
+- [`mcpServers`](#mcpservers)
+- [`data`](#data)
+
+---
+
+### `name`
+
+The `name` property specifies the name of your project or configuration.
+
+```yaml title="config.yaml"
+name: MyProject
+```
+
+---
+
+### `version`
+
+The `version` property specifies the version of your project or configuration.
+
+### `schema`
+
+The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1`
+
+---
### `models`
-Your **chat** models are defined here, which are used for [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Actions](./actions/how-to-use-it.md).
-Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
+The `models` section defines the language models used in your configuration. Models are used for functionalities such as chat, editing, and summarizing.
**Properties:**
-- `title` (**required**): The title to assign to your model, shown in dropdowns, etc.
-- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions.
-- `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models.
-- `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI.
-- `apiBase`: The base URL of the LLM API.
-- `contextLength`: Maximum context length of the model, typically in tokens (default: 2048).
-- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
-- `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions.
-- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt).
-- `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override.
-- `systemMessage`: A system message that will precede responses from the LLM.
-- `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override.
-- `apiType`: Specifies the type of API (`openai` or `azure`).
-- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`).
-- `engine`: Engine for Azure OpenAI requests.
-- `capabilities`: Override auto-detected capabilities:
- - `uploadImage`: Boolean indicating if the model supports image uploads.
- - `tools`: Boolean indicating if the model supports tool use.
+- `name` (**required**): A unique name to identify the model within your configuration.
+- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`).
+- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`).
+- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used.
+- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`.
+- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings:
-_(AWS Only)_
+ - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
+ - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
-- `profile`: AWS security profile for authorization.
-- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider).
-- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`).
+- `defaultCompletionOptions`: Default completion options for model settings.
-Example:
+ **Properties:**
-```json title="config.json"
-{
- "models": [
- {
- "title": "Ollama",
- "provider": "ollama",
- "model": "AUTODETECT"
- },
- {
- "model": "gpt-4o",
- "contextLength": 128000,
- "title": "GPT-4o",
- "provider": "openai",
- "apiKey": "YOUR_API_KEY"
- }
- ]
-}
+ - `contextLength`: Maximum context length of the model, typically in tokens.
+ - `maxTokens`: Maximum number of tokens to generate in a completion.
+ - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random).
+ - `topP`: The cumulative probability for nucleus sampling.
+ - `topK`: Maximum number of tokens considered at each step.
+ - `stop`: An array of stop tokens that will terminate the completion.
+ - `n`: Number of completions to generate.
+
+- `requestOptions`: HTTP request options specific to the model.
+
+ **Properties:**
+
+ - `timeout`: Timeout for each request to the language model.
+ - `verifySsl`: Whether to verify SSL certificates for requests.
+ - `caBundlePath`: Path to a custom CA bundle for HTTP requests.
+ - `proxy`: Proxy URL for HTTP requests.
+ - `headers`: Custom headers for HTTP requests.
+ - `extraBodyProperties`: Additional properties to merge with the HTTP request body.
+ - `noProxy`: List of hostnames that should bypass the specified proxy.
+ - `clientCertificate`: Client certificate for HTTP requests.
+ - `cert`: Path to the client certificate file.
+ - `key`: Path to the client certificate key file.
+ - `passphrase`: Optional passphrase for the client certificate key file.
+
+#### Example:
+
+```yaml title="config.yaml"
+models:
+ - name: GPT-4o
+ provider: openai
+ model: gpt-4o
+ roles:
+ - chat
+ - edit
+ - apply
+ defaultCompletionOptions:
+ temperature: 0.7
+ maxTokens: 1500
+
+ - name: Codestral
+ provider: mistral
+ model: codestral-latest
+ roles:
+ - autocomplete
+
+ - name: My Model - OpenAI-Compatible
+ provider: openai
+ apiBase: http://my-endpoint/v1
+ model: my-custom-model
+ capabilities:
+ - tool_use
+ - image_input
+ roles:
+ - chat
+ - edit
```
-### `tabAutocompleteModel`
+---
-Specifies the model or models for tab autocompletion, defaulting to an Ollama instance. This property uses the same format as `models`. Can be an array of models or an object for one model.
+### `context`
+
+The `context` section defines context providers, which supply additional information or context to the language models. Each context provider can be configured with specific parameters.
+
+More information about usage/params for each context provider can be found [here](/customize/context-providers.mdx)
+
+**Properties:**
+
+- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`).
+- `params`: Optional parameters to configure the context provider's behavior.
+
+**Example:**
+
+```yaml title="config.yaml"
+context:
+ - provider: files
+ - provider: code
+ - provider: codebase
+ params:
+ nFinal: 10
+ - provider: docs
+ - provider: diff
+ - provider: folder
+ - provider: terminal
+```
+
+---
+
+### `rules`
+
+List of rules that the LLM should follow. These are inserted into the system message for all chat requests.
Example
-```json title="config.json"
-{
- "tabAutocompleteModel": {
- "title": "My Starcoder",
- "provider": "ollama",
- "model": "starcoder2:3b"
- }
-}
+```yaml title="config.yaml"
+rules:
+ - uses: myprofile/my-mood-setter
+ with:
+ MOOD: happy
+ - Always annotate Python functions with their parameter and return types
+ - Always write Google style docstrings for functions and classes
```
-### `tabAutocompleteOptions`
+---
-Specifies options for tab autocompletion behavior.
+### `prompts`
-**Properties:**
+A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual prompt text.
-- `disable`: If `true`, disables tab autocomplete (default: `false`).
-- `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`).
-- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
-- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
-- `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
-- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
-- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
-
-Example
-
-```json title="config.json"
-{
- "tabAutocompleteOptions": {
- "debounceDelay": 500,
- "maxPromptTokens": 1500,
- "disableInFiles": ["*.md"]
- }
-}
+```yaml title="config.yaml"
+prompts:
+ - name: check
+ description: Check for mistakes in my code
+ prompt: |
+ Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
+ - Syntax errors
+ - Logic errors
+ - Security vulnerabilities
```
-### `embeddingsProvider`
-
-Embeddings model settings - the model used for @Codebase and @docs.
-
-**Properties:**
-
-- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `gemini`, etc
-- `model`: Model name for embeddings.
-- `apiKey`: API key for the provider.
-- `apiBase`: Base URL for API requests.
-- `requestOptions`: Additional HTTP request settings specific to the embeddings provider.
-- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
-- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
-
-(AWS ONLY)
-
-- `region`: Specifies the region hosting the model.
-- `profile`: AWS security profile.
-
-Example:
-
-```json title="config.json"
-{
- "embeddingsProvider": {
- "provider": "openai",
- "model": "text-embedding-ada-002",
- "apiKey": "",
- "maxEmbeddingChunkSize": 256,
- "maxEmbeddingBatchSize": 5
- }
-}
-```
-
-### `completionOptions`
-
-Parameters that control the behavior of text generation and completion settings. Top-level `completionOptions` apply to all models, _unless overridden at the model level_.
-
-**Properties:**
-
-- `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`).
-- `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs.
-- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass.
-- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability.
-- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output.
-- `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition.
-- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0).
-- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions.
-- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`).
-- `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`.
-- `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes).
-- `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
-
-Example
-
-```json title="config.json"
-{
- "completionOptions": {
- "stream": false,
- "temperature": 0.5
- }
-}
-```
-
-### `requestOptions`
-
-Default HTTP request options that apply to all models and context providers, unless overridden at the model level.
-
-**Properties:**
-
-- `timeout`: Timeout for each request to the LLM (default: 7200 seconds).
-- `verifySsl`: Whether to verify SSL certificates for requests.
-- `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths)
-- `proxy`: Proxy URL to use for HTTP requests.
-- `headers`: Custom headers for HTTP requests.
-- `extraBodyProperties`: Additional properties to merge with the HTTP request body.
-- `noProxy`: List of hostnames that should bypass the specified proxy.
-- `clientCertificate`: Client certificate for HTTP requests.
-
- - `cert`: Path to the client certificate file.
- - `key`: Path to the client certificate key file.
- - `passphrase`: Optional passphrase for the client certificate key file.
-
-Example
-
-```json title="config.json"
-{
- "requestOptions": {
- "headers": {
- "X-Auth-Token": "xxx"
- }
- }
-}
-```
-
-### `reranker`
-
-Configuration for the reranker model used in response ranking.
-
-**Properties:**
-
-- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock`
-- `params`:
- - `model`: Model name
- - `apiKey`: Api key
- - `region`: Region (for Bedrock only)
-
-Example
-
-```json title="config.json"
-{
- "reranker": {
- "name": "voyage",
- "params": {
- "model": "rerank-2",
- "apiKey": ""
- }
- }
-}
-```
+---
### `docs`
@@ -233,7 +275,7 @@ List of documentation sites to index.
**Properties:**
-- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
+- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc.
- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
- `maxDepth`: Maximum link depth for crawling. Default `4`
@@ -242,170 +284,199 @@ List of documentation sites to index.
Example
-```json title="config.json"
-"docs": [
- {
- "title": "Continue",
- "startUrl": "https://docs.continue.dev/intro",
- "faviconUrl": "https://docs.continue.dev/favicon.ico",
- }
-]
+```yaml title="config.yaml"
+docs:
+ - name: Continue
+ startUrl: https://docs.continue.dev/intro
+ favicon: https://docs.continue.dev/favicon.ico
```
-### `slashCommands`
+---
-Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined.
+### `mcpServers`
+
+
+
+The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider.
**Properties:**
-- `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review".
-- `description`: Brief description of the command.
-- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options.
-- `params`: Additional parameters to configure command behavior (command-specific - see code for command)
+- `name` (**required**): The name of the MCP server.
+- `command` (**required**): The command used to start the server.
+- `args`: An optional array of arguments for the command.
+- `env`: An optional map of environment variables for the server process.
-Example:
+**Example:**
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "commit",
- "description": "Generate a commit message"
- },
- {
- "name": "share",
- "description": "Export this session as markdown"
- },
- {
- "name": "cmd",
- "description": "Generate a shell command"
- }
- ]
-}
+```yaml title="config.yaml"
+mcpServers:
+ - name: My MCP Server
+ command: uvx
+ args:
+ - mcp-server-sqlite
+ - --db-path
+ - /Users/NAME/test.db
```
-### `customCommands`
+### `data`
-User-defined commands for prompt shortcuts in the sidebar, allowing quick access to common actions.
+Destinations to which [development data](./customize/deep-dives/development-data.md) will be sent.
**Properties:**
-- `name`: The name of the custom command.
-- `prompt`: Text prompt for the command.
-- `description`: Brief description explaining the command's function.
+- `name` (**required**): The display name of the data destination
+- `destination` (**required**): The destination/endpoint that will receive the data. Can be:
+ - an HTTP endpoint that will receive a POST request with a JSON blob
+ - a file URL to a directory in which events will be dumpted to `.jsonl` files
+- `schema` (**required**): the schema version of the JSON blobs to be sent
+- `events`: an array of event names to include. Defaults to all events if not specified.
+- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file contents, prompts, and completions. Defaults to `all`
+- `apiKey`: api key to be sent with request (Bearer header)
+- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models).
-Example:
+ **Example:**
-```json title="config.json"
-{
- "customCommands": [
- {
- "name": "test",
- "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
- "description": "Write unit tests for highlighted code"
- }
- ]
-}
+```yaml title="config.yaml"
+data:
+ - name: Local Data Bank
+ destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
+ schema: 0.2.0
+ level: all
+ - name: My Private Company
+ destination: https://mycompany.com/ingest
+ schema: 0.2.0
+ level: noCode
+ events:
+ - autocomplete
+ - chatInteraction
```
-### `contextProviders`
+---
-List of the pre-defined context providers that will show up as options while typing in the chat, and their customization with `params`.
+## Complete YAML Config Example
-**Properties:**
+Putting it all together, here's a complete example of a `config.yaml` configuration file:
-- `name`: Name of the context provider, e.g. `docs` or `web`
-- `params`: A context-provider-specific record of params to configure the context behavior
+```yaml title="config.yaml"
+name: MyProject
+version: 0.0.1
+schema: v1
-Example
+models:
+ - uses: anthropic/claude-3.5-sonnet
+ with:
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ override:
+ defaultCompletionOptions:
+ temperature: 0.8
+ - name: GPT-4
+ provider: openai
+ model: gpt-4
+ roles:
+ - chat
+ - edit
+ defaultCompletionOptions:
+ temperature: 0.5
+ maxTokens: 2000
+ requestOptions:
+ headers:
+ Authorization: Bearer YOUR_OPENAI_API_KEY
-```json title="config.json"
-{
- "contextProviders": [
- {
- "name": "code",
- "params": {}
- },
- {
- "name": "docs",
- "params": {}
- },
- {
- "name": "diff",
- "params": {}
- },
- {
- "name": "open",
- "params": {}
- }
- ]
-}
+ - name: Ollama Starcoder
+ provider: ollama
+ model: starcoder
+ roles:
+ - autocomplete
+ defaultCompletionOptions:
+ temperature: 0.3
+ stop:
+ - "\n"
+
+rules:
+ - Give concise responses
+ - Always assume TypeScript rather than JavaScript
+
+prompts:
+ - name: test
+ description: Unit test a function
+ prompt: |
+ Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case.
+ - uses: myprofile/my-favorite-prompt
+
+context:
+ - provider: diff
+ - provider: file
+ - provider: codebase
+ - provider: code
+ - provider: docs
+ params:
+ startUrl: https://docs.example.com/introduction
+ rootUrl: https://docs.example.com
+ maxDepth: 3
+
+mcpServers:
+ - name: DevServer
+ command: npm
+ args:
+ - run
+ - dev
+ env:
+ PORT: "3000"
+
+data:
+ - name: My Private Company
+ destination: https://mycompany.com/ingest
+ schema: 0.2.0
+ level: noCode
+ events:
+ - autocomplete
+ - chatInteraction
```
-### `userToken`
+## Using YAML anchors to avoid config duplication
-An optional token that identifies the user, primarily for authenticated services.
+You can also use node anchors to avoid duplication of properties. To do so,
+adding the YAML version header `%YAML 1.1` is needed, here's an example of
+a `config.yaml` configuration file using anchors:
-### `systemMessage`
+```yaml title="config.yaml"
+%YAML 1.1
+---
+name: MyProject
+version: 0.0.1
+schema: v1
-Defines a system message that appears before every response from the language model, providing guidance or context.
+model_defaults: &model_defaults
+ provider: openai
+ apiKey: my-api-key
+ apiBase: https://api.example.com/llm
-### `experimental`
+models:
+ - name: mistral
+ <<: *model_defaults
+ model: mistral-7b-instruct
+ roles:
+ - chat
+ - edit
-Several experimental config parameters are available, as described below:
+ - name: qwen2.5-coder-7b-instruct
+ <<: *model_defaults
+ model: qwen2.5-coder-7b-instruct
+ roles:
+ - chat
+ - edit
-`experimental`:
-
-- `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.=
-- `modelRoles`:
- - `inlineEdit`: Model title for inline edits.
- - `applyCodeBlock`: Model title for applying code blocks.
- - `repoMapFileSelection`: Model title for repo map selections.
-- `quickActions`: Array of custom quick actions
- - `title` (**required**): Display title for the quick action.
- - `prompt` (**required**): Prompt for quick action.
- - `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`.
-- `contextMenuPrompts`:
- - `comment`: Prompt for commenting code.
- - `docstring`: Prompt for adding docstrings.
- - `fix`: Prompt for fixing code.
- - `optimize`: Prompt for optimizing code.
-- `modelContextProtocolServers`: See [Model Context Protocol](/customize/context-providers#model-context-protocol)
-
-Example
-
-```json title="config.json"
-{
- "experimental": {
- "modelRoles": {
- "inlineEdit": "Edit Model"
- },
- "quickActions": [
- {
- "title": "Tags",
- "prompt": "Return a list of any function and class names from the included code block",
- "sendToChat": true
- }
- ],
- "contextMenuPrompts": {
- "fixGrammar": "Fix grammar in the above but allow for typos."
- },
- "modelContextProtocolServers": [
- {
- "transport": {
- "type": "stdio",
- "command": "uvx",
- "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
- }
- }
- ]
- }
-}
+ - name: qwen2.5-coder-7b
+ <<: *model_defaults
+ model: qwen2.5-coder-7b
+ useLegacyCompletionsEndpoint: false
+ roles:
+ - autocomplete
```
### Fully deprecated settings
-Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/settings.md). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/settings.md) and removed from `config.json`.
+Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/deep-dives/settings.md). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/deep-dives/settings.md) and removed from `config.json`.
- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
- `promptPath`: This value will override during migration.
@@ -426,4 +497,4 @@ Some deprecated `config.json` settings are no longer stored in config and have b
- `displayRawMarkdown`
- `showChatScrollbar`
- See [User Settings Page](./customize/settings.md) for more information about each option.
+ See [User Settings Page](./customize/deep-dives/settings.md) for more information about each option.
diff --git a/docs/docs/telemetry.md b/docs/docs/telemetry.md
index e21a93164..2383b6242 100644
--- a/docs/docs/telemetry.md
+++ b/docs/docs/telemetry.md
@@ -26,6 +26,6 @@ The following usage information is collected and reported:
## How to Opt Out
-You can disable anonymous telemetry by visiting the [User Settings Page](./customize/settings.md) and toggling "Allow Anonymous Telemetry" off.
+You can disable anonymous telemetry by visiting the [User Settings Page](./customize/deep-dives/settings.md) and toggling "Allow Anonymous Telemetry" off.
Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut ctrl + , on Windows/Linux or cmd + , on macOS).
diff --git a/docs/docs/yaml-migration.md b/docs/docs/yaml-migration.md
index ec189e429..738de32fa 100644
--- a/docs/docs/yaml-migration.md
+++ b/docs/docs/yaml-migration.md
@@ -12,7 +12,7 @@ See also
- [Intro to YAML](https://yaml.org/)
- [JSON Continue Config Reference](/json-reference)
-- [YAML Continue Config Reference](/yaml-reference)
+- [YAML Continue Config Reference](/reference)
## Create YAML file
@@ -38,9 +38,9 @@ Add all model configurations in `config.json`, including models in `models`, `ta
- `inlineEdit` -> e.g. `roles: [chat, edit]`
- `applyCodeBlock` -> e.g. `roles: [chat, apply]`
-Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/yaml-reference#requestoptions)
+Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#requestoptions)
-Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/yaml-reference#completionoptions)
+Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/reference#completionoptions)
@@ -327,9 +327,9 @@ mcpServers:
## Deprecated configuration options
-Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/settings.md) (Gear Icon). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/settings.md) and removed from `config.json`.
+Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/deep-dives/settings.md) (Gear Icon). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/deep-dives/settings.md) and removed from `config.json`.
-See the [JSON Config Reference](./reference#fully-deprecated-settings) for more information on fully deprecated options.
+See the [JSON Config Reference](./json-reference#fully-deprecated-settings) for more information on fully deprecated options.
The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent:
diff --git a/docs/docs/yaml-reference.md b/docs/docs/yaml-reference.md
deleted file mode 100644
index 2039c3887..000000000
--- a/docs/docs/yaml-reference.md
+++ /dev/null
@@ -1,500 +0,0 @@
----
-title: Config YAML Reference
-description: Reference for the Continue configuration YAML file
-keywords: [config, yaml, configuration, customize, customization]
----
-
-# config.yaml Reference
-
-## Introduction
-
-Continue hub assistants are defined using the `config.yaml` specification. Local assistants can also be configured using a YAML file `config.yaml` placed in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`)
-
-:::info
-Config YAML replaces `config.json`. View the **[Migration Guide](/yaml-migration)**.
-:::
-
-An assistant is made up of:
-
-1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant
-2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as models, docs, and context providers.
-
-A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In `config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`), but only has **ONE** item under whichever block type it is.
-
-Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants).
-
-Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks.
-
-### Using Blocks
-
-Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner can be a user or organization.
-
-Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other `uses` clauses or explicit blocks of that type.
-
-:::info
-Note that `uses` blocks cannot be used with a local `config.yaml`
-:::
-
-For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one.
-
-```yaml title="Assistant models section"
-models:
- - uses: anthropic/claude-3.5-sonnet # an imported model block
- - model: deepseek-reasoner # an explicit model block
- provider: ollama
-```
-
-### Inputs
-
-Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use mustache templating as follows:
-
-```yaml title="Block config.yaml"
-name: myprofile/custom-model
-models:
- - name: My Favorite Model
- provider: anthropic
- apiKey: ${{ inputs.ANTHROPIC_API_KEY }}
- defaultCompletionOptions:
- temperature: ${{ inputs.TEMP }}
-```
-
-Which can then be imported like
-
-```yaml title="Assistant config.yaml"
-name: myprofile/custom-assistant
-models:
- - uses: myprofile/custom-model
- with:
- ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
- TEMP: 0.9
-```
-
-Note that hub secrets can be passed as inputs, using the a similar mustache format: `secrets.SECRET_NAME`.
-
-### Overrides
-
-Block properties can be also be directly overriden using `override`. For example:
-
-```yaml title="Assistant config.yaml"
-name: myprofile/custom-assistant
-models:
- - uses: myprofile/custom-model
- with:
- ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
- TEMP: 0.9
- override:
- roles:
- - chat
-```
-
-## Properties
-
-Below are details for each property that can be set in `config.yaml`.
-
-**All properties at all levels are optional unless explicitly marked as required.**
-
-The top-level properties in the `config.yaml` configuration file are:
-
-- [`name`](#name) (**required**)
-- [`version`](#version) (**required**)
-- [`schema`](#schema) (**required**)
-- [`models`](#models)
-- [`context`](#context)
-- [`rules`](#rules)
-- [`prompts`](#prompts)
-- [`docs`](#docs)
-- [`mcpServers`](#mcpservers)
-- [`data`](#data)
-
----
-
-### `name`
-
-The `name` property specifies the name of your project or configuration.
-
-```yaml title="config.yaml"
-name: MyProject
-```
-
----
-
-### `version`
-
-The `version` property specifies the version of your project or configuration.
-
-### `schema`
-
-The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1`
-
----
-
-### `models`
-
-The `models` section defines the language models used in your configuration. Models are used for functionalities such as chat, editing, and summarizing.
-
-**Properties:**
-
-- `name` (**required**): A unique name to identify the model within your configuration.
-- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`).
-- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`).
-- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used.
-- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`.
-- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings:
-
- - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
- - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
-
-- `defaultCompletionOptions`: Default completion options for model settings.
-
- **Properties:**
-
- - `contextLength`: Maximum context length of the model, typically in tokens.
- - `maxTokens`: Maximum number of tokens to generate in a completion.
- - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random).
- - `topP`: The cumulative probability for nucleus sampling.
- - `topK`: Maximum number of tokens considered at each step.
- - `stop`: An array of stop tokens that will terminate the completion.
- - `n`: Number of completions to generate.
-
-- `requestOptions`: HTTP request options specific to the model.
-
- **Properties:**
-
- - `timeout`: Timeout for each request to the language model.
- - `verifySsl`: Whether to verify SSL certificates for requests.
- - `caBundlePath`: Path to a custom CA bundle for HTTP requests.
- - `proxy`: Proxy URL for HTTP requests.
- - `headers`: Custom headers for HTTP requests.
- - `extraBodyProperties`: Additional properties to merge with the HTTP request body.
- - `noProxy`: List of hostnames that should bypass the specified proxy.
- - `clientCertificate`: Client certificate for HTTP requests.
- - `cert`: Path to the client certificate file.
- - `key`: Path to the client certificate key file.
- - `passphrase`: Optional passphrase for the client certificate key file.
-
-#### Example:
-
-```yaml title="config.yaml"
-models:
- - name: GPT-4o
- provider: openai
- model: gpt-4o
- roles:
- - chat
- - edit
- - apply
- defaultCompletionOptions:
- temperature: 0.7
- maxTokens: 1500
-
- - name: Codestral
- provider: mistral
- model: codestral-latest
- roles:
- - autocomplete
-
- - name: My Model - OpenAI-Compatible
- provider: openai
- apiBase: http://my-endpoint/v1
- model: my-custom-model
- capabilities:
- - tool_use
- - image_input
- roles:
- - chat
- - edit
-```
-
----
-
-### `context`
-
-The `context` section defines context providers, which supply additional information or context to the language models. Each context provider can be configured with specific parameters.
-
-More information about usage/params for each context provider can be found [here](/customize/context-providers.mdx)
-
-**Properties:**
-
-- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`).
-- `params`: Optional parameters to configure the context provider's behavior.
-
-**Example:**
-
-```yaml title="config.yaml"
-context:
- - provider: files
- - provider: code
- - provider: codebase
- params:
- nFinal: 10
- - provider: docs
- - provider: diff
- - provider: folder
- - provider: terminal
-```
-
----
-
-### `rules`
-
-List of rules that the LLM should follow. These are inserted into the system message for all chat requests.
-
-Example
-
-```yaml title="config.yaml"
-rules:
- - uses: myprofile/my-mood-setter
- with:
- MOOD: happy
- - Always annotate Python functions with their parameter and return types
- - Always write Google style docstrings for functions and classes
-```
-
----
-
-### `prompts`
-
-A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual prompt text.
-
-```yaml title="config.yaml"
-prompts:
- - name: check
- description: Check for mistakes in my code
- prompt: |
- Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
- - Syntax errors
- - Logic errors
- - Security vulnerabilities
-```
-
----
-
-### `docs`
-
-List of documentation sites to index.
-
-**Properties:**
-
-- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc.
-- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
-
-- `maxDepth`: Maximum link depth for crawling. Default `4`
-- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
-- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
-
-Example
-
-```yaml title="config.yaml"
-docs:
- - name: Continue
- startUrl: https://docs.continue.dev/intro
- favicon: https://docs.continue.dev/favicon.ico
-```
-
----
-
-### `mcpServers`
-
-
-
-The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider.
-
-**Properties:**
-
-- `name` (**required**): The name of the MCP server.
-- `command` (**required**): The command used to start the server.
-- `args`: An optional array of arguments for the command.
-- `env`: An optional map of environment variables for the server process.
-
-**Example:**
-
-```yaml title="config.yaml"
-mcpServers:
- - name: My MCP Server
- command: uvx
- args:
- - mcp-server-sqlite
- - --db-path
- - /Users/NAME/test.db
-```
-
-### `data`
-
-Destinations to which [development data](./customize/deep-dives/development-data.md) will be sent.
-
-**Properties:**
-
-- `name` (**required**): The display name of the data destination
-- `destination` (**required**): The destination/endpoint that will receive the data. Can be:
- - an HTTP endpoint that will receive a POST request with a JSON blob
- - a file URL to a directory in which events will be dumpted to `.jsonl` files
-- `schema` (**required**): the schema version of the JSON blobs to be sent
-- `events`: an array of event names to include. Defaults to all events if not specified.
-- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file contents, prompts, and completions. Defaults to `all`
-- `apiKey`: api key to be sent with request (Bearer header)
-- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models).
-
- **Example:**
-
-```yaml title="config.yaml"
-data:
- - name: Local Data Bank
- destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
- schema: 0.2.0
- level: all
- - name: My Private Company
- destination: https://mycompany.com/ingest
- schema: 0.2.0
- level: noCode
- events:
- - autocomplete
- - chatInteraction
-```
-
----
-
-## Complete YAML Config Example
-
-Putting it all together, here's a complete example of a `config.yaml` configuration file:
-
-```yaml title="config.yaml"
-name: MyProject
-version: 0.0.1
-schema: v1
-
-models:
- - uses: anthropic/claude-3.5-sonnet
- with:
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
- override:
- defaultCompletionOptions:
- temperature: 0.8
- - name: GPT-4
- provider: openai
- model: gpt-4
- roles:
- - chat
- - edit
- defaultCompletionOptions:
- temperature: 0.5
- maxTokens: 2000
- requestOptions:
- headers:
- Authorization: Bearer YOUR_OPENAI_API_KEY
-
- - name: Ollama Starcoder
- provider: ollama
- model: starcoder
- roles:
- - autocomplete
- defaultCompletionOptions:
- temperature: 0.3
- stop:
- - "\n"
-
-rules:
- - Give concise responses
- - Always assume TypeScript rather than JavaScript
-
-prompts:
- - name: test
- description: Unit test a function
- prompt: |
- Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case.
- - uses: myprofile/my-favorite-prompt
-
-context:
- - provider: diff
- - provider: file
- - provider: codebase
- - provider: code
- - provider: docs
- params:
- startUrl: https://docs.example.com/introduction
- rootUrl: https://docs.example.com
- maxDepth: 3
-
-mcpServers:
- - name: DevServer
- command: npm
- args:
- - run
- - dev
- env:
- PORT: "3000"
-
-data:
- - name: My Private Company
- destination: https://mycompany.com/ingest
- schema: 0.2.0
- level: noCode
- events:
- - autocomplete
- - chatInteraction
-```
-
-## Using YAML anchors to avoid config duplication
-
-You can also use node anchors to avoid duplication of properties. To do so,
-adding the YAML version header `%YAML 1.1` is needed, here's an example of
-a `config.yaml` configuration file using anchors:
-
-```yaml title="config.yaml"
-%YAML 1.1
----
-name: MyProject
-version: 0.0.1
-schema: v1
-
-model_defaults: &model_defaults
- provider: openai
- apiKey: my-api-key
- apiBase: https://api.example.com/llm
-
-models:
- - name: mistral
- <<: *model_defaults
- model: mistral-7b-instruct
- roles:
- - chat
- - edit
-
- - name: qwen2.5-coder-7b-instruct
- <<: *model_defaults
- model: qwen2.5-coder-7b-instruct
- roles:
- - chat
- - edit
-
- - name: qwen2.5-coder-7b
- <<: *model_defaults
- model: qwen2.5-coder-7b
- useLegacyCompletionsEndpoint: false
- roles:
- - autocomplete
-```
-
-### Fully deprecated settings
-
-Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/settings.md). If found in `config.json`, they will be migrated to the [User Settings Page](./customize/settings.md) and removed from `config.json`.
-
-- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
-- `promptPath`: This value will override during migration.
-- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
-- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
-- `tabAutocompleteOptions`
- - `useCache`: This value will override during migration.
- - `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
- - `multilineCompletions`: This value will override during migration.
-- `experimental`
- - `useChromiumForDocsCrawling`: This value will override during migration.
- - `readResponseTTS`: This value will override during migration.
-- `ui` - all will override during migration
-
- - `codeBlockToolbarPosition`
- - `fontSize`
- - `codeWrap`
- - `displayRawMarkdown`
- - `showChatScrollbar`
-
- See [User Settings Page](./customize/settings.md) for more information about each option.
diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js
index c8d987266..6eb3bd082 100644
--- a/docs/docusaurus.config.js
+++ b/docs/docusaurus.config.js
@@ -93,6 +93,13 @@ const config = {
label: "User Guide",
href: "/",
},
+ {
+ type: "docSidebar",
+ sidebarId: "hubSidebar",
+ position: "left",
+ label: "Hub",
+ href: "/hub/introduction",
+ },
{
type: "docSidebar",
sidebarId: "customizingSidebar",
@@ -107,13 +114,7 @@ const config = {
label: "Reference",
href: "/reference",
},
- {
- type: "docSidebar",
- sidebarId: "hubSidebar",
- position: "left",
- label: "Hub",
- href: "/hub/introduction",
- },
+
{
to: "https://github.com/continuedev/continue",
label: "GitHub",
@@ -222,11 +223,11 @@ const config = {
},
{
to: "/customize/overview",
- from: "/customize",
+ from: ["/customize", "/customization"],
},
{
- to: "/customize/overview",
- from: "/customization",
+ to: "/customize/deep-dives/mcp",
+ from: "/customize/tools",
},
{
to: "/getting-started/install",
@@ -236,6 +237,10 @@ const config = {
// to: "/getting-started/install",
// from: "/getting-started",
// },
+ {
+ to: "/customize/deep-dives/settings",
+ from: "/customize/settings",
+ },
{
to: "/customize/model-roles",
from: ["/customize/model-types", "/setup/overview"],
@@ -298,7 +303,11 @@ const config = {
},
{
to: "/reference",
- from: ["/customization/code-config", "/reference/config"],
+ from: [
+ "/customization/code-config",
+ "/reference/config",
+ "/yaml-reference",
+ ],
},
{
to: "/customize/context-providers",
@@ -457,6 +466,10 @@ const config = {
to: "/chat/how-to-use-it",
from: "/chat",
},
+ {
+ to: "/agent/how-to-use-it",
+ from: "/agent",
+ },
{
to: "/edit/how-to-use-it",
from: "/edit",
diff --git a/docs/sidebars.js b/docs/sidebars.js
index 0e83628a4..fe1fe7835 100644
--- a/docs/sidebars.js
+++ b/docs/sidebars.js
@@ -47,11 +47,11 @@ const sidebars = {
},
{
type: "category",
- label: "Actions",
+ label: "Agent",
items: [
{
type: "autogenerated",
- dirName: "actions",
+ dirName: "agent",
},
],
},
@@ -59,8 +59,8 @@ const sidebars = {
"troubleshooting",
{
type: "link",
- label: "Customize",
- href: "/customize/overview",
+ label: "Hub",
+ href: "/hub/introduction",
},
],
customizingSidebar: [
@@ -128,18 +128,11 @@ const sidebars = {
},
],
},
- "customize/settings",
{
type: "link",
label: "Reference",
href: "/reference",
},
- {
- type: "link",
- label: "YAML Reference",
- href: "/yaml-reference",
- },
- "customize/changelog",
],
hubSidebar: [
"hub/introduction",
@@ -174,6 +167,11 @@ const sidebars = {
label: "Governance",
items: ["hub/governance/org-permissions", "hub/governance/pricing"],
},
+ {
+ type: "link",
+ label: "Customize",
+ href: "/customize/overview",
+ }
],
};
diff --git a/docs/static/img/agent-permission.png b/docs/static/img/agent-permission.png
new file mode 100644
index 000000000..c1738bb26
Binary files /dev/null and b/docs/static/img/agent-permission.png differ
diff --git a/docs/static/img/agent-response.png b/docs/static/img/agent-response.png
new file mode 100644
index 000000000..5ae84d36d
Binary files /dev/null and b/docs/static/img/agent-response.png differ
diff --git a/docs/static/img/agent.gif b/docs/static/img/agent.gif
new file mode 100644
index 000000000..7edf735a6
Binary files /dev/null and b/docs/static/img/agent.gif differ
diff --git a/docs/static/img/lump-toolbar.png b/docs/static/img/lump-toolbar.png
new file mode 100644
index 000000000..b3dcf88c2
Binary files /dev/null and b/docs/static/img/lump-toolbar.png differ
diff --git a/docs/static/img/mode-select-agent.png b/docs/static/img/mode-select-agent.png
new file mode 100644
index 000000000..2940a94fb
Binary files /dev/null and b/docs/static/img/mode-select-agent.png differ
diff --git a/docs/static/img/tool-policies.png b/docs/static/img/tool-policies.png
new file mode 100644
index 000000000..d5e52a607
Binary files /dev/null and b/docs/static/img/tool-policies.png differ
diff --git a/docs/static/img/tool-use-example.png b/docs/static/img/tool-use-example.png
deleted file mode 100644
index 63f1c456a..000000000
Binary files a/docs/static/img/tool-use-example.png and /dev/null differ