Scale Signal

Larger agent patches do not necessarily contain more unnecessary code proportionally

November 25, 2026 · Goel, Steenhoek, and Hu
SelectionObservabilityVerification
Evidence boundary: Two benchmarks and 18 models in one agent harness; the analyzed trajectories had already resolved their tasks.
Evidence record

Source → Observed → Interpretation → Model implication

SOURCE

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

View source →
OBSERVED

The study analyzes 7,660 resolved Copilot CLI trajectories from 18 models: 6,728 on SWE-bench Verified and 932 on DeepSWE.

Delta Residue Attribution links final patch units to the steps that wrote them, then reverts each unit individually and reruns task tests. The study applies the same necessity test to developer patches.

Mean code-unit necessity was 88.7% for agent patches versus 86.4% for developer patches on SWE-bench Verified, and 79.7% versus 78.5% on DeepSWE.

On SWE-bench Verified, 61% of extra edits were tests and 13% were documentation; on DeepSWE, 58% were code.

On SWE-bench Verified, 89% of agent code units classified as unnecessary changed behavior. Pruning with only agent-visible tests removed some necessary code, and 89% of the pruned patches still resolved the task.

INTERPRETATION

Patch size does not distinguish test and documentation additions from behavioral changes. Removing a patch unit and rerunning tests gives a more direct measure of what those tests depend on, but passing tests after removal does not establish that the removed behavior was irrelevant or undesirable.

MODEL IMPLICATION

REFINES. Refines Selection by separating task resolution, patch size, and test-measured code necessity. The pruning result shows why this last measure is a diagnostic rather than a safe deletion rule.

Epistemic boundaries

What this does not establish

OPEN QUESTION

Does reporting test-measured necessity alongside patch size improve reviewer decisions without discarding valuable behavior that tests do not cover?