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

arxiv.org60 min read

Researchers introduce Delta Residue Attribution (DRA), an empirical method that replays coding-agent trajectories to trace final patch units to the steps that wrote them and test whether those edits are actually needed. Analyzing 7,660 resolved GitHub Copilot CLI trajectories across 18 frontier models on SWE-bench Verified and DeepSWE, the study finds that agent patches change more lines than developers', but the majority of extra edits on SWE-bench Verified are tests and documentation. On code units specifically, agents are on average at least as necessary as developers, and debug steps write almost none of the unneeded code. Open article →

More on this topic