Skip to content
VECTOR WIREAI INTELLIGENCE
UTC
Home

Microsoft Research Finds AI Coding Agents Write 2.33x Larger Patches Driven by Added Tests

Delta Residue Attribution shows tests and documentation account for most of the extra lines in GitHub Copilot CLI patches rather than unneeded code.

AI coding agents change a median of 2.33 times more lines on SWE-bench Verified tasks than human developers write for the same problems, according to a Microsoft Research preprint dated November 25, 20261. Tests account for 61% of the extra edits on that benchmark, and documentation makes up another 13%. The researchers concluded that larger coding-agent patches do not prove over-editing or sloppier behavior2.

Microsoft researchers Aakash Goel, Benjamin Steenhoek, and Yu Hu analyzed 7,660 resolved trajectories from GitHub Copilot CLI produced by 18 frontier models. SWE-bench Verified supplied 6,728 of those runs, and DeepSWE supplied the remaining 932. Code modifications made up 58% of the surplus edits on DeepSWE.

The authors built a method called Delta Residue Attribution, or DRA, to trace agent-generated patches and re-evaluate what each component contributes to the final outcome. The agents' code necessity score on SWE-bench Verified, labeled NP_code in the paper, exceeded the human developers' average score. About 11% of agent code units on SWE-bench Verified proved unneeded after testing, and 89% of those unneeded units changed behavior.

ANALYSIS The composition split between SWE-bench Verified, where tests account for 61% of the extra edits, and DeepSWE, where code modifications account for 58% of the surplus, shows that raw line-count differences across benchmarks do not measure how much unnecessary production code an agent writes.

Was this useful?

The day’s vector, in your inbox.

Vector Wire Daily: one dispatch each publishing day.