← In the News

Coding agents pass similar numbers of tests but leave very different code behind

Evaluating Code Slop in Long-Horizon Coding Agents · Shubham Gandhi, Shyam Agarwal, Nachiket Kotalwar, Atharva Naik, Carnegie Mellon University · arXiv, December 1, 2026

Machine-readable Download Markdown

The authors define code slop as code volume, control-flow complexity and maintainability debt beyond what a task needs, measured as static-analysis deltas before and after an agent acts. Across 2,268 runs on 42 SWE-EVO release-to-release tasks, using Claude Sonnet 4.6, DeepSeek V3.2 and Qwen3-Coder 480B in the minimal mini-swe-agent harness, fractional test utility stayed between 70.7% and 75.5% under every cleanup policy. Code volume differed widely: a cleanup pass triggered when a monitor judged the agent had reached a natural breakpoint cut code volume by 79.3 lines on the paper's trimmed mean, against 55.4 for cleanup every 10 steps and 14.3 for one pass at the end. In the paper's words, "A single final cleanup pass barely reduces slop." The monitor policy cost $0.91 per instance against $1.21 for the 10-step schedule. Most of the effect came from the two open-weight models; Claude Sonnet 4.6 changed the codebase little under either the baseline or the monitor policy.

The authors do not test whether leaner code makes the next human or agent turn easier, and the study is Python only with a single harness.

Why it matters: A resolve rate says nothing about what a reviewer inherits. If you add a cleanup step to an agent loop, this result points to running it at breakpoints during the work rather than once at the end, and it suggests the payoff depends heavily on the model.