From c510fc4d2c1aaa906e401cab6519c4ff7cf4a067 Mon Sep 17 00:00:00 2001 From: Continue Agent Date: Mon, 15 Sep 2025 23:28:59 +0000 Subject: [PATCH 1/3] Replace config.json references with config.yml and remove tabs - Replaced all references to config.json with config.yml across documentation files - Removed tabs from configuration examples to show only config.yml examples - Updated migration guide to reflect config.yml to config.yaml migration path - Cleaned up configuration documentation to focus on YAML format only Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/customize/custom-providers.mdx | 183 --------- .../customize/deep-dives/custom-providers.mdx | 370 ++++-------------- docs/customize/deep-dives/slash-commands.mdx | 2 +- docs/customize/model-roles/chat.mdx | 174 -------- docs/customize/model-roles/edit.mdx | 41 +- docs/customize/model-roles/reranking.mdx | 53 +-- docs/reference.mdx | 2 +- docs/reference/yaml-migration.mdx | 183 +++++---- 8 files changed, 173 insertions(+), 835 deletions(-) diff --git a/docs/customize/custom-providers.mdx b/docs/customize/custom-providers.mdx index 068f0cdca..b66559487 100644 --- a/docs/customize/custom-providers.mdx +++ b/docs/customize/custom-providers.mdx @@ -19,116 +19,62 @@ You can add any built-in context-providers in your config file as shown below: Reference any file in your current workspace. -- YAML -- JSON - config.yaml ``` context: - provider: file ``` -config.json - -```json -{ "contextProviders": [{ "name": "file" }] } -``` - ### @Code Context Provider – Reference Functions and Classes Reference specific functions or classes from throughout your project. -- YAML -- JSON - config.yaml ``` context: - provider: code ``` -config.json - -```json -{ "contextProviders": [{ "name": "code" }] } -``` - ### @Git Diff Context Provider – Reference Branch Changes Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. -- YAML -- JSON - config.yaml ``` context: - provider: diff ``` -config.json - -```json -{ "contextProviders": [{ "name": "diff" }] } -``` - ### @Current File Context Provider – Reference the Active File Reference the currently open file. -- YAML -- JSON - config.yaml ``` context: - provider: currentFile ``` -config.json - -```json -{ "contextProviders": [{ "name": "currentFile" }] } -``` - ### @Terminal Context Provider – Reference Last Terminal Command and Output Reference the last command you ran in your IDE's terminal and its output. -- YAML -- JSON - config.yaml ``` context: - provider: terminal ``` -config.json - -```json -{ "contextProviders": [{ "name": "terminal" }] } -``` - ### @Docs Context Provider – Reference Documentation Site Content Reference the contents from any documentation site. -- YAML -- JSON - config.yaml ``` context: - provider: docs ``` -config.json - -```json -{ "contextProviders": [{ "name": "docs" }] } -``` - Note that this will only enable the `@Docs` context provider. To use it, you need to add a documentation site to your config file. See the [docs](/customize/overview#documentation-context) page for more information. @@ -137,9 +83,6 @@ To use it, you need to add a documentation site to your config file. See the [do Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. -- YAML -- JSON - config.yaml ``` @@ -149,21 +92,12 @@ context: onlyPinned: true ``` -config.json - -```json -{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] } -``` - ### @Web Context Provider – Reference Relevant Web Pages Reference relevant pages from across the web, automatically determined from your input. Optionally, set `n` to limit the number of results returned (default 6). -- YAML -- JSON - config.yaml ``` @@ -173,19 +107,10 @@ context: n: 5 ``` -config.json - -```json -{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] } -``` - ### @Codebase Context Provider – Reference Relevant Codebase Snippets Reference the most relevant snippets from your codebase. -- YAML -- JSON - config.yaml ``` @@ -193,40 +118,22 @@ context: - provider: codebase ``` -config.json - -```json -{ "contextProviders": [{ "name": "codebase" }] } -``` - Read more about indexing and retrieval [here](/customize/overview#codebase-context). ### @Folder Context Provider – Reference Code from a Specific Folder Uses the same retrieval mechanism as `@Codebase`, but only on a single folder. -- YAML -- JSON - config.yaml ``` context: - provider: folder ``` -config.json - -```json -{ "contextProviders": [{ "name": "folder" }] } -``` - ### @Search Context Provider – Reference Code Search Results Reference the results of codebase search, just like the results you would get from VS Code search. -- YAML -- JSON - config.yaml ``` @@ -236,21 +143,12 @@ context: maxResults: 100 # optional, defaults to 200 ``` -config.json - -```json -{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]} -``` - This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). ### @Url Context Provider – Reference Content from a URL Reference the markdown converted contents of a given URL. -- YAML -- JSON - config.yaml ``` @@ -258,19 +156,10 @@ context: - provider: url ``` -config.json - -```json -{ "contextProviders": [{ "name": "url" }] } -``` - ### @Clipboard Context Provider – Reference Clipboard Items Reference recent clipboard items -- YAML -- JSON - config.yaml ``` @@ -278,19 +167,10 @@ context: - provider: clipboard ``` -config.json - -```json -{ "contextProviders": [{ "name": "clipboard" }] } -``` - ### @Tree Context Provider – Reference Workspace File Structure Reference the structure of your current workspace. -- YAML -- JSON - config.yaml ``` @@ -298,19 +178,10 @@ context: - provider: tree ``` -config.json - -```json -{ "contextProviders": [{ "name": "tree" }] } -``` - ### @Problems Context Provider – Reference Problems in the Current File Get Problems from the current file. -- YAML -- JSON - config.yaml ``` @@ -318,19 +189,10 @@ context: - provider: problems ``` -config.json - -```json -{ "contextProviders": [{ "name": "problems" }] } -``` - ### @Debugger Context Provider – Reference Debugger Local Variables Reference the contents of the local variables in the debugger. Currently only available in VS Code. -- YAML -- JSON - config.yaml ``` @@ -340,12 +202,6 @@ context: stackDepth: 3 ``` -config.json - -```json -{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] } -``` - Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. ### @Repository Map Context Provider – Reference Codebase Outline and Signatures @@ -354,9 +210,6 @@ Reference the outline of your codebase. By default, signatures are included alon `includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled. -- YAML -- JSON - config.yaml ``` @@ -366,12 +219,6 @@ context: includeSignatures: false # default true ``` -config.json - -```json -{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]} -``` - Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase. In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repository map from. @@ -382,9 +229,6 @@ This context provider is inspired by [Aider's repository map](https://aider.chat Reference the architecture and platform of your current operating system. -- YAML -- JSON - config.yaml ``` @@ -392,19 +236,10 @@ context: - provider: os ``` -config.json - -```json -{ "contextProviders": [{ "name": "os" }] } -``` - ### Using the Model Context Protocol (MCP) in Continue 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. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this: -- YAML -- JSON - config.yaml ``` @@ -417,24 +252,6 @@ mcpServers: - /Users/NAME/test.db ``` -config.json - -```json -{ - "experimental": { - "modelContextProtocolServers": [ - { - "transport": { - "type": "stdio", - "command": "uvx", - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] - } - } - ] - } -} -``` - You'll then be able to type "@" and see "MCP" in the context providers dropdown. ### How to Request a New Context Provider in Continue diff --git a/docs/customize/deep-dives/custom-providers.mdx b/docs/customize/deep-dives/custom-providers.mdx index dc60dc560..9adc078ab 100644 --- a/docs/customize/deep-dives/custom-providers.mdx +++ b/docs/customize/deep-dives/custom-providers.mdx @@ -15,251 +15,95 @@ You can add any built-in context-providers in your config file as shown below: Reference any file in your current workspace. - - - ```yaml config.yaml - context: - - provider: file - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "file" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: file +``` ### `@Code` Reference specific functions or classes from throughout your project. - - - ```yaml config.yaml - context: - - provider: code - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "code" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: code +``` ### `@Git Diff` Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. - - - ```yaml config.yaml - context: - - provider: diff - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "diff" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: diff +``` ### `@Current File` Reference the currently open file. - - - ```yaml config.yaml - context: - - provider: currentFile - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "currentFile" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: currentFile +``` ### `@Terminal` Reference the last command you ran in your IDE's terminal and its output. - - - ```yaml config.yaml - context: - - provider: terminal - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "terminal" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: terminal +``` ### `@Open` Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. - - - ```yaml config.yaml - context: - - provider: open - params: - onlyPinned: true - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "open", - "params": { - "onlyPinned": true - } - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: open + params: + onlyPinned: true +``` ### `@Clipboard` Reference recent clipboard items - - - ```yaml config.yaml - context: - - provider: clipboard - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "clipboard" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: clipboard +``` ### `@Tree` Reference the structure of your current workspace. - - - ```yaml config.yaml - context: - - provider: tree - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "tree" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: tree +``` ### `@Problems` Get Problems from the current file. - - - ```yaml config.yaml - context: - - provider: problems - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "problems" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: problems +``` ### `@Debugger` Reference the contents of the local variables in the debugger. Currently only available in VS Code. - - - ```yaml config.yaml - context: - - provider: debugger - params: - stackDepth: 3 - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "debugger", - "params": { - "stackDepth": 3 - } - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: debugger + params: + stackDepth: 3 +``` Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. @@ -269,30 +113,12 @@ Reference the outline of your codebase. By default, signatures are included alon `includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled. - - - ```yaml config.yaml - context: - - provider: repo-map - params: - includeSignatures: false # default true - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "repo-map", - "params": { - "includeSignatures": false // default true - } - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: repo-map + params: + includeSignatures: false # default true +``` Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase. @@ -304,56 +130,23 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat Reference the architecture and platform of your current operating system. - - - ```yaml config.yaml - context: - - provider: os - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "os" - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: os +``` ### `@HTTP` The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems. - - - ```yaml config.yaml - context: - - provider: http - params: - url: "https://api.example.com/v1/users" - headers: - - Authorization: "Bearer " - ``` - - - ```json config.json - { - "contextProviders": [ - { - "name": "http", - "params": { - "url": "https://api.example.com/v1/users" - } - } - ] - } - ``` - - +```yaml config.yaml +context: + - provider: http + params: + url: "https://api.example.com/v1/users" + headers: + - Authorization: "Bearer " +``` The receiving URL should expect to receive the following parameters: @@ -375,36 +168,15 @@ Response 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. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this: - - - ```yaml config.yaml - mcpServers: - - name: My MCP Server - command: uvx - args: - - mcp-server-sqlite - - --db-path - - /Users/NAME/test.db - ``` - - - ```json config.json - { - "experimental": { - "modelContextProtocolServers": [ - { - "transport": { - "type": "stdio", - "command": "uvx", - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] - } - } - ] - } - } - ``` - - +```yaml config.yaml +mcpServers: + - name: My MCP Server + command: uvx + args: + - mcp-server-sqlite + - --db-path + - /Users/NAME/test.db +``` You'll then be able to type "@" and see "MCP" in the context providers dropdown. diff --git a/docs/customize/deep-dives/slash-commands.mdx b/docs/customize/deep-dives/slash-commands.mdx index ef11b0f8d..8db84b345 100644 --- a/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/customize/deep-dives/slash-commands.mdx @@ -14,7 +14,7 @@ Slash commands can be combined with additional instructions, including highlight **Recommended approach**: Use prompt files to create slash commands instead of - the deprecated `config.json` approach. The methods described below provide + the deprecated config.yml approach. The methods described below provide better flexibility and are the actively maintained ways to add custom commands. diff --git a/docs/customize/model-roles/chat.mdx b/docs/customize/model-roles/chat.mdx index afafb8591..f7fbedbc3 100644 --- a/docs/customize/model-roles/chat.mdx +++ b/docs/customize/model-roles/chat.mdx @@ -36,20 +36,6 @@ Our current top recommendations are Claude Opus 4.1 and Claude Sonnet 4 from [An apiKey: ``` - - ```json title="config.json" - { - "models": [ - { - "title": "Claude Opus 4.1", - "provider": "anthropic", - "model": "claude-4-1-opus", - "apiKey": "" - } - ] - } - ``` - ### Gemma from Google DeepMind @@ -88,37 +74,6 @@ If you prefer to use an open-weight model, then the Gemma family of Models from - - - - ```json title="config.json" - { - "models": [ - { - "title": "Gemma 3 27B", - "provider": "ollama", - "model": "gemma3:27b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Gemma 3 27B", - "provider": "together", - "model": "google/gemma-2-27b-it", - "apiKey": "" - } - ] - } - ``` - - - ### GPT-4o from OpenAI @@ -138,20 +93,6 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai), apiKey: ``` - - ```json title="config.json" - { - "models": [ - { - "title": "GPT-4o", - "provider": "openai", - "model": "", - "apiKey": "" - } - ] - } - ``` - ### Grok-2 from xAI @@ -171,20 +112,6 @@ If you prefer to use a model from [xAI](../model-providers/more/xAI), then we re apiKey: ``` - - ```json title="config.json" - { - "models": [ - { - "title": "Grok-2", - "provider": "xAI", - "model": "grok-2-latest", - "apiKey": "" - } - ] - } - ``` - ### Gemini 2.0 Flash from Google @@ -204,20 +131,6 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini), apiKey: ``` - - ```json title="config.json" - { - "models": [ - { - "title": "Gemini 2.0 Flash", - "provider": "gemini", - "model": "gemini-2.0-flash", - "apiKey": "" - } - ] - } - ``` - ## Local, offline experience @@ -268,49 +181,6 @@ If your local machine can run an 8B parameter model, then we recommend running L - - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "ollama", - "model": "llama3.1:8b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "lmstudio", - "model": "llama3.1-8b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "msty", - "model": "llama3.1-8b" - } - ] - } - ``` - - - ### DeepSeek Coder 2 16B @@ -357,50 +227,6 @@ If your local machine can run a 16B parameter model, then we recommend running D - - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Coder 2 16B", - "provider": "ollama", - "model": "deepseek-coder-v2:16b", - "apiBase": "http://localhost:11434" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Coder 2 16B", - "provider": "lmstudio", - "model": "deepseek-coder-v2:16b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Coder 2 16B", - "provider": "msty", - "model": "deepseek-coder-v2:16b" - } - ] - } - ``` - - - ## Other experiences diff --git a/docs/customize/model-roles/edit.mdx b/docs/customize/model-roles/edit.mdx index e60d47017..7779c0d64 100644 --- a/docs/customize/model-roles/edit.mdx +++ b/docs/customize/model-roles/edit.mdx @@ -10,38 +10,15 @@ It's often useful to select a different model to respond to Edit prompts than fo In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used. - - - Use model roles. - ```yaml title="config.yaml" - models: - - name: Claude 3.5 Sonnet - provider: anthropic - model: claude-3-5-sonnet-latest - apiKey: - roles: - - edit - ``` - - - Set the `experimental.modelRoles.inlineEdit` property in `config.json`. - ```json title="config.json" - { - "models": { - "name": "Claude 3.5 Sonnet", - "provider": "anthropic", - "model": "claude-3-5-sonnet-latest", - "apiKey": "" - }, - "experimental": { - "modelRoles": { - "inlineEdit": "Claude 3.5 Sonnet", - } - } - } - ``` - - +```yaml title="config.yaml" +models: + - name: Claude 3.5 Sonnet + provider: anthropic + model: claude-3-5-sonnet-latest + apiKey: + roles: + - edit +``` Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat. diff --git a/docs/customize/model-roles/reranking.mdx b/docs/customize/model-roles/reranking.mdx index ed5974b4b..f559641ad 100644 --- a/docs/customize/model-roles/reranking.mdx +++ b/docs/customize/model-roles/reranking.mdx @@ -36,19 +36,6 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model. - rerank ``` - - ```json title="config.json" - { - "reranker": { - "name": "voyage", - "params": { - "model": "rerank-2", - "apiKey": "" - } - } - } - ``` - ### Cohere @@ -71,19 +58,6 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer - rerank ``` - - ```json title="config.json" - { - "reranker": { - "name": "cohere", - "params": { - "model": "rerank-english-v3.0", - "apiKey": "" - } - } - } - ``` - ### LLM @@ -105,21 +79,9 @@ If you only have access to a single LLM, then you can use it as a reranker. This - rerank ``` - - ```json title="config.json" - { - "reranker": { - "name": "llm", - "params": { - "modelTitle": "My Model Title" - } - } - } - ``` - -The `"modelTitle"` field must match one of the models in your "models" array in config.json. + ### Text Embeddings Inference @@ -142,17 +104,4 @@ The `"modelTitle"` field must match one of the models in your "models" array in - rerank ``` - - ```json title="config.json" - { - "reranker": { - "name": "huggingface-tei", - "params": { - "apiBase": "http://localhost:8080", - "apiKey": "" - } - } - } - ``` - diff --git a/docs/reference.mdx b/docs/reference.mdx index 8da668f9f..0f0cb2916 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -14,7 +14,7 @@ Continue hub agents are defined using the `config.yaml` specification. Agents ca - in your workspace in a `/.continue/agents` folder, with the same naming convention - Config YAML replaces `config.json`, which is deprecated. View the **[Migration + Config YAML replaces `config.yml`, which is deprecated. View the **[Migration Guide](/reference/yaml-migration)**. diff --git a/docs/reference/yaml-migration.mdx b/docs/reference/yaml-migration.mdx index 4abcaf154..e2ebeaac3 100644 --- a/docs/reference/yaml-migration.mdx +++ b/docs/reference/yaml-migration.mdx @@ -1,17 +1,16 @@ --- title: "Migrating Config to YAML" -description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from to ." +description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from config.yml to config.yaml." --- See also - [Intro to YAML](https://yaml.org/) -- [JSON Continue Config Reference](/reference) - [YAML Continue Config Reference](/reference) ## Create YAML file -Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current `config.json` file. If a `config.yaml` file is present, it will be loaded instead of `config.json`. +Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current config.yml file. If a `config.yaml` file is present, it will be loaded instead of config.yml. Give your configuration a `name` and a `version`: @@ -43,44 +42,42 @@ Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with **Before** -config.json +config.yml -```json -{ - "models": [ - { - "title": "GPT-4", - "provider": "openai", - "model": "gpt-4", - "apiKey": "", - "completionOptions": { "temperature": 0.5, "maxTokens": 2000 } - }, - { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, - { - "title": "My Open AI Compatible Model", - "provider": "openai", - "apiBase": "http://3.3.3.3/v1", - "model": "my-openai-compatible-model", - "requestOptions": { "headers": { "X-Auth-Token": "" } } - } - ], - "tabAutocompleteModel": { - "title": "My Starcoder", - "provider": "ollama", - "model": "starcoder2:3b" - }, - "embeddingsProvider": { - "provider": "openai", - "model": "text-embedding-ada-002", - "apiKey": "", - "maxEmbeddingChunkSize": 256, - "maxEmbeddingBatchSize": 5 - }, - "reranker": { - "name": "voyage", - "params": { "model": "rerank-2", "apiKey": "" } - } -} +```yaml +models: + - title: GPT-4 + provider: openai + model: gpt-4 + apiKey: + completionOptions: + temperature: 0.5 + maxTokens: 2000 + - title: Ollama + provider: ollama + model: AUTODETECT + - title: My Open AI Compatible Model + provider: openai + apiBase: http://3.3.3.3/v1 + model: my-openai-compatible-model + requestOptions: + headers: + X-Auth-Token: +tabAutocompleteModel: + title: My Starcoder + provider: ollama + model: starcoder2:3b +embeddingsProvider: + provider: openai + model: text-embedding-ada-002 + apiKey: + maxEmbeddingChunkSize: 256 + maxEmbeddingBatchSize: 5 +reranker: + name: voyage + params: + model: rerank-2 + apiKey: ``` **After** @@ -143,16 +140,17 @@ The JSON `contextProviders` field is replaced by the YAML `context` array. **Before** -config.json +config.yml -```json -{ - "contextProviders": [ - { "name": "docs" }, - { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } }, - { "name": "diff", "params": {} } - ] -} +```yaml +contextProviders: + - name: docs + - name: codebase + params: + nRetrieve: 30 + nFinal: 3 + - name: diff + params: {} ``` **After** @@ -175,10 +173,10 @@ The `systemMessage` property has been replaced with a `rules` property that take **Before** -config.json +config.yml -```json -{ "systemMessage": "Always give concise responses" } +```yaml +systemMessage: Always give concise responses ``` **After** @@ -196,18 +194,23 @@ Rather than with `customCommands`, you can now use the `prompts` field to define **Before** -config.json +config.yml -```json -{ - "customCommands": [ - { - "name": "check", - "description": "Check for mistakes in my code", - "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found." - } - ] -} +```yaml +customCommands: + - name: check + description: Check for mistakes in my code + prompt: | + {{{ input }}} + + 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 + - Performance issues + - Anything else that looks wrong + + Once you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found. ``` **After** @@ -234,15 +237,14 @@ Documentation is largely the same, but the `title` property has been replaced wi **Before** -config.json +config.yml -```json -{ - "docs": [ - { "startUrl": "https://docs.nestjs.com/", "title": "nest.js" }, - { "startUrl": "https://mysite.com/docs/", "title": "My site" } - ] -} +```yaml +docs: + - startUrl: https://docs.nestjs.com/ + title: nest.js + - startUrl: https://mysite.com/docs/ + title: My site ``` **After** @@ -269,23 +271,20 @@ docs: **Before** -config.json +config.yml -```json -{ - "experimental": { - "modelContextProtocolServers": [ - { - "transport": { - "type": "stdio", - "command": "uvx", - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"], - "env": { "KEY": "" } - } - } - ] - } -} +```yaml +experimental: + modelContextProtocolServers: + - transport: + type: stdio + command: uvx + args: + - mcp-server-sqlite + - --db-path + - /Users/NAME/test.db + env: + KEY: ``` **After** @@ -308,13 +307,11 @@ 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 (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. +Some deprecated config.yml settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in config.yml, they will be auto-migrated to User Settings and removed from config.yml. -See the [JSON Config Reference](/reference) for more information on fully deprecated options. +The following top-level fields from config.yml have been deprecated and don't have a config.yaml equivalent: -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: - -- Slash commands (JSON `slashCommands`) +- Slash commands (`slashCommands`) - top-level `requestOptions` @@ -332,7 +329,7 @@ The following top-level fields from `config.json` still work when using `config. - `analytics` -The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI +The following top-level fields from config.yml have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI - `customCommands` - `experimental` From fef758b358365552c1f4779a894a79faa3af14cf Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Tue, 16 Sep 2025 14:50:34 -0700 Subject: [PATCH 2/3] fix(docs): revert incorrect config.json to config.yml replacements - Restore valid config.json references in yaml-migration.mdx (migration source) - Restore config.json reference in reference.mdx deprecation notice - Restore config.json reference in slash-commands.mdx (deprecated approach) These were legitimate references to the old JSON config format, not errors. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/customize/deep-dives/slash-commands.mdx | 2 +- docs/reference.mdx | 2 +- docs/reference/yaml-migration.mdx | 22 ++++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/customize/deep-dives/slash-commands.mdx b/docs/customize/deep-dives/slash-commands.mdx index 8db84b345..ef11b0f8d 100644 --- a/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/customize/deep-dives/slash-commands.mdx @@ -14,7 +14,7 @@ Slash commands can be combined with additional instructions, including highlight **Recommended approach**: Use prompt files to create slash commands instead of - the deprecated config.yml approach. The methods described below provide + the deprecated `config.json` approach. The methods described below provide better flexibility and are the actively maintained ways to add custom commands. diff --git a/docs/reference.mdx b/docs/reference.mdx index 0f0cb2916..8da668f9f 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -14,7 +14,7 @@ Continue hub agents are defined using the `config.yaml` specification. Agents ca - in your workspace in a `/.continue/agents` folder, with the same naming convention - Config YAML replaces `config.yml`, which is deprecated. View the **[Migration + Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/reference/yaml-migration)**. diff --git a/docs/reference/yaml-migration.mdx b/docs/reference/yaml-migration.mdx index e2ebeaac3..33e2f8f76 100644 --- a/docs/reference/yaml-migration.mdx +++ b/docs/reference/yaml-migration.mdx @@ -1,6 +1,6 @@ --- title: "Migrating Config to YAML" -description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from config.yml to config.yaml." +description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from config.json to config.yaml." --- See also @@ -10,7 +10,7 @@ See also ## Create YAML file -Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current config.yml file. If a `config.yaml` file is present, it will be loaded instead of config.yml. +Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current config.json file. If a `config.yaml` file is present, it will be loaded instead of config.json. Give your configuration a `name` and a `version`: @@ -42,7 +42,7 @@ Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with **Before** -config.yml +config.json ```yaml models: @@ -140,7 +140,7 @@ The JSON `contextProviders` field is replaced by the YAML `context` array. **Before** -config.yml +config.json ```yaml contextProviders: @@ -173,7 +173,7 @@ The `systemMessage` property has been replaced with a `rules` property that take **Before** -config.yml +config.json ```yaml systemMessage: Always give concise responses @@ -194,7 +194,7 @@ Rather than with `customCommands`, you can now use the `prompts` field to define **Before** -config.yml +config.json ```yaml customCommands: @@ -237,7 +237,7 @@ Documentation is largely the same, but the `title` property has been replaced wi **Before** -config.yml +config.json ```yaml docs: @@ -271,7 +271,7 @@ docs: **Before** -config.yml +config.json ```yaml experimental: @@ -307,9 +307,9 @@ mcpServers: ## Deprecated configuration options -Some deprecated config.yml settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in config.yml, they will be auto-migrated to User Settings and removed from config.yml. +Some deprecated config.json settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in config.json, they will be auto-migrated to User Settings and removed from config.json. -The following top-level fields from config.yml have been deprecated and don't have a config.yaml equivalent: +The following top-level fields from config.json have been deprecated and don't have a config.yaml equivalent: - Slash commands (`slashCommands`) @@ -329,7 +329,7 @@ The following top-level fields from config.yml have been deprecated and don't ha - `analytics` -The following top-level fields from config.yml have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI +The following top-level fields from config.json have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI - `customCommands` - `experimental` From e9ed761e49d7e56e1b131e3479c3c868c7ef6211 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 22 Sep 2025 23:18:18 -0700 Subject: [PATCH 3/3] fix: address review comments for YAML migration docs - Fix yaml-migration.mdx: correct JSON examples to use proper JSON syntax - Fix yaml-migration.mdx: update YAML examples to use correct field mappings (context vs contextProviders) - Fix yaml-migration.mdx: correct model configurations with proper roles and embed options - Fix edit.mdx: change 'Claude 3.5 Sonnet' to 'Claude 4 Sonnet' - Fix reranking.mdx: replace Hub tab hyperlinks with actual YAML config examples Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/customize/model-roles/edit.mdx | 2 +- docs/customize/model-roles/reranking.mdx | 5 +- docs/reference/yaml-migration.mdx | 200 ++++++++++++----------- 3 files changed, 114 insertions(+), 93 deletions(-) diff --git a/docs/customize/model-roles/edit.mdx b/docs/customize/model-roles/edit.mdx index 7779c0d64..e150cd518 100644 --- a/docs/customize/model-roles/edit.mdx +++ b/docs/customize/model-roles/edit.mdx @@ -12,7 +12,7 @@ In Continue, you can add `edit` to a model's roles to specify that it can be use ```yaml title="config.yaml" models: - - name: Claude 3.5 Sonnet + - name: Claude 4 Sonnet provider: anthropic model: claude-3-5-sonnet-latest apiKey: diff --git a/docs/customize/model-roles/reranking.mdx b/docs/customize/model-roles/reranking.mdx index f559641ad..95c4bfc8a 100644 --- a/docs/customize/model-roles/reranking.mdx +++ b/docs/customize/model-roles/reranking.mdx @@ -23,7 +23,10 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model. - [Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2) + ```yaml title="config.yaml" + models: + - uses: voyageai/rerank-2 + ``` ```yaml title="config.yaml" diff --git a/docs/reference/yaml-migration.mdx b/docs/reference/yaml-migration.mdx index 33e2f8f76..302237faf 100644 --- a/docs/reference/yaml-migration.mdx +++ b/docs/reference/yaml-migration.mdx @@ -44,52 +44,54 @@ Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with config.json -```yaml -models: - - title: GPT-4 - provider: openai - model: gpt-4 - apiKey: - completionOptions: - temperature: 0.5 - maxTokens: 2000 - - title: Ollama - provider: ollama - model: AUTODETECT - - title: My Open AI Compatible Model - provider: openai - apiBase: http://3.3.3.3/v1 - model: my-openai-compatible-model - requestOptions: - headers: - X-Auth-Token: -tabAutocompleteModel: - title: My Starcoder - provider: ollama - model: starcoder2:3b -embeddingsProvider: - provider: openai - model: text-embedding-ada-002 - apiKey: - maxEmbeddingChunkSize: 256 - maxEmbeddingBatchSize: 5 -reranker: - name: voyage - params: - model: rerank-2 - apiKey: +```json +{ + "models": [ + { + "title": "GPT-4", + "provider": "openai", + "model": "gpt-4", + "apiKey": "", + "completionOptions": { "temperature": 0.5, "maxTokens": 2000 } + }, + { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, + { + "title": "My Open AI Compatible Model", + "provider": "openai", + "apiBase": "http://3.3.3.3/v1", + "model": "my-openai-compatible-model", + "requestOptions": { "headers": { "X-Auth-Token": "" } } + } + ], + "tabAutocompleteModel": { + "title": "My Starcoder", + "provider": "ollama", + "model": "starcoder2:3b" + }, + "embeddingsProvider": { + "provider": "openai", + "model": "text-embedding-ada-002", + "apiKey": "", + "maxEmbeddingChunkSize": 256, + "maxEmbeddingBatchSize": 5 + }, + "reranker": { + "name": "voyage", + "params": { "model": "rerank-2", "apiKey": "" } + } +} ``` **After** config.yaml -``` +```yaml models: - name: GPT-4 provider: openai model: gpt-4 - apiKey: + apiKey: defaultCompletionOptions: temperature: 0.5 maxTokens: 2000 @@ -98,7 +100,8 @@ models: - edit - name: My Voyage Reranker provider: voyage - apiKey: + model: rerank-2 + apiKey: roles: - rerank - name: My Starcoder @@ -108,22 +111,25 @@ models: - autocomplete - name: My Ada Embedder provider: openai - apiKey: + model: text-embedding-ada-002 + apiKey: roles: - embed embedOptions: - - maxChunkSize: 256 - - maxBatchSize: 5 + maxChunkSize: 256 + maxBatchSize: 5 - name: Ollama Autodetect provider: ollama model: AUTODETECT - - name: My Open AI Compatible Model - Apply + roles: + - chat + - name: My Open AI Compatible Model provider: openai model: my-openai-compatible-model apiBase: http://3.3.3.3/v1 requestOptions: headers: - X-Auth-Token: + X-Auth-Token: roles: - chat - apply @@ -142,22 +148,21 @@ The JSON `contextProviders` field is replaced by the YAML `context` array. config.json -```yaml -contextProviders: - - name: docs - - name: codebase - params: - nRetrieve: 30 - nFinal: 3 - - name: diff - params: {} +```json +{ + "contextProviders": [ + { "name": "docs" }, + { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } }, + { "name": "diff", "params": {} } + ] +} ``` **After** config.yaml -``` +```yaml context: - provider: docs - provider: codebase @@ -175,15 +180,17 @@ The `systemMessage` property has been replaced with a `rules` property that take config.json -```yaml -systemMessage: Always give concise responses +```json +{ + "systemMessage": "Always give concise responses" +} ``` **After** config.yaml -``` +```yaml rules: - Always give concise responses ``` @@ -196,28 +203,23 @@ Rather than with `customCommands`, you can now use the `prompts` field to define config.json -```yaml -customCommands: - - name: check - description: Check for mistakes in my code - prompt: | - {{{ input }}} - - 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 - - Performance issues - - Anything else that looks wrong - - Once you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found. +```json +{ + "customCommands": [ + { + "name": "check", + "description": "Check for mistakes in my code", + "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found." + } + ] +} ``` **After** config.yaml -``` +```yaml prompts: - name: check description: Check for mistakes in my code @@ -239,19 +241,26 @@ Documentation is largely the same, but the `title` property has been replaced wi config.json -```yaml -docs: - - startUrl: https://docs.nestjs.com/ - title: nest.js - - startUrl: https://mysite.com/docs/ - title: My site +```json +{ + "docs": [ + { + "startUrl": "https://docs.nestjs.com/", + "title": "nest.js" + }, + { + "startUrl": "https://mysite.com/docs/", + "title": "My site" + } + ] +} ``` **After** config.yaml -``` +```yaml docs: - name: nest.js startUrl: https://docs.nestjs.com/ @@ -273,25 +282,34 @@ docs: config.json -```yaml -experimental: - modelContextProtocolServers: - - transport: - type: stdio - command: uvx - args: - - mcp-server-sqlite - - --db-path - - /Users/NAME/test.db - env: - KEY: +```json +{ + "experimental": { + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "uvx", + "args": [ + "mcp-server-sqlite", + "--db-path", + "/Users/NAME/test.db" + ], + "env": { + "KEY": "" + } + } + } + ] + } +} ``` **After** config.yaml -``` +```yaml mcpServers: - name: My MCP Server command: uvx