Stale code index: three bugs that swallowed the failure
A crashed extractor, a busy file and a damaged cache each left the CGraph index stale with no error. Three October fixes and the tests that fail without them.
A crashed extractor, a busy file and a damaged cache each left the CGraph index stale with no error. Three October fixes and the tests that fail without them.
Winsock speaks AF_UNIX, so the CGraph daemon kept one socket code path on Windows x64. What the port changed, the hash bug it exposed, and what still skips.
Four releases since launch: cross-repo seams, C/C++, base-graph automation, a safety-audit loop that runs on every merge, and the dispatch barrier that cut Go selections by a third without losing a single test.
Blastline scored 6/12 on tokio and it looked like a recall crisis. A dependency-filtered oracle showed five of the six "misses" depended on nothing — and chasing the one real miss uncovered a macro-blindness bug in CGraph. Tokio reachability went 0.59 → 0.91.
Blastline picks the tests a diff actually reaches by querying a CGraph code graph — deterministic, fail-open, benchmarked on 80 historical commits. Now open source.
CGraph now extracts Rust — structs, traits, functions, and call edges including method calls — via a pinned tree-sitter grammar, with honest v1 limits.
How our live demo embeds an interactive graph of 1,300 nodes: a self-contained graph.html export, a click-to-load sandboxed iframe, and a provenance gate.
A localhost socket is still a trust boundary. How four latent bugs in CGraph's resident daemon survived a green test suite, and what fixing them looked like.
CGraph writes the same code graph in six shapes — JSON, HTML, SVG, an Obsidian vault, Cypher, and a call-flow view. Here is when to reach for each export.
CGraph parses 11 languages with vendored tree-sitter grammars, then resolves imports, calls, and relations into one deterministic code graph. Stage by stage.
A practical guide to contributing to CGraph — pick a good first issue, build it locally with CMake and vcpkg, keep extraction deterministic, and open a PR we can review quickly.
CGraph is an open-source code-intelligence engine that builds a queryable graph of any repository — a self-hosted alternative to proprietary code-search and analysis tools.