How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches
Agents wrote larger patches, but their code edits were at least as necessary on average as developers’ under the study’s test-based measure.
The researchers examined 7,660 resolved coding-agent runs across 18 models, reverting individual patch units and rerunning task tests to assess necessity. On SWE-bench Verified, tests and documentation accounted for 74% of extra edits; on DeepSWE, code accounted for 58%. Still, 11% of agent code units on SWE-bench Verified were unneeded on average, and 89% of those changed behavior. Automated pruning using agent-visible tests removed much of the unneeded code but also some needed code; 89% of pruned patches still resolved the task.
ArXiv · AI/CL/LG's note
The researchers examined 7,660 resolved coding-agent runs across 18 models, reverting individual patch units and rerunning task tests to assess necessity. On SWE-bench Verified, tests and documentation accounted for 74% of extra edits; on DeepSWE, code accounted for 58%. Still, 11% of agent code units on SWE-bench Verified were unneeded on average, and 89% of those changed behavior. Automated pruning using agent-visible tests removed much of the unneeded code but also some needed code; 89% of pruned patches still resolved the task.
ArXiv · AI/CL/LG's note
score 5