Cody

enterprise AI code assistant · by Sourcegraph · official site

What it does

Cody is Sourcegraph’s enterprise AI code assistant, tightly integrated with the Sourcegraph code intelligence platform. Unlike most AI coding tools that rely on the current open file or a sliding window of recent edits, Cody retrieves context from your entire codebase using the Sourcegraph graph—a structured index of repository relationships, cross-references, definitions, and usage patterns. It provides both chat-based Q&A and inline autocomplete, but the core differentiator is its ability to answer questions like “How does this function get called?” or “What does this API endpoint depend on?” by walking the actual call graph, not just guessing from tokens.

Cody achieves this by embedding code snippets and using Sourcegraph’s static analysis (lexical + deep reference indexing) to ground responses in real symbols and their connections across files, repos, and even service boundaries (when configured with multiple repositories). The autocomplete attempts to leverage the same context, but its latency tradeoff is tuned for accuracy over speed—making it a weaker pure autocomplete tool but a strong teammate for complex, multi-file reasoning.

Who it’s for

Cody is designed for engineering organizations that already manage a non‑trivial code footprint and have a Sourcegraph instance (self‑hosted or cloud) in place. Typical adopters are teams with monorepos spanning hundreds of thousands of files, microservice architectures where a single feature touches multiple services, or legacy systems with little documentation where onboarding requires reading cross‑module dependencies.

It is not for solo developers who only need instant completions. It is for teams that value “how does this work” over “what should I type next.” Engineering leads, platform teams, and SREs often use Cody as a documentation explorer. New hires in large codebases find it useful for directed learning. Security teams sometimes repurpose it to trace data flows across repos.

What works

What breaks

Pricing reality

Cody is not sold standalone. As of 2026, it is a feature of Sourcegraph Enterprise. Pricing varies significantly based on deployment model (self‑hosted vs. managed cloud), number of active users, and total code volume indexed.

*For exact figures, contact Sourcegraph sales. Varies.*

Honest comparison

When to use

Use Cody when your team already relies on Sourcegraph for code search and you need AI responses that are grounded in actual code structure rather than token probability. It shines in discovery tasks: asking “What does this module depend on?” or “Show me all callers of function X across services.” For rapid autocomplete‑driven development, choose a faster tool. For understanding and navigating a large, multi‑language codebase, Cody is one of the best enterprise options available in 2026—provided you can stomach the setup cost and latency.

Last verified: 2026-06-08 by kernel.