Introduction
Continue hub agents are defined using theconfig.yaml
specification. Agents can be loaded from the Hub or locally
- Continue Hub - YAML is stored on the hub and automatically synced to the extension
-
Locally
- in your global
.continue
folder (~/.continue
on Mac,%USERPROFILE%\.continue
) within.continue/agents
. The name of the file will be used as the display name of the agent, e.g.My Agent.yaml
- in your workspace in a
/.continue/agents
folder, with the same naming convention
- in your global
Config YAML replaces
config.json
, which is deprecated. View the Migration
Guide.- Top level properties, which specify the
name
,version
, andconfig.yaml
schema
for the agent - Block lists, which are composable arrays of coding agent building blocks available to the agent, such as models, docs, and context providers.
config.yaml
syntax, a block consists of the same top-level properties as agents (name
, version
, and schema
), but only has ONE item under whichever block type it is.
Examples of blocks and agents can be found on the Continue Hub.
Agents can either explicitly define blocks - see Properties below - or import and configure existing hub blocks.
Using Blocks
Hub blocks and agents are identified with a slug in the formatowner-slug/block-or-agent-slug
, where an owner can be a user or organization (For example, if you want to use the OpenAI 4o Model block, your slug would be openai/gpt-4o
). These blocks are pulled from https://hub.continue.dev.
Blocks can be imported into an agent by adding a uses
clause under the block type. This can be alongside other uses
clauses or explicit blocks of that type.
For example, the following agent imports an Anthropic model and defines an Ollama DeepSeek one.
Agent models section
Local Blocks
It is also possible to define blocks locally in a.continue
folder. This folder can be located at either the root of your workspace (these will automatically be applied to all agents when you are in that workspace) or in your home directory at ~/.continue
(these will automatically be applied globally).
Place your YAML files in the following folders:
Agents:
.continue/agents
- for agents
.continue/rules
- for rules.continue/models
- for models.continue/prompts
- for prompts.continue/context
- for context providers.continue/docs
- for docs.continue/data
- for data.continue/mcpServers
- for MCP Servers
Local blocks utilizing mustache notation for secrets (
${{ secrets.SECRET_NAME }}
) can read secret values:- globally, from a
.env
located in the global.continue
folder (~/.continue/.env
) - per-workspace, from a
.env
file located at the root of the current workspace.
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:config.yaml
config.yaml
secrets.SECRET_NAME
.
Overrides
Block properties can be also be directly overriden usingoverride
. For example:
config.yaml
Properties
Below are details for each property that can be set inconfig.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
(required)version
(required)schema
(required)models
context
rules
prompts
docs
mcpServers
data
name
The name
property specifies the name of your project or configuration.
config.yaml
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
). -
apiBase
: Can be used to override the default API base that is specified per model -
roles
: An array specifying the roles this model can fulfill, such aschat
,autocomplete
,embed
,rerank
,edit
,apply
,summarize
. The default value is[chat, edit, apply, summarize]
. Note that thesummarize
role is not currently used. -
capabilities
: Array of strings denoting model capabilities, which will overwrite Continue’s autodetection based on provider and model. See the Model Capabilities guide for detailed information. Supported capabilities include:tool_use
: Enables function/tool calling support (required for Agent mode)image_input
: Enables image upload and processing support
-
maxStopWords
: Maximum number of stop words allowed, to avoid API errors with extensive lists. -
promptTemplates
: Can be used to override the default prompt templates for different model roles. Valid values arechat
,edit
,apply
andautocomplete
. Thechat
property must be a valid template name, such asllama3
oranthropic
. -
chatOptions
: If the model includes rolechat
, these settings apply for Agent and Chat mode:baseSystemMessage
: Can be used to override the default system prompt for Chat mode.baseAgentSystemMessage
: Can be used to override the default system prompt for Agent mode.basePlanSystemMessage
: Can be used to override the default system prompt for Plan mode.
-
embedOptions
: If the model includes roleembed
, 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.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 from0.0
(deterministic) to1.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.reasoning
: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ and some Ollama models.reasoningBudgetTokens
: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
-
requestOptions
: HTTP request options specific to the model.-
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.
-
-
autocompleteOptions
: If the model includes roleautocomplete
, these settings apply for tab autocompletion:disable
: Iftrue
, disables autocomplete for this model.maxPromptTokens
: Maximum number of tokens for the autocomplete prompt.debounceDelay
: Delay before triggering autocomplete in milliseconds.modelTimeout
: Model timeout for autocomplete requests in milliseconds.maxSuffixPercentage
: Maximum percentage of prompt allocated for suffix.prefixPercentage
: Percentage of input allocated for prefix.transform
: Iffalse
, disables trimming of multiline completions. Defaults totrue
. Useful for models that generate better multiline completions without transformations.template
: Custom template for autocomplete using Mustache syntax. You can use the{{{ prefix }}}
,{{{ suffix }}}
,{{{ filename }}}
,{{{ reponame }}}
, and{{{ language }}}
variables.onlyMyCode
: Only includes code within the repository for context.useCache
: Iftrue
, enables caching for completions.useImports
: Iftrue
, includes imports in context.useRecentlyEdited
: Iftrue
, includes recently edited files in context.useRecentlyOpened
: Iftrue
, includes recently opened files in context.
config.yaml
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
Properties:
provider
(required): The identifier or name of the context provider (e.g.,code
,docs
,web
)name
: Optional name for the providerparams
: Optional parameters to configure the context provider’s behavior.
config.yaml
rules
List of rules that the LLM should follow. These are concatenated into the system message for all Agent, Chat, and Edit requests. See the rules deep dive for details.
Explicit rules can either be simple text or an object with the following properties:
name
(required): A display name/title for the rulerule
(required): The text content of the ruleglobs
(optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g.,"**/*.{ts,tsx}"
) or an array of patterns (e.g.,["src/**/*.ts", "tests/**/*.ts"]
).
"config.yaml"l
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.
config.yaml
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 docsfavicon
: URL for site favicon (default is/favicon.ico
fromstartUrl
).useLocalCrawling
: Skip the default crawler and only crawl using a local crawler.
config.yaml
mcpServers
The Model Context Protocol 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.cwd
: An optional working directory to run the command in. Can be absolute or relative path.connectionTimeout
: An optional connection timeout number to the server in milliseconds.
config.yaml
data
Destinations to which development data will be sent.
Properties:
name
(required): The display name of the data destinationdestination
(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. Options include0.1.0
and0.2.0
events
: an array of event names to include. Defaults to all events if not specified.level
: a pre-defined filter for event fields. Options includeall
andnoCode
; the latter excludes data like file contents, prompts, and completions. Defaults toall
apiKey
: api key to be sent with request (Bearer header)requestOptions
: Options for event POST requests. Same format as model requestOptions.
config.yaml
Complete YAML Config Example
Putting it all together, here’s a complete example of aconfig.yaml
configuration file:
config.yaml
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:
config.yaml