SWE-BENCH VERIFIED
+61%
ADD TESTS
+13%
DOCUMENTATION DEEPSWE
+58%
AGENT PATCH
+11%
Imagine you hire a contractor to fix a leaky faucet. They fix the faucet, but they also replace the shutoff valve, add a water sensor under the sink, and leave a note explaining what they did. Your spouse says they 'did too much.' But did they? The faucet works, the extras are arguably useful, and the only way to know if the valve replacement was overkill is to remove it and see if everything still holds. That replay-and-revert logic is exactly what this paper builds. The committed claim: agent patches are bigger than human developer patches, but the extra size is mostly tests and documentation — not unnecessary code. When you isolate just the code edits, agents leave behind code that is at least as necessary as what human developers write (mean necessity proportion 0.887 vs 0.864 on SWE-bench Verified). This is not 'agents are sloppy'; it is 'agents are verbose in ways that look different from human verbosity.' The method, Delta Residue Attribution (DRA), is a replay-based causal analysis. For each unit (hunk) of a final patch, DRA traces it to the trajectory step that produced it, reverts the unit, reruns the task's test suite, and classifies the unit as needed or unneeded based on whether tests still pass. This is applied at industrial scale: 7,660 resolved trajectories from 18 frontier models across two benchmarks, using GitHub Copilot CLI as the agent harness. The same grading method is applied to developer-written gold patches — a critical fairness move that most prior work skips. The decomposition of where extra lines come from is the paper's sharpest insight. On SWE-bench Verified, 61% of agent excess lines are tests and 13% are documentation. On DeepSWE, 58% of excess is code — a benchmark-dependent finding that matters for anyone generalizing from one benchmark to another. The 11% residual unneeded code in agent patches is real, but 89% of those unneeded units actually change program behavior (they're not dead code — they're live but unnecessary for the specific test suite). Debug steps, contrary to intuition, write almost none of the unneeded code. The integrity story is mixed but mostly strong. DRA's grading depends entirely on the test suite: if the tests are weak, 'needed' and 'unneeded' become unreliable labels. The authors acknowledge this but do not attempt a human-judged subsample for calibration. The comparison to developer patches using the same method is the strongest integrity move — it eliminates the asymmetric-grading problem that plagues most agent evaluations. Benchmarks used are community-standard (SWE-bench Verified, DeepSWE), not custom. The most provocative finding is the negative correlation between resolve rate and code necessity on DeepSWE (Spearman −0.59, p = 0.01). Models that solve more tasks leave more junk behind. This suggests a generate-and-hope strategy at frontier capability edges — throw more code at the wall, some of it sticks, some doesn't. On SWE-bench Verified, the correlation is flat, meaning necessity and capability decouple on easier benchmarks but trade off on harder ones. Pruning results are honest about the precision-recall tradeoff. DRA-based auto-pruning using only visible tests achieves 67% recall and 46% precision at removing unneeded code, with 89% of pruned patches still resolving the task. Asking the agent to self-audit its own diff is more precise (66%) but catches less (36% recall). Neither approach is a silver bullet, and the paper does not pretend otherwise. The practical recommendation — report code necessity alongside resolve rate — is exactly the kind of metric-hygiene intervention the benchmark ecosystem needs.
The analogy
Like hiring a contractor to fix a leaky faucet who also replaces the shutoff valve and adds a water sensor. Your spouse says they over-did it. The only way to know is to undo each extra piece and see if the fix still holds. DRA is that systematic undo-and-check process applied to every edit an AI coding agent makes.
Contractor audit
Undo each extra repair one at a time, check if the faucet still works after each removal
DRA replay
Revert each patch unit one at a time, rerun the test suite, classify as needed or unneeded
Honest assessment
This is a well-executed empirical contribution that reframes a real debate with better measurement. The core finding — agents are verbose but not sloppy — is load-bearing and likely correct within the limits of test-suite-based grading. The main vulnerability is that DRA's 'needed' label is only as good as the test suite it runs against; a human-calibration study would either validate or deflate the headline numbers. Engineers building or evaluating coding agents should read this; the NP_code metric and the test-vs-doc-vs-code decomposition are immediately useful framing tools.
What Is CLAIMS?
70
/ 100
BedrockNews applies a structured analytical framework called CLAIMS to academic papers and technical research releases.
How CLAIMS worksClaim
4/5
Ladder
4/5
Architecture
3/5
Integrity
3/5
Milestone
3/5
Successor
4/5
What is this paper actually committing to?
Genuine new measurement axis. Nobody had causally decomposed agent over-editing at scale before. The claim is narrow but committed: extra lines ≠ bad lines, and here's the proof across 18 models and 7,660 trajectories.
The field fight
Are LLM coding agents over-editing, and should patch size penalize benchmark scores?
Side A
Bigger patches signal sloppy generation; agents over-edit and benchmarks should penalize it
Held by: Aider blog posts, conventional wisdom, patch-size critics
Side B
Patch size is a misleading proxy; causal necessity measurement shows agent code is as needed as developer code
Held by: This paper, DRA framework
Milestone tracker
Unlocks: Confidence that agent patches can be merged with minimal human review of unnecessary edits
Current
0.887
NP_code
Agent code necessity (SWE-bench)
Next
0.95
NP_code
Human-parity necessity threshold
~1-2 years via model training + harness-level pruning improvements
Verified Facts (8)
7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models on SWE-bench Verified (6,728) and DeepSWE (932)
Mean NP_code 0.887 vs. 0.864 on SWE-bench Verified; 11 of 18 models leave less unneeded code than developers
Mean NP_code 0.797 vs. 0.785 on DeepSWE
On SWE-bench Verified, 61% of extra edits add tests and 13% documentation; on DeepSWE, 58% of extra edits are code
11% of agent patch code units on SWE-bench Verified are unneeded; 89% of those change behavior
Resolve rate negatively correlated with code necessity on DeepSWE (Spearman -0.59, p = 0.01)
DRA pruning: 67% recall, 46% precision; 89% of pruned patches still resolve the task
Agent self-audit: 36% recall, 66% precision
Practical Implications (4)
Teams evaluating coding agents should stop using patch size as a proxy for quality and instead measure code necessity directly
Agent harness builders should consider harness-level pruning (67% recall, 46% precision) as a post-processing step, accepting 11% patch failure rate
Benchmark maintainers should report NP_code alongside resolve rate to separate capability from cleanliness
The negative correlation between resolve rate and code necessity on hard benchmarks suggests agents trading quality for coverage — teams should monitor this tradeoff explicitly
More latest news
Read all