Skip to content
NewA calmer, faster ZeroHour

Coding-agent patches are larger, but most extra edits are needed

Original title: How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches

arXiv cs.AI / cs.LG / cs.CLby Aakash Goel ()1 min read1 · 1 read
AI summary · x-ai/grok-4.7Summaries by Vani AI

On SWE-bench Verified, mean code necessity was 0.887 for agents versus 0.864 for developers.

Researchers introduce Delta Residue Attribution to test whether each block of an agent patch is needed by reverting it and rerunning tests. They graded 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models on SWE-bench Verified and DeepSWE, plus developer patches. Agent patches change more lines, but extra edits are mostly tests and documentation on SWE-bench Verified and mostly code on DeepSWE. Average code necessity matched or beat developers, though about 11% of code units on SWE-bench Verified remained unneeded.

Unconfirmed: Figures are the authors' benchmark measurements and are not independently replicated.

Key facts
  • DRA covered 6,728 SWE-bench Verified and 932 DeepSWE trajectories.
  • On SWE-bench Verified, 61% of extra edits add tests and 13% documentation.
  • On DeepSWE, 58% of extra edits are code.
  • Eleven of 18 models left less unneeded code than developers.
  • Self-audit of diffs reached 66% precision but only 36% recall.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

Agent patches are larger than developers', which is widely read as over-editing. But patch size does not say whether the extra edits are needed, what they are, or where they come from. We introduce Delta Residue Attribution (DRA), which replays agent trajectories, traces every block (unit) of the final patch to the step that wrote it, reverts each unit, and reruns the task tests to decide whether the unit is needed.

arXiv cs.AI / cs.LG / cs.CL

By Aakash Goel · arxiv.org

Read the full article at arXiv cs.AI / cs.LG / cs.CL

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.