Skip to content

Commit efa44ab

Browse files
committed
Add details
1 parent 515509e commit efa44ab

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

docs/cody/capabilities/chat.mdx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44

55
You can **chat** with Cody to ask questions about any part of your codebase or specific code snippets. You can do it from the chat panel of the supported editor extensions (VS Code, JetBrains) or from the web app.
66

7-
Cody has context of your open file and repository by default, and you can use '@' to add context on specific files, symbols, remote repositories, or other non-code artifacts.
7+
Cody has context of your open file and repository by default, and you can use `@-mention` to add context on specific files, symbols, remote repositories, or other non-code artifacts.
88

99
You can learn more about the IDE support for these functionalities in the [feature parity reference](/cody/clients/feature-reference#chat).
1010

11-
## Prerequisites
12-
13-
To use Cody's chat, you'll need to have the following:
14-
15-
- A Free or Pro account via Sourcegraph.com or a Sourcegraph Enterprise account
16-
- A supported editor extension (VS Code, JetBrains) installed
17-
1811
## How does chat work?
1912

2013
Cody answers questions by searching your codebase and retrieving context relevant to your questions. Cody uses several methods to search for context like Sourcegraph's native search API and keyword search. Finding and using context allows Cody to make informed responses based on your code rather than being limited to general code knowledge. When Cody retrieves context to answer a question, it will tell you which code files it read to generate its response.
@@ -25,20 +18,26 @@ Cody can assist you with various use cases such as:
2518
- Locating a specific component in your codebase: Cody can identify and describe the files where a particular component is defined
2619
- Handling questions that involve multiple files, like understanding data population in a React app: Cody can locate React component definitions, helping you understand how data is passed and where it originates
2720

28-
Let's learn how Cody chat works with the IDE extensions (VS Code, JetBrains) and the web app.
21+
Let's learn how Cody chat works with different IDE extensions (VS Code, JetBrains) and the Sourcegraph web app.
2922

3023
<Tabs>
3124
<Tab title="VS Code">
32-
This is tab for VS Code
33-
</Tab>
34-
</Tabs>
3525

36-
## Ask Cody your first question
26+
## Prerequisites
27+
28+
To use Cody's chat in VS Code, you'll need to have the following:
29+
30+
- A Free Sourcegraph.com or a Sourcegraph Enterprise account
31+
- Cody for VS Code editor extension installed and activated
32+
33+
## Ask Cody your first question
3734

3835
Let's use Cody chat interface to answer your first question.
3936

40-
- Click the Cody icon in the sidebar to view the detailed panel
41-
- Next, click the icon for **New Chat** to open a new chat window
37+
- Click the Cody icon from the sidebar in VS Code to open the chat panel
38+
- The chat input field will show pre-added context about the files and repository it reads
39+
- If you want to add or remove context, you can use the `@-mention` syntax
40+
- Select your LLM via the drop-down. By default Cody will use Claude Sonnet 3.5 for chat
4241
- Write your question or instruction to Cody and then press **Enter**.
4342

4443
Cody will take a few seconds to process your question, providing contextual information about the files it reads and generating the answer.
@@ -67,6 +66,8 @@ Cody's chat allows you to add files and symbols as context in your messages.
6766
- Type `@#` and then a symbol name to include the symbol's definition as context. Functions, methods, classes, types, etc., are all symbols
6867

6968
Cody's experimental [OpenCtx](/cody/capabilities/openctx) support adds even more context sources, including Jira, Linear, Google Docs, Notion, and more.
69+
</Tab>
70+
</Tabs>
7071

7172
### Chat vs Commands
7273

0 commit comments

Comments
 (0)