Sourcegraph Cody

Sourcegraph's AI coding assistant with whole codebase context

Intermediate
Screenshot of Sourcegraph Cody, Sourcegraph's AI coding assistant with whole codebase context

What is Sourcegraph Cody?

Sourcegraph Cody is a code modifier tool. Cody is Sourcegraph's AI coding assistant for VS Code, JetBrains, Visual Studio, the web app, and the CLI. It combines chat, code completions, auto-edit suggestions, and shareable prompts with Sourcegraph search context drawn from local and remote repositories, so answers can reference APIs and patterns across an entire codebase.

Cody is Sourcegraph's AI coding assistant, built to help developers read, write, and repair code with the help of large language models. Its distinguishing trait is context: rather than working only from the file in front of you, Cody calls Sourcegraph's Search API to pull relevant snippets from local and remote repositories, so answers can reference APIs, symbols, and usage patterns from elsewhere in a codebase. That makes it a different proposition from a generic chatbot pasted into an editor. The assistant arrives as extensions for VS Code, JetBrains IDEs, and Visual Studio (marked experimental), as a CLI, and inside the Sourcegraph web app. Chat is the centrepiece: users can query their code, generate new code, or request edits, with the open file and repository available by default and an @ mention system for adding specific files, symbols, remote repositories, or non-code artefacts to the conversation. Auto-edit watches cursor movement and typing, then proposes contextual changes once at least one character has been edited. Premade and customisable prompts wrap recurring tasks so they can be saved and shared across a team, and context filters let administrators exclude selected repositories from chat and autocomplete results. It suits engineering teams already running Sourcegraph Enterprise, particularly those working across many repositories where cross-repo understanding matters. Individual developers can use it through Sourcegraph.com, but the documentation positions Cody as supported on Sourcegraph Enterprise, with an enterprise enablement path that involves contacting the team. The debugging and autocomplete features are aimed squarely at day to day developer productivity rather than at non-technical users. Compared with editor-native assistants that rely mostly on the current file, Cody trades simplicity for depth of repository context. That depth is also its constraint: the best results depend on Sourcegraph indexing your code and connecting to hosts such as GitHub and GitLab, so a small single-repo project may see less benefit. Sourcegraph states it collects prompts, responses, usage data, and feedback to run and improve the service, and that it does not train models on that data; privacy terms are published separately.

How do you use Sourcegraph Cody?

  1. 1Review the Cody overview
    Start on the Cody documentation home to see the supported clients and the main capabilities before installing anything.
    Sourcegraph Cody — Review the Cody overview
  2. 2Install the extension for your editor
    Add Cody to VS Code, JetBrains, or Visual Studio using the dedicated install page for that client, or set up the CLI if you work in a terminal.
    Sourcegraph Cody — Install the extension for your editor
  3. 3Connect your code host and repositories
    Sign in and link hosts such as GitHub or GitLab so Cody can draw context from your repositories. Follow the quickstart for the full setup sequence.
    Sourcegraph Cody — Connect your code host and repositories
  4. 4Ask questions in chat with added context
    Open the chat panel and query your code. Use @ to attach specific files, symbols, or remote repositories when the open file is not enough.
    Sourcegraph Cody — Ask questions in chat with added context
  5. 5Save recurring work as prompts
    Turn common queries and tasks into reusable prompts, then share them with teammates so the same workflow runs consistently.
  6. 6Restrict context where needed
    Use context filters to keep selected repositories out of chat and autocomplete results, which helps control what the assistant sees.

Pros and cons

Pros

  • Pulls context from remote as well as local repositories via Sourcegraph's Search API, which helps on large multi-repo codebasesAI
  • Covers chat, completions, auto-edit, and reusable prompts in one assistant rather than separate toolsAI
  • Available across VS Code, JetBrains, Visual Studio, the web app, and a command line clientAI
  • The @ mention system lets users target specific files, symbols, and remote repositories per questionAI
  • Context filters let teams exclude chosen repositories from chat and autocomplete resultsAI

Cons

  • Documentation lists support as requiring Sourcegraph Enterprise, which narrows the practical audienceAI
  • The Visual Studio extension is labelled experimental, so that client carries more riskAI
  • Value depends on Sourcegraph indexing and connected code hosts; small standalone projects benefit lessAI
  • Sourcegraph collects prompts, responses, and usage data to provide and improve the serviceAI
  • Auto-edit only begins proposing changes after you have edited at least one characterAI

How much does Sourcegraph Cody cost?

Free trial

Cody Enterprise is presented as a way to try Cody for Sourcegraph Enterprise by getting in touch with the Sourcegraph team. No self-serve trial length or terms are stated on the documentation page.

Learn more

Pricing

The Cody documentation states that Cody is supported on Sourcegraph Enterprise and points to the Sourcegraph pricing page for plans. Enterprise access is arranged by contacting the team; no specific tiers or figures appear in the source material.

Learn more

Support

The documentation points users to a Discord community and X for questions, and there is a dedicated FAQ page. No paid support tiers or response times are described in the source material.

Learn more

Integrations

Cody connects to code hosts including GitHub and GitLab, plugs into VS Code, JetBrains IDEs, and Visual Studio, runs in the Sourcegraph web app and a CLI, and works alongside Sourcegraph Code Search.

Learn more

Features

Core capabilities are chat for asking about and editing code, auto-edit suggestions driven by cursor movement and typing, and premade or customisable prompts that can be saved and shared with a team. Sourcegraph's Search API supplies context from local and remote repositories, with @ mentions for files, symbols, and remote repos. Debugging support and context filters that exclude repositories from chat and autocomplete round out the set.

Learn more

Frequently asked questions about Sourcegraph Cody

  • How much does Sourcegraph Cody cost?
    The Cody documentation states that Cody is supported on Sourcegraph Enterprise and points to the Sourcegraph pricing page for plans. Enterprise access is arranged by contacting the team; no specific tiers or figures appear in the source material.
  • Does Sourcegraph Cody offer a free trial?
    Cody Enterprise is presented as a way to try Cody for Sourcegraph Enterprise by getting in touch with the Sourcegraph team. No self-serve trial length or terms are stated on the documentation page.
  • How do you use Sourcegraph Cody?
    The walkthrough on this page covers 6 steps: 1. Review the Cody overview 2. Install the extension for your editor 3. Connect your code host and repositories 4. Ask questions in chat with added context 5. Save recurring work as prompts 6. Restrict context where needed.
  • What platforms does Sourcegraph Cody support?
    Sourcegraph Cody is available on Web App, Windows, MacOS, Linux and Browser extension.
  • What does Sourcegraph Cody integrate with?
    Cody connects to code hosts including GitHub and GitLab, plugs into VS Code, JetBrains IDEs, and Visual Studio, runs in the Sourcegraph web app and a CLI, and works alongside Sourcegraph Code Search.
  • What are the limitations of Sourcegraph Cody?
    Documentation lists support as requiring Sourcegraph Enterprise, which narrows the practical audience. The Visual Studio extension is labelled experimental, so that client carries more risk. Value depends on Sourcegraph indexing and connected code hosts; small standalone projects benefit less.

Status

StatusActive
Views0
Outbound clicks0
Added10/21/2026

Platforms

Web AppWindowsMacOSLinuxBrowser extension

Pricing

Paid