Sourcegraph Cody

Sourcegraph Cody

AI coding assistant with codebase context.

Free planFrom $9/moCode & Developer
N/ASearch trend (3 mo)
719Monthly searches
Code & DeveloperPrimary category
N/ANo reviews yet

About Sourcegraph Cody

You've just picked up a ticket that touches a service you've never opened, and the function you need to call lives in a repo you don't have checked out. That's the workflow Sourcegraph Cody is built for. You open chat in VS Code or JetBrains, type @ to pull in a specific file, symbol or remote repository, and ask how that API is actually used across your codebase. Cody answers using context from Sourcegraph's Search API, which pulls from both local and remote codebases, not just whatever happens to be open in your editor.

That remote context is the real reason to pick Cody. Most AI coding assistants do fine with the file in front of you and get vague about everything else. Cody starts with your open file and repository by default, then lets you widen the scope to other repos or non-code artifacts. Around that core you get code completions, Auto-edit (which proposes changes based on your cursor position and recent edits once you've typed at least one character), debugging help, and prompts you can save and share with your team. Context Filters let you exclude selected repositories from chat and autocomplete results, which is useful if some of your code is sensitive or just noisy. It hooks into GitHub and GitLab as code hosts, and there's a CLI and a web app if you don't want to live in an IDE.

The tradeoff is that the docs lean hard on Sourcegraph Enterprise. The Cody page opens with "Supported on Sourcegraph Enterprise," and the pricing page centers on an Enterprise plan with a schedule-a-demo flow. The listing shows a freemium model with paid plans starting at $9/mo, so there's an entry point, but Cody's best feature, cross-repo context, makes the most sense when your company already runs Sourcegraph Code Search. If you're a solo dev on one repo, you'll get a capable assistant. If you're on a team with hundreds of repos and nobody remembers who wrote what, you'll get the thing it's actually designed to do.

Key features

Chat with @-mention context

Cody's chat knows your open file and repository by default, and you can type @ to add specific files, symbols, remote repositories or non-code artifacts to the conversation.

Cross-repo context via Sourcegraph Search

It uses Sourcegraph's Search API to pull APIs, symbols and usage patterns from both local and remote codebases, so answers aren't limited to what's on your disk.

Auto-edit

After you make at least one character edit, Auto-edit watches your cursor movements and recent changes and proposes contextual modifications to nearby code.

Shareable prompts

You can use premade prompts or build your own for common queries and tasks, then save and share them with your team.

Context Filters

You can tell Cody to ignore selected repositories in chat and autocomplete, which gives you control over what code feeds its answers.

Multiple surfaces

Cody runs as an extension for VS Code, JetBrains and Visual Studio (experimental), plus the Sourcegraph web app and a CLI.

Best for

  • engineering teams already running Sourcegraph Code Search
  • developers working across many repositories
  • onboarding engineers into large, unfamiliar codebases
  • teams that want shared, reusable AI prompts
  • JetBrains and VS Code users who want one assistant across both

Skip if

  • Visual Studio shops that need a stable, fully supported extension, since that client is still marked experimental
  • solo developers on a single small repo, where the cross-repo context advantage mostly disappears
  • you if you need to know exactly which LLMs you're getting, because the docs only say "the latest LLMs" without listing them

Pros & cons

Pros

  • Remote codebase context through Sourcegraph's Search API is a real edge over assistants that only see your local workspace
  • The @ mention system for files, symbols and remote repos makes it easy to point chat at exactly the code you mean
  • Context Filters let you keep specific repositories out of chat and autocomplete results
  • Prompts can be saved and shared, so a team can standardize common tasks instead of everyone retyping them
  • Sourcegraph states it doesn't use your data to train models

Cons

  • The Visual Studio extension is labeled experimental, so .NET-heavy teams get a second-class client
  • The docs say Cody uses "the latest LLMs" but don't name which models are available, so you'll only find out after you install
  • For individuals on Sourcegraph.com, Sourcegraph collects prompts and responses and may use them to improve the product, even though it says it won't train on them
  • The docs and pricing page are built around Sourcegraph Enterprise, so details for individual and small-team use are thin

Pricing

TierPriceIncludes
Starting plan$9/moEntry-level paid access to Cody per the listing, with a free option also available under the freemium model.
EnterpriseCustom (schedule a demo)Cody on Sourcegraph Enterprise, alongside platform products like Code Search, Deep Search, Batch Changes, Insights, MCP and APIs, built for large and complex codebases.

Frequently asked questions

Which editors does Sourcegraph Cody support?

Cody has extensions for VS Code, JetBrains and Visual Studio, though the Visual Studio one is still experimental. You can also use it in the Sourcegraph web app or from the command line with the Cody CLI.

How much does Cody cost?

Cody is freemium, with paid plans starting at $9/mo according to its listing. Larger organizations can get Cody as part of the Sourcegraph Enterprise plan by scheduling a demo with the sales team.

How is Cody different from GitHub Copilot?

Both offer chat and completions inside VS Code and JetBrains, but Cody's pitch is pulling context from remote repositories through Sourcegraph's Search API. If your work spans many repos, that cross-repo context is the main reason to pick Cody over Copilot.

Does Sourcegraph train models on my code?

Sourcegraph says it doesn't use any of your data to train models. For individuals using Cody via Sourcegraph.com, it does collect prompts and responses and may use them to improve the user experience.

Can I keep certain repos out of Cody's answers?

Yes. Context Filters let you exclude selected repositories from both chat and autocomplete, which is handy for sensitive code or for cutting noise in a codebase with 100+ repos.

How Sourcegraph Cody compares

Reviews

Sign in to leave a review.

No reviews yet, be the first.

More like Sourcegraph CodyAll code & developer tools

Work on Sourcegraph Cody?Put the badge on your site. It is free, nothing on this page changes if you do, and it links back to this listing. More badge styles.
Featured on Get365AI badge for Sourcegraph Cody
Own this tool?Claim the listing to get a verified badge and edit the details.