← All papers  /  Nov 17, 2026
Agents · Code · Evaluation

Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop

First page
Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
The curator’s take

Zerui Yang, Bo Bai and colleagues at Huawei replay about 6,000 recorded coding-agent runs on SWE-bench Verified, score every intermediate patch with hidden tests, and measure how much of an agent run happens after the work is already done.

Ask this paper

Key points
01

Agents keep working after passing. After its first passing self-test, Qwen3.6-27B runs 18 more commands, 42% of run cost in mini-SWE-agent and 66% in SWE-agent. In mini-SWE-agent it then submits the patch it already had in 80-87% of those runs.

02

Size of the opportunity. The hindsight saving available at a passing self-test ranges from under 1% to 57% depending on model and scaffold.

03

A simple stopping rule. Stopping once the same patch passes twice saves 23% at -1.0 points in a preregistered replication on 386 new runs. The preregistered test does not establish non-inferiority at a 2-point margin.

04

Paired replay is cheaper to evaluate. Comparing a rule with running to the end on the same runs cuts standard error 2-8x. Detecting a 2-point change takes 56 tasks offline and about 1,200 online.

Abstract

Coding agents often continue working after their own tests pass. Does this additional work improve the patch, and how much could be saved by stopping earlier? We study these questions through anytime evaluation: replaying recorded runs, scoring intermediate patches with hidden tests, and measuring the cost incurred at each step. For policies that only stop a run or select an earlier patch, this allows paired comparisons without generating new trajectories, provided replay preserves the relevant states. Across about 6,000 runs of eight open models in two scaffolds on SWE-bench Verified, we find substantial differences in the value of continued work. The hindsight saving available at passing self-tests ranges from under 1% to 57%, depending on the model and scaffold. A rule that stops after the same patch passes twice saves 23% in a preregistered replication, but the preregistered quality test does not establish non-inferiority. We explain these differences by measuring how often a rule fires, how often the patch changes afterwards, and whether those changes repair or break it. Fine-tuning agents to imitate the rule saves 30% over six seeds, while quality preservation remains uncertain. Our results help identify both the opportunities and the risks of early stopping.

Every Monday
Get next week’s papers.
Subscribe on Substack