CodeGraph — symbol and package index across all projects
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:
symbol_search— where something is defined, across every projectproject_info— all projects with portfolio counts; withname, what one project is made of (stack, languages, layers, dependencies); withpackage, who uses it
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
- context-graphs-summary — the theory this started from; the measured result is that the agent’s own history (sessions) is the part it uses
- decision-traces-compound — session search is the trajectory record that compounds
- harness-engineering-summary — shared packages and duplicated concepts as architectural signals
- solo-methodology — the code intelligence layer of the solo dev workflow
- rag-patterns — lexical retrieval with freshness beat vectors on a stale index here