← Wiki

CodeGraph — code intelligence across all projects via FalkorDB + tree-sitter

2026-02-07 summary codegraphgraphcode-intelligencefalkordbtree-sittermcpsolograph

Key Takeaways

Knowledge graph of source code across all projects. Scans files, symbols (functions, classes, protocols), dependencies, imports, function calls, class inheritance, and git history. FalkorDBLite (embedded, no Docker), Cypher queries. CLI with Rich output. 10 MCP tools via solograph.

Architecture: registry.yaml (12+ projects) → codegraph scan [--deep] → FalkorDB nodes (Project → File → Symbol, File → Package dependencies, Session → File edits). Deep analysis adds imports, calls, inheritance edges. Per-project vector DBs for semantic search.

Key MCP tools:

Code reuse detection: find shared packages, common patterns, functions that multiple projects import. Directly supports the portfolio approach — shared infrastructure across products.

Session tracking: records which files each Claude Code session edited. Enables: “what did I work on last week?”, “which sessions touched auth code?”, “show me all context for this feature.”

This is context graphs applied to code — not just “what functions exist” but “how do they relate, who uses what, what changed when.” The structural memory that harness engineering talks about.

Connections

Raw source: 1-methodology/codegraph-guide.md