← Back to all agents
Coding Freemium

Sourcegraph Cody

AI coding assistant that understands your entire codebase at scale.

Our take

Unmatched context across huge monorepos — the enterprise pick for large codebases.

What it is

Cody is Sourcegraph's AI coding assistant. Its killer feature is codebase-wide context: it indexes your entire monorepo and can answer questions, write code, and refactor with awareness of dependencies across files. Particularly strong for large enterprise codebases that are too big to fit in a context window.

Best for

  • Answer questions about a large unfamiliar codebase
  • Refactor code that touches many files and packages
  • Onboard new engineers to a monorepo

Pros

  • Unmatched context across huge monorepos
  • Strong enterprise / on-prem options
  • Works with any major IDE

Cons

  • Best features require Sourcegraph Enterprise
  • Setup is heavier than single-file assistants

Quick start

  1. Install the "Cody" extension from Sourcegraph in VS Code or JetBrains.
  2. Sign in with Sourcegraph.com (free) or connect your enterprise Cody instance.
  3. Run "Cody: Sign In" → pick your LLM provider → start with autocomplete.
  4. Chat with @-mention to attach files: `@src/api/users.ts explain the auth flow here`.
  5. For monorepo queries: open Sourcegraph.com, point it at your GitHub org — Cody then indexes your full codebase and answers questions across it.

Sample input / output

Input
Workspace: yfinance (Python, ~10k files across 200 repos).

Chat: "@workspace where is the Ticker.history() method defined and which other repos depend on it?"
Output
Cody answer:
  - "Ticker.history() is defined in yfinance/ticker.py:142 (also re-exported in __init__.py:18). 14 other internal services in the org import it — most via `from yfinance import Ticker`. Full dep graph attached."
Inline citations jump to each repo file. No hallucinated paths.

Benchmarks

Best fit Large monorepos and cross-codebase Q&A
Pricing (Pro) $9/mo (individual); Enterprise on-prem available
Knowledge Indexes entire GitHub / GitLab / Bitbucket orgs in the background
Top plan Pro: full chat + multi-file edits + custom commands

Pricing

Free tier; Pro $9/mo

Underlying models

Claude 3.5/3.7 SonnetGPT-4o/4.1Sourcegraph's own models

Should you pick this?

Pick it if You work in a big monorepo (or many repos) and need cross-file context that inline assistants can't see — Cody's codebase-wide index is the differentiator.
Skip it if You mostly edit single files in a single repo — Cursor or Copilot give you autocomplete + chat with faster latency. For self-hosting / privacy, look at Continue or Tabnine.

Similar agents