Agents do not write sloppy code. They write too much of it, and I have started reviewing their work differently because of it.

Microsoft Research traced 7,660 GitHub Copilot CLI runs across 18 frontier models and compared agent patches against human patches for the same problems on SWE-bench Verified. The agent patches changed a median of 2.33 times more lines than the human ones. It is a preprint, not peer reviewed, but the shape of the result matches what I see in my own review queue every day. (Source: https://cryptobriefing.com/microsoft-study-ai-coding-agents-larger-patches/)

Most of the surplus is not alarming. Of the extra edits, 61 percent were tests and 13 percent were documentation. I will take an agent that writes too many tests over one that writes none, every time. Extra tests cost review minutes. Missing tests cost incidents.

The part I keep coming back to is smaller and sharper. About 11 percent of the agent code units were unneeded after testing. Not stylistic extras, not harmless verbosity: units the fix never required. And 89 percent of those unneeded units changed behavior. Read that slowly. Roughly one unit in ten in an agent patch does something the program did not need done, and nine times out of ten that something alters how the program acts.

The researchers built a method for this called Delta Residue Attribution, which is a formal way of asking which parts of a patch actually earn their place. You do not need the formalism to use the idea. You need it as a review habit.

Here is mine now. When an agent PR lands, I still ask whether the fix works. Then I ask a second question, hunk by hunk: why is this here? A refactor riding along with a bug fix. A helper rewritten instead of reused. An edge case handled that the issue never mentioned, changing behavior for inputs nobody reported. Each one might be defensible. The problem is when nobody, human or agent, can say which ones were deliberate.

Human patches carry surplus too, but a human usually knows why they touched a file, and you can ask them. An agent's surplus arrives with total confidence and no memory of a decision, because there often was no decision. There was a plausible continuation.

This also changes how I triage review time. With a human PR, I read the fix carefully and skim the rest. With an agent PR, that order is backwards. The fix is usually the most scrutinized part already: the agent iterated against the failing test until it passed. The surplus got no such pressure. Nobody tested whether the extra refactor was needed, whether the new helper matches the existing one three files over, or whether the defensive check it added quietly changes what the function returns for an input the tests never cover. The unexamined part of the diff is where I now spend the unexamined part of my attention.

Bigger patches are not the problem. Unexplained behavior changes hiding inside them are. The fix can be right and the patch can still be wrong to merge as written.

So my rule for agent code, and honestly for my own code on a tired Friday: review the surplus, not just the fix. Every behavior change in the diff should be able to answer for itself. If it cannot, it does not ship, no matter how green the tests are.