Code-graph retrieval cuts tokens 75-82% vs grep, but its benchmark skips accuracy
coding-os · reddit · 2026-09-14
The maintainer of an open-source agent harness with a code knowledge graph published a token-cost benchmark: graph lookups cost 75-82% fewer tokens than grep-then-read for "who calls this" queries across four repos.
A commenter flagged the key gap: the harness emits only graphtokens, baselinetokens and savingspct — no accuracy, recall or precision. A retrieval that's 80% cheaper but wrong is worse than grep, and the current numbers can't tell them apart. The limitation is now documented but unresolved.
Commenters suggested CodeRAG-Bench, CoIR-Retrieval, ContextBench and SWE-Explore-Bench, none of which the author has run yet. His query types are narrow — callers of a symbol, blast radius of a rename, transitive impact — and he's unsure how they map onto chunk-relevance benchmarks.
More from coding & agent
- Power user's must-have macOS list: OpenAI Codex, Cursor and agent orchestration in Linear — altryne · 2026-09-14
- Salesforce gave up the screen: agents become first-class principals in the enterprise — sanjaykalra · 2026-09-14
- Indie dev's new lesson adds real agent capabilities to a Lovart-style canvas — yihui_indie · 2026-09-14
- Mutex from OpenAI Astra Hackathon lets multiple coding agents share one repo without collisions — gabrielchua · 2026-09-14
- ChatGPT-Image-2.5 lands on Nous Portal, usable inside Hermes Agent alongside Fal routes — Teknium · 2026-09-14
- How ChatGPT, Codex, APIs and agents fit together, explained — adnan_hashmi · 2026-09-14