Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
TL;DR - An anytime evaluation of roughly 6,000 coding-agent runs finds that early stopping can substantially reduce costs, but may compromise patch quality. The benefits vary widely by model and scaffold.
- Hindsight savings after self-tests passed ranged from under 1% to 57%.
- Stopping after the same patch passed twice saved 23% in a preregistered replication, but non-inferior quality was not established.
- Fine-tuning agents to imitate this stopping rule saved 30% across six seeds, with quality preservation still uncertain.
- Replay-based evaluation enables paired comparisons of intermediate patches using hidden tests without generating new trajectories, provided relevant states are preserved.