Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const config = {
DOCS_LATEST_VERSION: '6.5'
DOCS_LATEST_VERSION: '6.6'
};

module.exports = config;
2 changes: 1 addition & 1 deletion docs/cody/capabilities/agentic-context-fetching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Agentic context fetching can be helpful to assist you with a wide range of tasks

## Enable agentic context fetching

Agentic context fetching is enabled by default for all Cody users. It uses LLM reflection and basic tool use steps to gather and refine context before sending it in the final model query. The review step in agentic context fetching experience defaults to Gemini 2.5 Flash and falls back to Claude Haiku or GPT 4.1 mini if Flash is unavailable.
Agentic context fetching is enabled by default. It uses LLM reflection and basic tool use steps to gather and refine context before sending it in the final model query. The review step in agentic context fetching experience defaults to Gemini 2.5 Flash and falls back to Claude Haiku or GPT 4.1 mini if Flash is unavailable.

You can disable agentic context in your extension settings using `cody.agenticContext`.

Expand Down
14 changes: 7 additions & 7 deletions docs/cody/capabilities/auto-edit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p className="subtitle">Auto-edit suggests code changes by analyzing cursor movements and typing. After you've made at least one character edit in your codebase, it begins proposing contextual modifications based on your cursor position and recent changes.</p>

<Callout type="info">Auto-edit is currently supported with Sourcegraph v6.0+ for Pro, Enterprise Starter, and Enterprise accounts on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>
<Callout type="info">Auto-edit is currently supported with Sourcegraph v6.0+ for Enterprise accounts on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>

## Capabilities of auto-edit

Expand Down Expand Up @@ -46,11 +46,11 @@ Auto-edit is supported by Cody VS Code, JetBrains, and Visual Studio plugins.
<Tabs>
<Tab title="VS Code">

<Callout type="info">Auto-edit is available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>
<Callout type="info">Auto-edit is available for Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>

## Enabling auto-edit in VS Code

Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody VS Code extension settings.
Auto-edit is enabled by default for Cody Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody VS Code extension settings.

Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings.

Expand Down Expand Up @@ -88,11 +88,11 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid

<Tab title="JetBrains">

<Callout type="info">JetBrains IDEs support auto-edit for versions 7.84.0+. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>
<Callout type="info">JetBrains IDEs support auto-edit for versions 7.84.0+. It's available for Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>

## Enabling auto-edit in JetBrains

Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody JetBrains extension settings.
Auto-edit is enabled by default for Cody Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody JetBrains extension settings.

Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings.

Expand Down Expand Up @@ -136,11 +136,11 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid

<Tab title="Visual Studio">

<Callout type="info">Visual Studio supports auto-edit for versions 17.6 and above. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>
<Callout type="info">Visual Studio supports auto-edit for versions 17.6 and above. It's available for Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>

## Enabling auto-edit in Visual Studio

Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. Two settings must be enabled by default in the Visual Studio Cody extension settings to make the auto-edit feature work.
Auto-edit is enabled by default for Cody Enterprise users. Two settings must be enabled by default in the Visual Studio Cody extension settings to make the auto-edit feature work.

1. Automatically trigger completions
2. Enable Cody Auto-edit
Expand Down
10 changes: 5 additions & 5 deletions docs/cody/capabilities/autocomplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Cody predicts what you're trying to write before you even type it. It offers single-line and multi-line suggestions based on the provided code context, ensuring accurate autocomplete suggestions. Cody autocomplete supports a [wide range of programming languages](/cody/faq#what-programming-languages-does-cody-support) because it uses LLMs trained on broad data.

