1. ECTD
  2. AI News
  3. News
  4. How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches

arXiv cs.AI · 26 Nov 2026, 04:37 AEST

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

normalaitech

A study of 7,660 resolved GitHub Copilot CLI agent trajectories from 18 frontier models on SWE-bench Verified and DeepSWE finds agent patches change more lines than developers' patches, but agents' code is on average at least as necessary. On SWE-bench Verified, about 11% of an agent patch's code units are still unneeded, and 89% of those change behavior.

Key facts

  • Agent patches do change more lines than developers'; on SWE-bench Verified the majority of extra edits add tests (61%) and documentation (13%) while on DeepSWE, most extra edits are code (58%).
  • On both benchmarks, agents' code is on average at least as necessary as developers' (mean $NP_{code}$ 0.887 vs. 0.864 on SWE-bench Verified, where 11 of 18 models leave less unneeded code than developers, and 0.797 vs. 0.785 on DeepSWE).
  • On average, 11% of an agent patch's code units on SWE-bench Verified are still unneeded, and 89% of those change behavior.
  • Debug steps write almost none of the unneeded code.
  • Code necessity differs substantially by model; it is unrelated to resolve rate on SWE-bench Verified and negatively correlated with it on DeepSWE (Spearman -0.59, p = 0.01).

Read aloud

A study of seven thousand six hundred sixty resolved GitHub Copilot CLI agent trajectories from eighteen frontier models on swe bench Verified and DeepSWE finds agent patches change more lines than developers' patches, but agents' code is on average at least as necessary. On swe bench Verified, about eleven percent of an agent patch's code units are still unneeded, and eighty nine percent of those change behavior. Agent patches do change more lines than developers'; on swe bench Verified the majority of extra edits add tests sixty one percent and documentation thirteen percent while on DeepSWE, most extra edits are code fifty eight percent. On both benchmarks, agents' code is on average at least as necessary as developers' mean $NP code $ zero point eight eight seven vs. zero point eight six four on swe bench Verified, where eleven of eighteen models leave less unneeded code than developers, and zero point seven nine seven vs. zero point seven eight five on DeepSWE. On average, eleven percent of an agent patch's code units on swe bench Verified are still unneeded, and eighty nine percent of those change behavior. Debug steps write almost none of the unneeded code. Code necessity differs substantially by model; it is unrelated to resolve rate on swe bench Verified and negatively correlated with it on DeepSWE Spearman -zero point five nine, p = zero point zero one.

Sources in this cluster

Free daily email

Get AI news, checked against sources

One short email each morning with the day's model launches, price changes and research. Unsubscribe any time.

We email a confirmation link first. Pro and API plans