1## Assistant Panel
2
3Once you have configured a provider, you can interact with the provider's language models in a context editor.
4
5To create a new context editor, use the menu in the top right of the assistant panel and select the `New Context` option.
6
7In the context editor, select a model from one of the configured providers, type a message in the `You` block, and submit with `cmd-enter` (or `ctrl-enter` on Linux).
8
9### Adding Prompts
10
11You can customize the default prompts used in new context editors by opening the `Prompt Library`.
12
13Open the `Prompt Library` using either the menu in the top right of the assistant panel and choosing the `Prompt Library` option, or by using the `assistant: deploy prompt library` command when the assistant panel is focused.
14
15### Viewing past contexts
16
17You can view all previous contexts by opening the `History` tab in the assistant panel.
18
19Open the `History` using the menu in the top right of the assistant panel and choosing `History`.
20
21### Slash commands
22
23Slash commands enhance the assistant's capabilities. Begin by typing a `/` at the beginning of the line to see a list of available commands:
24
25- default: Inserts the default prompt into the context
26- diagnostics: Injects errors reported by the project's language server into the context
27- fetch: Pulls the content of a webpage and inserts it into the context
28- file: Pulls a single file or a directory of files into the context
29- now: Inserts the current date and time into the context
30- prompt: Adds a custom-configured prompt to the context (see Prompt Library)
31- search: Performs semantic search for content in your project based on natural language
32- symbols: Pulls the current tab's active symbols into the context
33- tab: Pulls in the content of the active tab or all open tabs into the context
34- terminal: Pulls in a select number of lines of output from the terminal
35
36## Inline assistant
37
38You can use `ctrl-enter` to open the inline assistant in both a normal editor and within the assistant panel.
39
40The inline assistant allows you to send the current selection (or the current line) to a language model and modify the selection with the language model's response.
41
42The inline assistant pulls its context from the assistant panel, allowing you to provide additional instructions or rules for code transformations.