Code autocompletions are optimized for both server-side and client-side performance, ensuring seamless integration into your coding workflow. The **default** autocomplete model for Cody Free, Pro, and Enterprise users is **[DeepSeek V2](https://huggingface.co/deepseek-ai/DeepSeek-V2)**, which significantly helps boost both the responsiveness and accuracy of autocomplete.
Code autocompletions are optimized for both server-side and client-side performance, ensuring seamless integration into your coding workflow. The **default** autocomplete model for Cody Enterprise users is **[DeepSeek V2](https://huggingface.co/deepseek-ai/DeepSeek-V2)**, which significantly helps boost both the responsiveness and accuracy of autocomplete.

## Cody's autocomplete capabilities

Expand All @@ -18,10 +18,10 @@ The autocompletion model is designed to enhance speed, accuracy, and the overall

First, you'll need the following setup:

- A Free or Pro account via Sourcegraph.com or a Sourcegraph Enterprise instance
- A Sourcegraph Enterprise account with Cody enabled
- A supported editor extension (VS Code, JetBrains, Visual Studio)

The autocomplete feature is enabled by default on all IDE extensions, i.e., VS Code and JetBrains. Generally, there's a checkbox in the extension settings that confirms whether the autocomplete feature is enabled or not. In addition, some autocomplete settings are optionally and explicitly supported by some IDEs. For example, JetBrains IDEs have settings that allow you to customize colors and styles of the autocomplete suggestions.
The autocomplete feature is available on all IDE extensions, i.e., VS Code, JetBrains and Visual Studio. Generally, there's a checkbox in the extension settings that confirms whether the autocomplete feature is enabled or not. In addition, some autocomplete settings are optionally and explicitly supported by some IDEs. For example, JetBrains IDEs have settings that allow you to customize colors and styles of the autocomplete suggestions.

When you start typing, Cody will automatically provide suggestions and context-aware completions based on your coding patterns and the code context. These autocomplete suggestions appear as grayed text. Press the `Enter` or `Tab` to accept the suggestion.

Expand All @@ -37,8 +37,8 @@ By default, a fully configured Sourcegraph instance picks a default LLM to gener

- Go to the **Site admin** of your Sourcegraph instance
- Navigate to **Configuration > Site configuration**
- Here, edit the `completionModel` option inside the `completions`
- Click the **Save** button to save the changes
- Here, edit the `modelConfiguration` [section](/cody/enterprise/model-configuration) to include the autocomplete model you want to use
- Click **Save** to save the changes

Cody supports and uses a set of models for autocomplete. Learn more about these [here](/cody/capabilities/supported-models#autocomplete). It's also recommended to read the [Enabling Cody on Sourcegraph Enterprise](/cody/clients/enable-cody-enterprise) docs.

Expand Down
29 changes: 6 additions & 23 deletions docs/cody/capabilities/chat.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Chat

<p className="subtitle">Chat with the AI assistant in your code editor or via the Sourcegraph web app to get intelligent suggestions, code autocompletions, and contextually aware answers.</p>
<p className="subtitle">Chat with Cody in your code editor or via the Sourcegraph web app to get intelligent suggestions, code autocompletions, and contextually aware answers.</p>

You can **chat** with Cody to ask questions about your code, generate code, and edit code. By default, Cody has the context of your open file and entire repository, and you can use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts.

Expand All @@ -10,8 +10,8 @@ You can do it from the **chat** panel of the supported editor extensions ([VS Co

To use Cody's chat, you'll need the following:

- [Sourcegraph Enterprise Starter](https://sourcegraph.com/pricing) or [Enterprise account](https://sourcegraph.com/pricing)
- A supported editor extension [VS Code](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai), [JetBrains](https://plugins.jetbrains.com/plugin/9682-cody-ai-coding-assistant-with-autocomplete--chat) installed or use via Web app
- A Sourcegraph Enterprise account with Cody enabled
- A supported editor extension installed or use via the Sourcegraph Web app

## How does chat work?

Expand Down Expand Up @@ -41,29 +41,12 @@ When you have both a repository and files @-mentioned, Cody will search the repo

You can add new custom context by adding `@-mention` context chips to the chat. At any point, you can use `@-mention` a repository, file, line range, or symbol, to ask questions about your codebase. Cody will use this new context to generate contextually relevant code.

## OpenCtx context providers

<Callout type="info">OpenCtx context providers are in the Experimental stage for all Cody VS Code users. Enterprise users can also use this but with limited support. If you have feedback or questions, please visit our [support forum](https://community.sourcegraph.com/c/openctx/10).</Callout>

[OpenCtx](https://openctx.org/) is an open standard for bringing contextual info about code into your dev tools. Cody Free and Pro users can use OpenCtx providers to fetch and use context from the following sources:

- [Webpages](https://openctx.org/docs/providers/web) (via URL)
- [Jira tickets](https://openctx.org/docs/providers/jira)
- [Linear issues](https://openctx.org/docs/providers/linear-issues)
- [Notion pages](https://openctx.org/docs/providers/notion)
- [Google Docs](https://openctx.org/docs/providers/google-docs)
- [Sourcegraph code search](https://openctx.org/docs/providers/sourcegraph-search)

You can use `@-mention` web URLs to pull live information like docs. You can connect Cody to OpenCtx to `@-mention` non-code artifacts like Google Docs, Notion pages, Jira tickets, and Linear issues.

## LLM selection

Cody allows you to select the LLM you want to use for your chat, which is optimized for speed versus accuracy. Cody Free and Pro users can select multiple models. Enterprise users with the new [model configuration](/cody/clients/model-configuration) can use the LLM selection dropdown to choose a chat model.
Cody allows you to select the LLM you want to use for your chat, which is optimized for speed versus accuracy. Enterprise users with the new [model configuration](/cody/clients/model-configuration) can use the LLM selection dropdown to choose a chat model.

You can read about these supported LLM models [here](/cody/capabilities/supported-models#chat-and-commands).

![LLM-models-for-cody-free](https://storage.googleapis.com/sourcegraph-assets/Docs/llm-dropdown-options-free-pro-2025.png)

## Smart Apply and Execute code suggestions

Cody lets you dynamically insert code from chat into your files with **Smart Apply**. Whenever Cody provides a code suggestion, you can click the **Apply** button. Cody will then analyze your open code file, find where that relevant code should live, and add a diff. For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
Expand All @@ -74,9 +57,9 @@ Smart Apply also supports the executing of commands in the terminal. When you as

### Model used for Smart Apply

To ensure low latency, Cody uses a more targeted Qwen 2.5 Coder model for Smart Apply. This model improves the responsiveness of the Smart Apply feature in both VS Code and JetBrains while preserving edit quality. Users on Cody Free, Pro, Enterprise Starter, and Enterprise plans get this default Qwen 2.5 Coder model for Smart Apply suggestions.
To ensure low latency, Cody uses a more targeted Qwen 2.5 Coder model for Smart Apply. This model improves the responsiveness of the Smart Apply feature in both VS Code and JetBrains while preserving edit quality.

Enterprise users not using Cody Gateway get a Claude Sonnet-based model for Smart Apply.
Enterprise users on Cody Gateway get this default Qwen 2.5 Coder model for Smart Apply suggestions. Enterprise users not using Cody Gateway get a Claude Sonnet-based model for Smart Apply.

## Chat history

Expand Down
4 changes: 1 addition & 3 deletions docs/cody/capabilities/debug-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p className="subtitle">Learn how Cody helps you identify errors in your code and provides code fixes.</p>

Cody is optimized to identify and fix errors in your code. Its debugging capability and autocomplete suggestions can significantly accelerate your debugging process, increasing developer productivity. All Cody IDE extensions (VS Code, JetBrains) support code debugging and fixes capabilities.
Cody is optimized to identify and fix errors in your code. Its debugging capability and autocomplete suggestions can significantly accelerate your debugging process, increasing developer productivity. Cody IDE extensions (VS Code, JetBrains) support code debugging and fixes capabilities.

## Use chat for code fixes

Expand Down Expand Up @@ -33,8 +33,6 @@ You can detect code smells by the **find-code-smells** prompt from the Prompts d

## Code Actions

<Callout type="info">Code Actions are available only in Cody VS Code extension.</Callout>

When you make a mistake while writing code, Cody's **Code Actions** come into play and a red warning triggers. Along with this, you get a lightbulb icon. If you click on this lightbulb icon, there is an **Ask Cody to fix** option.

- Click the lightbulb icon in the project file
Expand Down
4 changes: 1 addition & 3 deletions docs/cody/capabilities/ignore-context.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Manage Cody Context

<p className="subtitle">You can control and manage what context from your codebase is used by Cody. You can do this by using Cody Context Filters.</p>

<Callout type="note">Cody Context Filters is available only for Enterprise users on all supported [clients](/cody/clients).</Callout>
<p className="subtitle">You can control and manage what context from your codebase is used by Cody. You can do this by using Cody Context Filters. It is supported on all Cody [clients](/cody/clients).</p>

## Context Filters

Expand Down
4 changes: 2 additions & 2 deletions docs/cody/capabilities/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

<QuickLink title="Chat" icon='lightbulb' href="/cody/capabilities/chat" description="Use Cody's chat to get contextually-aware answers to your questions." />

<QuickLink title="Autocomplete" icon='installation' href="/cody/capabilities/autocomplete" description="Suggests code completions as you type, utilizing context from your code, open files, and file history." />
<QuickLink title="Auto-edit" icon='installation' href="/cody/capabilities/auto-edit" description="Suggests code changes by analyzing cursor movements and typing." />

<QuickLink title="Prompts & Prompt Library" icon='theming' href="/cody/capabilities/commands" description="Automate key tasks in your workflow with premade and customizable prompts." />

<QuickLink title="OpenCtx Context Providers" icon='presets' href="/cody/capabilities/openctx" description="Add additional context sources from outside of your code base by leveraging OpenCtx Providers." />
<QuickLink title="MCP Support" icon='presets' href="/cody/capabilities/agentic-context-fetching#mcp-support" description="Cody supports Model Context Protocol (MCP) for connecting to external context." />

<QuickLink title="Debug Code" icon='languagemodels' href="/cody/capabilities/debug-code" description="Helps you with identifying and fixing code errors and bugs." />

Expand Down
11 changes: 1 addition & 10 deletions docs/cody/capabilities/openctx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,7 @@

<Callout type="tip">MCP is the recommended method for adding external context in Cody due to its broad community adoption and extensive tool support. [Read the docs](/cody/capabilities/agentic-context-fetching#mcp-support) to learn more about configuring MCP.</Callout>

[OpenCtx](https://openctx.org/) is an open standard for bringing contextual info about code into your dev tools. OpenCtx context providers are in the Experimental stage for all Cody users. Enterprise users can use this, but with limited support. Cody Free and Pro users can use OpenCtx providers to fetch and use context from the following sources:

- [Webpages (via URL)](https://openctx.org/docs/providers/web) (enabled in Cody by default)
- [Jira tickets](https://openctx.org/docs/providers/jira)
- [Linear issues](https://openctx.org/docs/providers/linear-issues)
- [Notion pages](https://openctx.org/docs/providers/notion)
- [Google Docs](https://openctx.org/docs/providers/google-docs)
- [Slack](https://openctx.org/docs/providers/slack)
- [Storybook](https://openctx.org/docs/providers/storybook)
- [Sourcegraph code search](https://openctx.org/docs/providers/sourcegraph-search)
[OpenCtx](https://openctx.org/) is an open standard for bringing contextual info about code into your dev tools. OpenCtx context providers are in the Experimental stage for Enterprise users with limited support.

## Enable OpenCtx context providers

Expand Down
Loading