first pass on removing actions

This commit is contained in:
Dallin Romney 2025-03-27 01:36:35 -07:00
parent dd273c9fbc
commit 60da1a11d9
9 changed files with 71 additions and 116 deletions

View file

@ -1,32 +0,0 @@
---
title: Context selection
description: Actions \-context selection
keywords: [context, slash, debug, quick fix, right click]
sidebar_position: 3
---
## Slash commands
Slash commands can be combined with additional instructions, including [context providers](../customize/context-providers.mdx) or [highlighted code](../edit/context-selection#highlighted-code).
## 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.
## 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.
```
I got the following error, can you please help explain how to fix it?
[ERROR_MESSAGE]
```
## Quick fixes
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]”.

View file

@ -1,12 +0,0 @@
---
title: How it works
description: How Actions work
keywords: [how, slash, commands, prompt, right click, quick fix, debug, action]
sidebar_position: 4
---
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.
Right click actions that generate inline diffs, use the same prompt and response processing logic as [Edit](../edit/how-it-works.md).
To learn how other slash commands work, see the full reference [here](../customize/slash-commands.mdx).

View file

@ -1,10 +0,0 @@
---
title: How to customize
description: How to customize Actions
keywords: [customize, actions]
sidebar_position: 5
---
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).
Check out the [slash commands deep dive](../customize/slash-commands.mdx) for more information on extending actions.

View file

@ -1,10 +0,0 @@
---
title: Model setup
description: Actions model setup
keywords: [model]
sidebar_position: 2
---
By default, Actions uses the same model as [Chat](chat/model-setup.mdx), since we recommend a similar, 400B+ parameter model or one of the frontier models for the complex instructions that will be carried out.
You can also set specific models to be used for Edit and Apply actions. See the [Model roles](../customize/model-roles/intro.mdx) page for more details.

View file

@ -7,6 +7,32 @@ keywords: [slash command, custom commands, step]
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
![actions](/img/actions.gif)
### 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 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).
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 <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
![slash-commands](/img/slash-commands.png)
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.
:::
### Prompt files
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
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.
:::

View file

@ -1,37 +1,3 @@
---
title: Actions
description: How to use Actions
sidebar_label: How to use it
keywords: [how, slash, commands, prompt, right click, quick fix, debug, action]
sidebar_position: 1
---
![actions](/img/actions.gif)
## How to use it
Actions are shortcuts for common use cases. For example, you might want to review code, write tests, or add a docstring.
### Slash commands
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 <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
![slash-commands](/img/slash-commands.png)
In YAML assistants, slash commands are generated from [`prompts` blocks](../hub/blocks/block-types.md#prompts).
Learn more about slash commands [here](../customize/slash-commands.mdx).
:::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.
:::
### Prompt files
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
Learn more about prompt files [here](../customize/deep-dives/prompt-files.md)
### Other triggers for Actions (VS Code)
:::info
@ -63,3 +29,27 @@ The debug action is a special built-in keyboard shortcut in the VS Code extensio
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 <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
![ask-continue](/img/ask-continue.png)
## 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.
## 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.
```
I got the following error, can you please help explain how to fix it?
[ERROR_MESSAGE]
```
## Quick fixes
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).

View file

@ -12,11 +12,11 @@ Continue can be deeply customized. For example you might:
- **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)
Whatever you choose, you'll probably start by editing `config.yaml`.
Whatever you choose, you'll probably start by editing your Assistant.
## Editing config.json
## Editing your assistant
Most custom configuration is done by editing `config.yaml` (or the older `config.json`). This is a YAML file that allows you to customize Continue to your liking. It is found at:
Most custom configuration is done by editing `config.yaml` (or the deprecated `config.json`). This is a YAML file that allows you to customize Continue to your liking. It is found at:
- MacOS and Linux: `~/.continue/config.yaml`
- Windows: `%USERPROFILE%\.continue\config.yaml`

View file

@ -11,7 +11,7 @@ keywords: [config, yaml, configuration, customize, customization]
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)**.
Config YAML replaces [`config.json`](./json-reference.md). View the **[Migration Guide](./yaml-migration.md)**.
:::
An assistant is made up of:

View file

@ -233,10 +233,6 @@ const config = {
to: "/getting-started/install",
from: ["/install/vscode", "/install/jetbrains"],
},
// {
// to: "/getting-started/install",
// from: "/getting-started",
// },
{
to: "/customize/deep-dives/settings",
from: "/customize/settings",
@ -293,9 +289,24 @@ const config = {
to: "/customize/deep-dives/prompt-files",
from: ["/walkthroughs/prompt-files", "/features/prompt-files"],
},
// TODO - actions redirects
{
to: "/actions/how-to-use-it#quick-actions",
from: "/walkthroughs/quick-actions",
to: "/customize/deep-dives/slash-commands",
from: [
"/actions/how-to-use-it",
"/actions/how-to-customize",
"/actions",
"/actions/model-setup",
"/actions/context-selection",
"/actions/how-it-works",
"/customize/slash-commands",
"/customization/slash-commands",
],
},
{
to: "/customize/deep-dives/vscode-quick-actions",
from: ["/walkthroughs/quick-actions"],
},
{
to: "/customize/changelog",
@ -357,10 +368,6 @@ const config = {
to: "/customize/model-providers/openai",
from: "/reference/Model Providers/openai",
},
{
to: "/customize/slash-commands",
from: "/customization/slash-commands",
},
{
to: "/customize/tutorials/custom-code-rag",
from: "/walkthroughs/custom-code-rag",
@ -474,10 +481,6 @@ const config = {
to: "/edit/how-to-use-it",
from: "/edit",
},
{
to: "/actions/how-to-use-it",
from: "/actions",
},
{
to: "/autocomplete/how-to-use-it",
from: "/autocomplete",