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

Zerui Yang, Quan Xue, Miaomiao Dong, Chaorui Zhang, Xuanyu Zheng +7 more
11/17/2026
cs.AI

No confident code implementation found for this paper.

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?

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2026done,
  title  = {Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop},
  author = {Zerui Yang and Quan Xue and Miaomiao Dong and Chaorui Zhang and Xuanyu Zheng and Xiyuan Wang and Haolin Ruan and Xueyan Niu and Guangcheng Song and Weixi Zhang and Wei Han and Bo Bai},
  year   = {2026},
  eprint = {2611.22901},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.22901v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.22901.svg)](https://codeofpaper.com/paper/2611.22901)

Discussion