Cody
Sourcegraph's AI coding assistant for the IDE, grounded in deep codebase context.
Cody is Sourcegraph's AI coding assistant for the IDE, grounded in codebase-wide context: it uses Sourcegraph's Search API to fetch relevant definitions, references, and files — across many repos on Enterprise — so answers and edits reference how your code actually works. Now Enterprise-only; the Free and Pro tiers were discontinued in 2025.
Cody is Sourcegraph's AI coding assistant that lives inside your editor and answers, completes, and edits code using context pulled from your whole codebase. Its differentiator is Sourcegraph's code intelligence: instead of seeing only the open file, Cody fetches relevant definitions, references, and files across the repository (and, on Enterprise, across many repositories) so its responses are grounded in how your code actually works.
It is aimed at engineering teams working in large, multi-repo codebases where context is the bottleneck — where knowing which function to call, where a type is defined, or how a pattern is used elsewhere matters more than raw generation speed.
Highlights
- Codebase context — Cody uses Sourcegraph's Search API to fetch relevant code as context, so chat and edits reference real definitions and usages rather than guessing from the open file alone.
- Chat — ask questions about your code, generate new code, and apply edits inline, with the conversation grounded in the files Cody retrieves.
- Auto-edit — contextual, multi-line suggestions that react to your cursor and recent changes as you type.
- Prompts — reusable, customizable prompt templates for recurring workflows like writing tests, explaining code, or documenting a function.
- Context Filters — admins can control which repositories are allowed to inform Cody's responses, keeping sensitive code out of context.
- Editor reach — VS Code, JetBrains IDEs, Visual Studio (experimental), the Sourcegraph web app, and a command-line interface (Cody CLI, experimental).
In an AI-assisted workflow
Cody fits teams who already run Sourcegraph for code search. The strongest loop is asking questions that span files: instead of grepping for where a behavior lives, you ask Cody and it retrieves the relevant code as context before answering.
@graphql/schema.ts How is the `User` type resolved, and where are
its resolvers registered? Then add a `lastSeenAt` field end to end.TIP
Because Cody's quality scales with the context it can reach, point it at the right repositories and lean on @-mentions and Context Filters so it grounds answers in the code that matters.
Good to know
Cody is available in VS Code, JetBrains, Visual Studio (experimental), the web app, and via CLI (experimental). It is now part of the Sourcegraph Enterprise plan only: the Cody Free and Cody Pro tiers were discontinued on July 23, 2025 (new signups closed June 25, 2025).
WARNING
If you are an individual developer, Cody is no longer the product to reach for. When it ended Cody Free and Pro in 2025, Sourcegraph pointed solo users to Amp (ampcode.com), which has been an independent company since December 2025; Cody continues as the IDE assistant supported on Sourcegraph Enterprise. Enterprise is sold through sales on an annual contract that scales with team size.
Frequently asked questions
- What is Cody?
- Cody is Sourcegraph's AI coding assistant that lives inside your editor and answers, completes, and edits code using context pulled from your whole codebase. Instead of seeing only the open file, it fetches relevant definitions, references, and files across the repository — and, on Enterprise, across many repositories — so responses are grounded in how your code actually works.
- Is Cody free?
- Not anymore. Cody is now part of the Sourcegraph Enterprise plan only: the Cody Free and Cody Pro tiers were discontinued on July 23, 2025, with new signups closed June 25, 2025. Enterprise is sold through sales on an annual contract that scales with team size.
- Cody vs Amp?
- They are no longer sibling products: Amp spun out of Sourcegraph as an independent company in December 2025. When Sourcegraph ended Cody Free and Pro in 2025, it pointed individual developers to Amp (ampcode.com); Cody continues as the IDE assistant supported on Sourcegraph Enterprise.
Filed under
extension · assistant · codebase-context
Related
- TabnineAn AI code completion and chat assistant built around code privacy, self-hosting, and air-gapped enterprise deployment.
- AmpAgentic coding tool, independent of Sourcegraph since December 2025: a CLI plus apps for the web, Mac, iPhone, and iPad, tuned for frontier-model coding.
- ContinueAn open-source IDE extension for building custom AI coding assistants.
- GitHub Copilot vs Cursor: Extension or Editor? (2026)GitHub Copilot vs Cursor compared — stay in your editor with an extension, or switch to an AI-first fork? Completion, agents, enterprise fit, and pricing shape.
- The Best GitHub Copilot Alternatives in 2026 (Free and Paid)The best GitHub Copilot alternatives in 2026: AI-native editors, open-source VS Code and JetBrains agents, self-hosted assistants and terminal agents.