diff --git a/docs/docs/customize/deep-dives/slash-commands.mdx b/docs/docs/customize/deep-dives/slash-commands.mdx
index b3f3a9eb1..0c9796768 100644
--- a/docs/docs/customize/deep-dives/slash-commands.mdx
+++ b/docs/docs/customize/deep-dives/slash-commands.mdx
@@ -9,23 +9,18 @@ import Tabs from "@theme/Tabs";

-### Slash commands
+## Slash commands
-While many Actions are based on templated prompts and can be customized with .prompt files, there are a number that execute more complex code under the hood.
+Slash commands are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown.
+{/*  */}
Slash commands can be combined with additional instructions, including [context providers](../context-providers.mdx) or [highlighted code](../../edit/context-selection#highlighted-code).
-The easiest way to add actions is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../chat/how-it-works.md).
+## Prompts
-The most common way to invoke an action is with a slash command. These are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown.
+### Assistant prompt blocks
-
-
-In YAML assistants, slash commands are generated from [`prompts` blocks](../hub/blocks/block-types.md#prompts).
-
-:::info
-Important: For assistants, slash commands only come from `prompts` blocks. When using older `config.json` configuration, other slash commands like `/share` and `/cmd` are included by default.
-:::
+The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../chat/how-it-works.md).
### Prompt files
@@ -33,148 +28,6 @@ It is also possible to write your own slash command by defining a “.prompt fil
Learn more about prompt files [here](./prompt-files.md)
-:::info
-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.
-:::
+### MCP Server prompts
-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.
-
-
-
-## Built-in Slash Commands
-
-To use any of the built-in slash commands, open `config.json` and add it to the `slashCommands` list.
-
-### `/share`
-
-Generate a shareable markdown transcript of your current chat history.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "share",
- "description": "Export the current chat session to markdown",
- "params": { "outputDir": "~/.continue/session-transcripts" }
- }
- ]
-}
-```
-
-Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
-
-### `/cmd`
-
-Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "cmd",
- "description": "Generate a shell command"
- }
- ]
-}
-```
-
-### `/commit`
-
-Shows the LLM your current git diff and asks it to generate a commit message.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "commit",
- "description": "Generate a commit message for the current changes"
- }
- ]
-}
-```
-
-### `/http`
-
-Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "http",
- "description": "Does something custom",
- "params": { "url": "" }
- }
- ]
-}
-```
-
-### `/issue`
-
-Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "issue",
- "description": "Generate a link to a drafted GitHub issue",
- "params": { "repositoryUrl": "https://github.com/continuedev/continue" }
- }
- ]
-}
-```
-
-### `/onboard`
-
-The onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.
-
-```json title="config.json"
-{
- "slashCommands": [
- {
- "name": "onboard",
- "description": "Familiarize yourself with the codebase"
- }
- ]
-}
-```
-
-### Model Context Protocol
-
-The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports MCP "prompts" by creating slash commands. 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 title="config.yaml"
- mcpServers:
- - name: My MCP Server
- command: uvx
- args:
- - mcp-server-sqlite
- - --db-path
- - /Users/NAME/test.db
- ```
-
-
- ```json title="config.json"
- {
- "experimental": {
- "modelContextProtocolServers": [
- {
- "transport": {
- "type": "stdio",
- "command": "uvx",
- "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
- }
- }
- ]
- }
- }
- ```
-
-
-
-### Build your own Slash Command
-
-You can build your own slash command by following [this tutorial](/customize/tutorials/build-your-own-slash-command).
+Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp.mdx) for more details.
diff --git a/docs/docs/customize/deep-dives/vscode-quick-actions.md b/docs/docs/customize/deep-dives/vscode-actions.md
similarity index 70%
rename from docs/docs/customize/deep-dives/vscode-quick-actions.md
rename to docs/docs/customize/deep-dives/vscode-actions.md
index 79603fdcb..0c0cdd1f1 100644
--- a/docs/docs/customize/deep-dives/vscode-quick-actions.md
+++ b/docs/docs/customize/deep-dives/vscode-actions.md
@@ -1,46 +1,38 @@
+---
+title: VS Code Actions
+description: VS Code Actions
+keywords: [vscode, quick actions, quick, actions]
+---
+
### Other triggers for Actions (VS Code)
:::info
Currently all of these are only available in VS Code
:::
-To make common use cases even more accessible, we provide a handful of other ways to invoke actions.
+To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
-#### Quick actions
+## Quick actions
-Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They can also be customized with .prompt files to perform custom actions.
+Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompt-files.md) to perform custom actions.

