Skip to content

Commit 5ab79b5

Browse files
committed
Add details
1 parent d56c1ce commit 5ab79b5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/cody/capabilities/chat.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ To try it out, add context providers to your VS Code settings. For example, to u
100100

101101
<Callout type="tip">You don't need the OpenCtx VS Code extension to use context fetching with OpenCtx. We recommend uninstalling the extension before using this feature in Cody.</Callout>
102102

103+
## Context filters
104+
105+
<Callout type="note">Context Filters is available for all Cody Enterprise users running Cody VS Code extension version `>=1.20.0`.</Callout>
106+
107+
Admins on the Sourcegraph Enterprise instance can use the Cody Context Filters to determine which repositories Cody can use as the context in its requests to third-party LLMs. Inside your site configuration, you can define a set of `include` and `exclude` rules that will be used to filter the list of repositories Cody can access.
108+
109+
For repos mentioned in the `exclude` field, Cody's commands are disabled, and you cannot use them for context fetching. If you try running any of these, you'll be prompted with an error message. However, Cody chat will still work, and you can use it to ask questions.
110+
111+
[Read more about the Cody Context Filters here →](/cody/capabilities/ignore-context)
112+
103113
## Prompts and Commands
104114

105115
Cody offers quick, ready-to-use [prompts and commands](/cody/capabilities/commands) for common actions to write, describe, fix, and smell code. These allow you to run predefined actions with smart context-fetching anywhere in the editor, like:
@@ -290,8 +300,15 @@ Cody lets you dynamically insert code from chat into your files with **Smart App
290300

291301
For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
292302

293-
<!-- END Of DRAFT -->
303+
## Inline Edits
304+
305+
Highlight code, hit the edit hotkey, and describe a change. Cody will generate a diff for the change in seconds.
306+
307+
## Ask Cody to fix
294308

309+
For errors in your code, hit Ask Cody to Fix and Cody will propose a diff based on the error.
310+
311+
<!-- END Of DRAFT -->
295312

296313
## Ask Cody your first question
297314

0 commit comments

Comments
 (0)