We measured what coding agents spend reading files before an edit: 955 jobs, 18 public repos, 11 languages.
In the median repo, a typical job took 13,321 tokens by reading files. A code graph answered with 2,221. 83% fewer.
How much of your agent's context goes to reading?
@rauchg The agentic checks need one hard rule: the agent being checked can't edit the checker. Otherwise "make the test pass" finds the cheapest route.
Your coding agent reads whole files to change one function. We measured the cost: 13,321 tokens on a typical job, against 2,221 when a code graph answers instead.
What file does your agent keep re-reading?
@hwchase17 Same idea one level down, for context: route the question, not only the model. "Who calls X" goes to a code graph, "what does this function do" to a plain read. In our runs the graph cost a sixth of the tokens on the median job and lost on 101 of 955. The router picks.
@Grady_Booch One practical corollary: if cost of change is the measure, those decisions have to stay visible to the agent at the moment it edits. An agent that only sees the files it happened to open can't tell a local change from one that crosses a boundary someone drew on purpose.
@aiwithsally Or not loading it in the first place. We measured that for coding agents: the median job took 13,321 tokens by reading files, and 2,221 through a code graph. At the same token budget, grep-and-read held the function being changed 1 time in 9; the graph, every time.
A language model with no graphics card: RAI is a CPU-only inference engine in pure Rust. No CUDA, no PyTorch, no Python at runtime, and a local server with its own chat UI.
What would you run locally if a GPU weren't the entry ticket?
@twannl Thanks! If you do, the per-repo tables are here, Alamofire included, and node scripts/bench-context-quality.mjs runs the same measurement on your own repo: https://t.co/0FeBZOVK0S
Every repo is a public checkout pinned by commit, and the benchmark ships in the repo, so every number reproduces.
Free, open source, self-hosted, and it works with any MCP client, including Claude Code: https://t.co/c1ePpyjd8D
What would you point it at first?
We measured what coding agents spend reading files before an edit: 955 jobs, 18 public repos, 11 languages.
In the median repo, a typical job took 13,321 tokens by reading files. A code graph answered with 2,221. 83% fewer.
How much of your agent's context goes to reading?
How: Context Zero Engine indexes the repo into a graph of symbols, calls, effects and contracts, and answers the agent's structural questions over MCP in one call: who calls a function, what breaks if it changes, which functions have side effects.