By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
-#### Right click actions
+## Right click actions
Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
-
-
-#### Debug action
-
-The debug action is a special built-in keyboard shortcut in the VS Code extension. Use cmd/ctrl + shift + R to instantly copy the contents of the current terminal into the chat sidebar and get debugging advice.
-
-#### Quick fixes
-
-Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut cmd/ctrl + . will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use cmd/ctrl + . again and Continue will attempt to help solve the problem.
-
-
-
-## Quick actions
-
-Quick actions are always displayed above a class or function and will edit that class or function, but nothing outside of it.
-
-## Right click actions
-
The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
+Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../edit/how-it-works.md).
+
+
+
## Debug action
-The debug action selects the most recently run terminal command and its output and then injects the following prompt into the chat window. There is no additional, non-visible information sent to the language model.
+The debug action is a special built-in keyboard shortcut in the VS Code extension. Use cmd/ctrl + shift + R to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
```
I got the following error, can you please help explain how to fix it?
@@ -50,6 +42,8 @@ I got the following error, can you please help explain how to fix it?
## Quick fixes
+Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut cmd/ctrl + . will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use cmd/ctrl + . again and Continue will attempt to help solve the problem.
+
Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
-Right click actions that generate inline diffs, use the same prompt and response processing logic as [Edit](../edit/how-it-works.md).
+
diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md
index ca67b5537..b48bb9d20 100644
--- a/docs/docs/customize/overview.md
+++ b/docs/docs/customize/overview.md
@@ -7,10 +7,10 @@ keywords: [customize, configure, config]
Continue can be deeply customized. For example you might:
- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../customize/model-providers/).
-- **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 using [Agent](../agent/how-to-use-it.md). Add custom tools using [MCP Servers](../customize/deep-dives/mcp.mdx)
+- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](./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](./context-providers.mdx).
+- **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](./deep-dives/slash-commands.mdx).
+- **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](./deep-dives/mcp.mdx)
Whatever you choose, you'll probably start by editing your Assistant.
diff --git a/docs/docs/json-reference.md b/docs/docs/json-reference.md
index 08a3cd472..2906c32e8 100644
--- a/docs/docs/json-reference.md
+++ b/docs/docs/json-reference.md
@@ -263,6 +263,103 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi
- `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)
+The following commands are built-in and can be added to `config.json` to make them visible:
+
+#### `/share`
+
+Generate a shareable markdown transcript of your current chat history.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "share",
+ "description": "Export the current chat session to markdown",
+ "params": { "outputDir": "~/.continue/session-transcripts" }
+ }
+ ]
+}
+```
+
+Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
+
+#### `/cmd`
+
+Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "cmd",
+ "description": "Generate a shell command"
+ }
+ ]
+}
+```
+
+#### `/commit`
+
+Shows the LLM your current git diff and asks it to generate a commit message.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "commit",
+ "description": "Generate a commit message for the current changes"
+ }
+ ]
+}
+```
+
+#### `/http`
+
+Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "http",
+ "description": "Does something custom",
+ "params": { "url": "" }
+ }
+ ]
+}
+```
+
+#### `/issue`
+
+Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "issue",
+ "description": "Generate a link to a drafted GitHub issue",
+ "params": { "repositoryUrl": "https://github.com/continuedev/continue" }
+ }
+ ]
+}
+```
+
+#### `/onboard`
+
+The onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.
+
+```json title="config.json"
+{
+ "slashCommands": [
+ {
+ "name": "onboard",
+ "description": "Familiarize yourself with the codebase"
+ }
+ ]
+}
+```
+
Example:
```json title="config.json"
@@ -284,6 +381,8 @@ Example:
}
```
+You can also add your own slash command by following [this tutorial](./customize/tutorials/build-your-own-slash-command.md).
+
### `customCommands`
User-defined commands for prompt shortcuts in the sidebar, allowing quick access to common actions.
diff --git a/docs/static/img/agent-permission.png b/docs/static/img/agent-permission.png
index c1738bb26..ca7cfaf4f 100644
Binary files a/docs/static/img/agent-permission.png 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
index 5ae84d36d..472360df1 100644
Binary files a/docs/static/img/agent-response.png and b/docs/static/img/agent-response.png differ