← All Comparisons (/vs)
HEAD-TO-HEAD TECHNICAL COMPARISON (2026)

code-graph-rag vs cognee

Side-by-side 2026 comparison in RAG, Data & Memory: topoteretes/cognee leads both total GitHub adoption (★ 33.8k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs Apache-2.0 · Commercial Friendly.

Cumulative Star Gain Chart (Embeddable SVG)

Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.

code-graph-rag vs cognee — 14-Day Star Velocity Comparison on RepoForAI.com 14-DAY CUMULATIVE STAR GAIN COMPARISON REPOFORAI.COM code-graph-rag ★ 5.5k (+20/7d) cognee ★ 33.8k (+174/7d) +420 +210 0 11-21 11-28 12-04 (D1 snapshot)
vitali87/code-graph-rag (Health A+ 95/100) vs topoteretes/cognee (Health A+ 98/100) multi-day star momentum.
Compare different repos →

Key Metrics Matrix

Dimensionvitali87/code-graph-ragtopoteretes/cognee
Total GitHub Stars★ 5,465★ 33,829
24h / 7d Velocity+2 / +20+13 / +174
7-Day Trend Curve
Engineering HealthA+ · 95/100A+ · 98/100
Deployment SignalsDocker · MCP · Self-Hosted · CLIDocker · Self-Hosted · Local AI · MCP · CLI · API
Primary LanguagePythonPython
Commercial LicenseMIT · Commercial FriendlyApache-2.0 · Commercial Friendly
ActivityUpdated todayUpdated today
Latest Releasev0.7.180v1.6.11
Best ForTeams maintaining a multilingual monorepo that need answers grounded in call and import relationships, with a local index and optional MCP integration for reviewed editsTeams building persistent agent memory or an internal knowledge system where document relationships, code dependencies, and lessons from prior sessions need to be retrieved together
Maintaining code-graph-rag, cognee, or an open-source alternative? Reach engineers comparing this stack.
Feature Repo ($19)Sponsor Track

code-graph-rag · Highlights & Quickstart

Storage: an embedded SQLite graph by default, with Memgraph and Neo4j as opt-in Cypher backends.
Language analysis: Tree-sitter indexing under a unified schema, plus a pluggable ast-grep tier for structural coverage.
Retrieval: natural-language questions become Cypher queries; the optional semantic extra adds vector search.
Runtime evidence: cgr trace adds observed calls from test runs or production eBPF profiles to the graph.
# with uv (recommended)
uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic]"

# or with pipx
pipx install "code-graph-rag[treesitter-full,ast-grep,semantic]"

cognee · Highlights & Quickstart

Memory lifecycle: remember, recall, improve, and forget cover ingestion, retrieval, session curation, and targeted deletion.
Retrieval routing: Choose a search strategy explicitly or let Cognee route among graph, vector, and code context.
Local runtime: cognee[gliner] supports CPU-based extraction and local embeddings without an LLM key; models download on first use.
Integration: Python, REST, CLI, and MCP expose memory to applications and agent clients; COGX supports imports from four named memory platforms.
uv pip install "cognee[gliner]"

code-graph-rag vs cognee FAQ

How do code-graph-rag and cognee differ on commercial licensing?

vitali87/code-graph-rag uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.), whereas topoteretes/cognee uses Apache-2.0 · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.).

Which is growing faster in 2026: code-graph-rag or cognee?

According to RepoForAI's 6-hour GitHub telemetry, code-graph-rag has 5,465 stars (+20 in 7d) vs. cognee with 33,829 stars (+174 in 7d).

When should engineering teams pick code-graph-rag vs cognee?

Choose code-graph-rag (Python) for: Teams maintaining a multilingual monorepo that need answers grounded in call and import relationships, with a local index and optional MCP integration for reviewed edits. Choose cognee (Python) for: Teams building persistent agent memory or an internal knowledge system where document relationships, code dependencies, and lessons from prior sessions need to be retrieved together.

More Head-to-Head Comparisons

WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare