Study Finds AI Coding Agents Write Far More Code

Microsoft Research reports agent-written patches on SWE-bench Verified changed a median 2.33 times more lines than developer patches.

Updated on Nov. 27, 2026 in Artificial Intelligence

Study Finds AI Coding Agents Write Far More Code

A Microsoft Research preprint dated November 25, 2026, analyzed 7,660 resolved trajectories from GitHub Copilot CLI produced by 18 frontier models. On SWE-bench Verified, agent patches changed a median of 2.33 times more lines than developer patches for the same problems.

Why it matters

The findings suggest AI coding agents may add substantial code that is not strictly needed to resolve a problem, raising questions about review burden and code quality. The authors also introduced a method for measuring whether agent-written code is necessary.

Of the extra edits on SWE-bench Verified, 61% were tests and 13% were documentation, while about 11% of agent code units were unneeded after testing. Whether these unneeded units carry long-term maintenance costs remains unstudied in the preprint.

The players

Microsoft Research

The research division of Microsoft that conducts computer science and AI research across academic and applied domains.

GitHub Copilot CLI

A command-line AI coding agent from GitHub, a Microsoft subsidiary, that produced the agent trajectories analyzed in the study.

The details

Researchers Aakash Goel, Benjamin Steenhoek, and Yu Hu introduced Delta Residue Attribution, which traces agent-generated patches and re-evaluates them to determine what each piece contributes to the final result. The method assigns a code necessity score labeled NP_code to both agent and developer code. The study drew 6,728 trajectories from SWE-bench Verified and 932 from DeepSWE.

Timeline

  1. November 25, 2026: Microsoft Research study dated.

  2. November 27, 2026: Crypto Briefing publishes coverage of the study.

The Tech Race

The study measures AI coding agents against the SWE-bench Verified benchmark, a widely used test of resolving real GitHub issues. Its findings show that benchmark success alone does not capture how much extra code agents produce relative to human developers.

Developers reviewing AI-generated pull requests may face larger diffs that include tests and documentation beyond what a fix requires. Teams adopting coding agents may need to weigh whether the added code improves their workflow or adds review overhead.

The takeaway

Teams using AI coding agents should review agent-generated patches for unnecessary edits, not just whether tests pass. Checking for surplus code can reduce review load and long-term maintenance risk.

Further reading

Explore more on Artificial Intelligence developments and their effect on software development.

Source note: This article includes information reported by Crypto Briefing.