talira

Sourcegraph

Code understanding for humans and agents

commercial softwareself-hostableMCP

Sourcegraph is a code search and code intelligence platform for large organizations: it indexes every repository, branch and code host you connect and lets engineers and AI coding agents search it with regex, symbol and structural queries, navigate definitions and references across repositories, and ask natural-language questions with Deep Search, which gives cited answers. Batch Changes (now agentic) makes the same change across many repositories at once, Code Insights tracks metrics over the codebase, and Code Monitoring alerts on new matches. Agents reach it through its MCP server, GraphQL and REST APIs and CLI, and it works with Claude Code, Cursor, Codex and Amp. The Enterprise plan runs as single-tenant cloud or self-hosted, starting at $16K a year with credits for AI features; anyone can search 1M+ public repositories free on its public code search.

Problems it solves

  • search code across thousands of repositories on GitHub, GitLab and Bitbucket at once
  • find every place a deprecated API is still called across the whole company
  • give our AI coding agents context about code in other repositories
  • make the same change across hundreds of repositories and track the pull requests
  • go to definition and find references across repository boundaries in the browser
  • get alerted when someone commits a pattern we've banned, like a hard-coded secret
  • self-hosted code search for a large enterprise codebase

Features

  • code search with symbol search across all repositories, branches and code hosts
  • cross-repository code navigation
  • Deep Search: AI-powered, citation-backed answers about the codebase
  • Agentic Batch Changes for multi-repository changes
  • Code Insights and Code Monitoring
  • MCP server, GraphQL and REST APIs, and CLI
  • works with Claude Code, Cursor, Codex and Amp
  • single-tenant cloud or self-hosted
  • public code search over 1M+ public repositories

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known

Alternatives

The same job

These do what Sourcegraph does.

  1. Zoekt Fast trigram-based code search engine
  2. Greptile The AI Code Reviewer
  3. OpenGrok A fast and usable source code search and cross reference engine
  4. Hound Lightning fast code searching made easy
  5. livegrep Fast interactive regex search over large source code repositories

Compare Sourcegraph with the top 3