cd /news/artificial-intelligence/microsoft-study-finds-ai-coding-agen… · home › topics › artificial-intelligence › article
[ARTICLE · art-177059] src=cryptobriefing.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Microsoft study finds AI coding agents write bigger patches, mostly by adding tests

A Microsoft Research preprint dated November 25, 2026, by Aakash Goel, Benjamin Steenhoek and Yu Hu analyzed 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models and found agent patches on SWE-bench Verified changed a median of 2.33 times more lines than human developer patches, with 61% of the extra edits being tests and 13% documentation. Using a new method called Delta Residue Attribution, the researchers found agents' code necessity score (NP_code) was higher than developers' on average, but about 11% of agent code units on SWE-bench Verified were unneeded after testing, and 89% of those unneeded units changed program behavior. On the DeepSWE benchmark, which supplied 932 of the runs, 58% of surplus edits were code modifications rather than tests.

recommendation

When evaluating coding agents, separate test and documentation lines from functional code and re-check each code unit for necessity, since roughly 11% of agent units were unneeded and 89% of those altered behavior.

more in playbook: Evals and testing for LLM apps
by read3 min views4 publishedNov 27, 2026
Microsoft study finds AI coding agents write bigger patches, mostly by adding tests
Image: Cryptobriefing (auto-discovered)

Microsoft official logo (public domain, Wikimedia Commons) — CryptoBriefing brand treatment

Researchers traced 7,660 GitHub Copilot CLI runs and found agent fixes run larger than human ones, though much of the extra bulk is tests

AI coding agents write bigger fixes than human developers do. A new Microsoft Research preprint finds that most of the extra lines are tests, not additional code.

The study, dated November 25, 2026, looked at how frontier models behave when given real coding tasks. Its conclusion is that agents write more, but they are not necessarily sloppier.

What the researchers measured #

The authors are Microsoft researchers Aakash Goel, Benjamin Steenhoek, and Yu Hu. They analyzed 7,660 resolved trajectories from GitHub Copilot CLI, produced by 18 frontier models.

The runs came from two benchmarks. SWE-bench Verified supplied 6,728 of them, and DeepSWE supplied 932.

The first finding is about size. On SWE-bench Verified, agent patches changed a median of 2.33 times more lines than the patches developers wrote for the same problems.

The breakdown of those lines is more mixed. On SWE-bench Verified, 61% of the extra edits were tests, and another 13% were documentation.

A new way to judge whether code earns its place #

To work out which lines mattered, the team introduced a method called Delta Residue Attribution, or DRA. It traces agent-generated patches and re-evaluates them to see what each piece contributes to the final result.

AI, tech, and the markets they move—in one daily briefing.

Daily. Free. Join 34,000+ readers across crypto, finance, and policy.

On this measure the agents did well. On SWE-bench Verified, the agents’ code necessity score, labeled NP_code in the paper, was higher than the developers’ score on average.

There were problems. About 11% of agent code units on SWE-bench Verified turned out to be unneeded after testing.

And 89% of those unneeded units changed behavior. They were not harmless leftovers like an extra blank line. They were edits that changed how the program runs, even though the fix did not require them.

DeepSWE tells a different story #

The second benchmark produced a different mix. On DeepSWE, most of the extra edits were code modifications, which made up 58% of the surplus.

What this means for developers and toolmakers #

The 11% figure may be the most useful for practitioners. If about one in nine agent code units on SWE-bench Verified is unnecessary, and nearly all of those change behavior, removing them is a real engineering problem.

For Microsoft, the research is also a study of its own product. All the trajectories come from GitHub Copilot CLI, so the company is in effect auditing how its agent behaves across 18 different underlying models. This is a preprint, so its methods and conclusions have not gone through formal peer review. DRA in particular is new, and other researchers will likely want to check whether it holds up on other tools and codebases.

For now, the study gives a more measured picture than most commentary on AI coding. AI agents do write more, but on at least one major benchmark, most of the extra is tests and documentation. Disclosure: This article was edited by Diego Almada Lopez. For more information on how we create and review content, see our Editorial Policy.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @microsoft 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/microsoft-study-find…] indexed:0 read:3min 2026-11-27 · —