← Wiki

CodeGraph — symbol and package index across all projects

2026-02-07 summary codegraphcode-intelligencefts5tree-sittermcpsolograph

Key Takeaways

One index over every project in the registry: symbol definitions (functions, classes, protocols) from tree-sitter, packages from the manifests, files with language and size. SQLite with FTS5, no server. Symbol names are indexed by their words, so “montage profile” finds resolve_montage_profile in one repository and MontageProfile in the sibling repository where it is actually defined.

Architecture: registry.yaml → solograph scan → portfolio.db (projects, packages, files, symbols + FTS5). Every scan is incremental by mtime and size; the nightly job covers the whole portfolio in seconds. Search over sessions, KB and sources is the same SQLite FTS5.

Key MCP tools:

What it used to be. Until 0.8 this was a FalkorDB graph with imports, function calls, inheritance and session→file edges, queried in Cypher. Agents asked it nothing structural in four months, and Grep answers those questions as well: a dedicated code-graph MCP against Grep/Read on a 1,100-file repository gave the same accuracy in 8 of 8 runs, with a 16% cost difference on one question type and none on the other. See project-solograph for the numbers.

Code reuse detection: shared packages, and the same concept implemented in several projects (search a phrase, see every repository that defines it). Directly supports the portfolio approach: shared infrastructure across products.

GitHub: solograph — open source, one Rust binary, SQLite FTS5 (Python only for the scrapers).

Connections

Sources

Related