Live intelligence

Latest AI updates

1 updates
Research Editor selected

Delta Residue Attribution Quantifies Unneeded Code in Coding Agent Patches

Researchers introduce Delta Residue Attribution (DRA), which replays agent trajectories, traces each patch unit to the step that wrote it, reverts that unit, and reruns task tests to judge whether the edit was needed. Applied to 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models on SWE-bench Verified (6,728) and DeepSWE (932), DRA finds agent patches change more lines than developers', but on SWE-bench Verified most extra edits add tests (61%) and documentation (13%), while on DeepSWE most extra edits are code (58%). Agents' code is on average at least as necessary as developers' (mean NP_code 0.887 vs. 0.864 on SWE-bench Verified; 0.797 vs. 0.785 on DeepSWE), though 11% of agent code units on SWE-bench Verified remain unneeded and 89% of those change behavior. DRA-based pruning using only visible tests removes most unneeded code but loses some needed code (67% recall, 46% precision), with 89% of pruned patches still resolving the task; the authors recommend benchmarks report code necessity alongside resolve rate.

Why it matters: Gives concrete, large-scale evidence that coding agents' extra edits are often tests or docs rather than harmful code, and offers a measurable method plus benchmark reporting recommendation.

coding agentssoftware engineering benchmarksAI agent evaluation