Code graph saves 80% tokens over grep for agent queries

coding-os · reddit · 2026-08-25

A benchmark comparing precomputed code graphs (via MCP) against grep-then-read for agent code queries across 4 public repos. Results show 75-82% token savings for reference lookups and rename planning on three repos. While 3-hop impact queries varied, the graph provides completeness flags to avoid truncation errors. The tool is open-source under Apache-2.0.

Original post →

More from coding & agent

coding & agent channel →