
Cody
Write and explain code using your full repository as AI context
Replaces Github Copilot, Gemini Code Assist, Tabnine

Who it's for
Cody fits engineers who want AI help that can use repository context instead of generic programming advice.
You only need occasional general coding answers and do not want a codebase-aware assistant.
Cody is especially relevant when teams already rely on Sourcegraph for code search and want AI assistance near that context.
You require a fully self-contained local coding assistant with no Sourcegraph dependency.
The problem
Generic AI chat often lacks enough codebase context to answer implementation questions safely. Developers paste snippets, explain architecture repeatedly, and still get answers that miss repository-specific patterns. A code assistant is more useful when it understands project structure, symbols, documentation, and search context. For teams, the added question is governance: which code is indexed, how context is retrieved, and which provider handles prompts.
How it works
Cody is built around answering development questions with repository context, so developers can ask about project-specific symbols, files, and patterns instead of pasting snippets manually.
Cody supports AI-assisted code generation and editing workflows for developers who want help changing code inside the context of an existing project.
Cody belongs to the Sourcegraph developer-tooling ecosystem, which matters for teams already using Sourcegraph code search and code intelligence.
Features
- Codebase-aware chat
- Code generation and edits
- Sourcegraph ecosystem fit
Recommended for this setup
Strengths
- Better context than standalone chat: Cody's core advantage is answering coding questions with repository context instead of relying only on pasted snippets.
- Strong fit for Sourcegraph teams: Teams that already use Sourcegraph can evaluate Cody near their existing code search habits rather than adding a completely separate assistant workflow.
Trade-offs
- Best inside Sourcegraph workflows: Cody makes the most sense for teams that want Sourcegraph-backed code context. Developers who only need occasional general programming answers may find a standalone chat assistant simpler.
Tech stack
FAQ
Cody is used as an AI coding assistant for codebase-aware chat, code generation, and developer help.
Cody focuses on repository context, so its answers can account for project files, symbols, and code search context instead of only generic programming knowledge.
Cody is best for developers and teams that want AI assistance connected to a real codebase, especially when they already use Sourcegraph.