Skip to content

Sourcegraph

Enterprise code search and AI Deep Search across every repo, now sold as codebase context for other coding agents.

Reviewed by Andrew Miller · Updated

Our rating

4.2/5

Sourcegraph gives people and coding agents exact search across thousands of repositories, and since the Amp spin-out it sells that only to companies willing to sign a $16,000 contract.

What it is

Sourcegraph indexes all of a company's code, across code hosts, and lets people and AI agents search it. Code Search gives exact, exhaustive results; Deep Search answers plain-language questions with citations; and an MCP server, API and CLI give coding agents like Claude Code, Cursor, Codex and Amp the same context. Batch Changes, Code Insights and Code Monitoring cover large-scale edits, migration tracking and alerts.

The company changed shape in 2025. Cody Free and Pro were shut down on 23 July 2025, with individual users pointed to Amp. On 2 December 2025, Amp spun out as its own company under co-founders Quinn Slack and Beyang Liu, and former CFO Dan Adler became Sourcegraph's CEO, focused on code search and understanding for large codebases.

Our review

Sourcegraph has done code search for over a decade, and its bet after the Amp spin-out is that agents make exact search more valuable, not less. Chief executive Dan Adler's first note in December 2025 framed Deep Search, its agentic question-answering, as a sub-agent other tools call over MCP. The MCP server went generally available on 25 February 2026 with OAuth dynamic client registration on by default, in Sourcegraph Cloud and self-hosted 7.0, so Claude Code, Cursor or Codex can connect without hand-issued tokens. The homepage quotes Stripe saying its internal agents get code context this way.

The draw over AI-first rivals is exhaustiveness. Semantic tools return code that looks similar; Sourcegraph returns every match across every repository and code host, which is what a security audit or a dependency migration needs. Batch Changes then applies the fix across all of them and tracks the pull requests. Sourcegraph's own CodeScaleBench report claims 30% lower cost per agent task with its context, but that is a vendor benchmark.

Deployment is the other argument. Self-hosted instances send no customer code to Sourcegraph, according to its security page, and support SAML, OpenID Connect and OAuth sign-in. Sourcegraph Cloud runs each customer in a separate GCP environment and is covered by SOC 2 Type II; Cloud logs are kept for up to 365 days. What Sourcegraph's model provider does with prompts sent to Anthropic or OpenAI for Deep Search is not stated on those pages, which a security team will want in writing.

Access is the catch. The pricing page lists only Enterprise, from a $16,000 minimum annual contract with pooled AI credits, but does not say how many credits a user gets or what one buys. There is no self-serve checkout, and individuals lost their way in when Cody Free and Pro ended in July 2025. A 30-person team that mainly wants agents to understand one monorepo is paying for cross-repo machinery it will barely touch.

Where it earns its place

  • A security lead at a bank with 4,000 repositories on GitHub and GitLab

    Find every use of a vulnerable library within a day of disclosure

    One structural search returns every match across both code hosts, and Batch Changes opens the upgrade pull requests and tracks which have merged. A self-hosted instance keeps the code inside the bank's network.

  • A platform engineer rolling out Claude Code to 300 developers

    Give the agents accurate context beyond the repository they are open in

    Point Claude Code at the Sourcegraph MCP server, which connects through OAuth dynamic client registration. Deep Search runs as a sub-agent and consumes pooled AI credits; ask sales how many each seat includes, because the pricing page does not say.

  • A VP of engineering at a 60-developer scale-up

    Decide whether code search is worth a five-figure contract

    The $16,000 minimum works out to about $267 per developer a year before any seat scaling. If the code lives in one or two repositories, agents with local grep and an IDE index cover most of the need.

Before you commit

Setup
Sales-led: a single-tenant Cloud instance is provisioned by Sourcegraph, or self-host with your own infrastructure; then connect code hosts and let indexing run.
Integrations
All major code hosts, according to the pricing page; an MCP server with OAuth dynamic client registration, GraphQL and REST APIs and a CLI; works with Claude Code, Cursor, Codex and Amp.
Data and privacy
Self-hosted instances send no customer code to Sourcegraph; Cloud is SOC 2 Type II, single-tenant on GCP, with logs kept up to 365 days; SAML, OIDC and OAuth sign-in; LLM provider retention terms not published on the pages reviewed.
Cost at scale
From $16,000 a year, scaling with team size; per-seat prices and included AI credits are quoted by sales only, with extra credit buckets as an add-on.
Limits
Deep Search over MCP has a 50-second timeout and returns a link to follow longer runs, according to the self-hosted 6.12 changelog; no free trial or self-serve tier is listed.

What's good

  • Exact, exhaustive search across every repository and code host
  • MCP server with OAuth sign-up, plus GraphQL, REST and CLI
  • Batch Changes applies one edit across thousands of repositories
  • Self-hosted instances send no code to Sourcegraph
  • SOC 2 Type II single-tenant Cloud in a dedicated GCP environment

What's not

  • Enterprise only, from a $16,000 minimum annual contract
  • No self-serve plan since Cody Free and Pro ended in July 2025
  • Credits per user and the cost of a Deep Search are not published
  • Model provider retention terms not stated on the security pages
  • Standard support is 24x5; premium support costs extra

Best for

Large engineering organisations that need exact code search and agent context across many repositories.

Alternatives

Sourcegraph: common questions

Is Sourcegraph worth it?
Sourcegraph gives people and coding agents exact search across thousands of repositories, and since the Amp spin-out it sells that only to companies willing to sign a $16,000 contract. We rate it 4.2 out of 5.
How much does Sourcegraph cost?
Enterprise only: from a $16,000 minimum annual contract that includes pooled AI credits and scales with team size; contact sales. Single-tenant cloud or self-hosted. Public code search across 1M+ public repositories is offered separately.
What are the downsides of Sourcegraph?
Enterprise only, from a $16,000 minimum annual contract; no self-serve plan since Cody Free and Pro ended in July 2025; credits per user and the cost of a Deep Search are not published; model provider retention terms not stated on the security pages; standard support is 24x5; premium support costs extra.
Who is Sourcegraph best for?
Large engineering organisations that need exact code search and agent context across many repositories.
How much does Sourcegraph cost for a team or in production?
From $16,000 a year, scaling with team size; per-seat prices and included AI credits are quoted by sales only, with extra credit buckets as an add-on.
Is Sourcegraph safe for company data?
Self-hosted instances send no customer code to Sourcegraph; Cloud is SOC 2 Type II, single-tenant on GCP, with logs kept up to 365 days; SAML, OIDC and OAuth sign-in; LLM provider retention terms not published on the pages reviewed.
What are the best Sourcegraph alternatives?
The closest alternatives we have reviewed are DeepWiki, Greptile, Augment Code and Amp.

Answers checked Oct 22, 2026.

Make Sourcegraph? Show this rating on your siteSourcegraph rated 4.2 out of 5 on ReviewRamble