Comparison

CodeGraph vs Sourcegraph

A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.

CodeGraph

Pre-indexed, local code knowledge graph for agents.

  • + Local-first pre-indexed graph that auto-syncs on change
  • + Works across many coding agents out of the box
  • − Newer project with a smaller community
  • − Index must be maintained per repository

Sourcegraph

Enterprise code intelligence, search, and agent context.

  • + Precise SCIP indexing and cross-repository search
  • + Enterprise-grade code understanding at scale
  • − Proprietary and enterprise-priced
  • − Heavier deployment than a local MCP
Spec CodeGraph Sourcegraph
Role Code intelligence Code intelligence
Tags code-intelligence code-intelligence
License MIT Proprietary
Open source Yes No
Self-hostable Yes No
MCP support Yes Yes
Pricing free paid
Price Free Custom
Usage cost No model cost Included
Models multi multi
Languages typescript
GitHub stars 57.4k
Last activity 2026-07-04