MCP server indexes 96k-file Linux kernel in 2m51s on a laptop — and the benchmark exposed a 1.5s query bug
Numerous_Beyond_2442 · reddit · 2026-10-25
Author Senthil released SMP (Structural Memory Protocol), an open-source live structural code graph that coding agents query over MCP, addressing the gap where agents can read files but can't reliably answer structural questions like who calls this, what breaks if changed, and which tests cover it.
Features: callers/callees and blast-radius analysis, file outlines, community detection, test-coverage context; BM25 keyword search with structural expansion (no embeddings); one-line install wires it into Claude Code, OpenCode, Codex, and Cursor; single-file memory-mapped graph, no database or server.
Benchmarks (same 8-thread i7-1165G7 laptop, no GPU): a 95,937-file Linux kernel snapshot indexes in 2m51s — 839,516 nodes / 4,066,943 edges, 2.2 GB graph, 6.5 GB peak RAM; 4.6x faster than codebase-memory-mcp (13m14s); 0.99s vs 5.27s on a 208-file repo (5.3x).
The bug the benchmark caught: locate reloaded every node and re-tokenized the entire BM25 corpus per query — 1,493ms p50 on a 4,575-node graph, and it OOM-killed his desktop twice on the 839k-node kernel graph (systemd-oomd took out the opencode session too). Fixed with a store revision counter + corpus cache (≤250k nodes with fallback), byte-identical results, 9 new tests; locate p50 is now 40–85ms.
Related event: Open-source SMP indexes 96K-file Linux kernel tree in 2m51s(2 posts)→
More from coding & agent
- Jev ecosystem explodes: 5 open-source apps from a 7.1s flight-search agent to SQL-in-English — udmrzn · 2026-10-25
- PhD student says Claude now does most of his thesis work, down to the draft — GarrisonLovely · 2026-10-25
- Google's Jon Barron shares his full AI paper-writing workflow with Gemini — lmoroney · 2026-10-25
- Dev runs an Instagram agent on night shift: 145 accounts checked, 10 follows — petrusenko_max · 2026-10-25
- Minga lets you manage coding agents at the level of goals and plans — every · 2026-10-25
- 1Password lets AI agents sign into your accounts without ever seeing your passwords — LuizaJarovsky · 2026-10-25