Code Understanding is a Bottleneck for Coding Agents
- Source
- arxiv.org
- Author
- Nishant Balepur, Kiran Tomlinson, Tobias Schnabel
- Date
Researchers including Nishant Balepur, Kiran Tomlinson and Tobias Schnabel built CABRA, a benchmark of synthetic call-graph tasks covering traversal, search, runtime resolution and instruction following. The point is to isolate how much code an agent has to understand from how much code it has to change. Agents held their accuracy mainly by relying on tools such as grep rather than reading the code into context and reasoning over it. The authors also report that the number of tool calls a task requires predicts SWE-bench Verified accuracy better than the size of the edit. That has two practical consequences. Sizing agent work by lines changed underestimates tasks that touch little code but depend on a lot of it. And investment in search and code-reading tools is likely to pay off more than tuning the editing step.

Context
A small code change can require substantial investigation, so the number of edited lines can miss what makes a task hard for an agent. The CABRA study generates programming tasks with controlled increases in difficulty. Across 6,840 tasks, models working without agent tools lost accuracy as tasks grew, while coding agents remained near-perfect by using tools such as text search.
The harder appeared when agents had to analyze differing logic across two classes: their accuracy then fell. In a separate analysis of , reading and analysis tool-call counts predicted accuracy better than edited-line counts. Together, the reported findings point toward evaluating how agents understand existing code, alongside whether they can produce an edit. Reported results.
- CABRA builds tasks from scratch as call-graph transformations and scales difficulty with a task-size parameter; the authors ran eight LLMs and six coding agents on 6,840 tasks.
- Bare accuracy fell as CABRA tasks grew, but agents stayed near-perfect by offloading work to tools such as grep, which the authors say can hide weaknesses like needle-in-a-haystack .
- Agent accuracy finally dropped on an intense understanding extension where models analyze divergent logic across two classes, backing the claim that comprehension, not editing, is the hard part.
- The authors argue for pairing SWE-bench-style tasks with controlled synthetic diagnosis, since real-repo benchmarks control code and task types too loosely to show which abilities drive errors. The paper is an in-progress preprint.
- Boundary — A point in a program where one part finishes its job and hands its result to another.
- SWE-bench — The standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.
- Large language model — A model trained on large amounts of data to process and generate language.
- Retrieval — Selecting evidence relevant to the current request.
articleInterpreting Coding Agents Through Their Behavioral TrajectoriesIbragim Badertdinov, Alexander Golubev
articleSWE-Duel: Towards a Self-Scaling Arena for Coding AgentsWei Minn, Zhensu Sun, Lwin Khin Shar, David Lo
articleTeaching Agents to Code ReliablyMuhammad Ahmed Mohsin, Myeongsoo Kim, Kangrui Ruan, Shweta Garg, Varun Kumar, Murali Krishna Ramanathan
Checking sign-in…
Loading comments…