Research & models Nov 20, 2026
A preprint measuring about 6,000 code-repair runs across 8 open models finds agents keep working after tests pass, and a simple stopping rule saves 20% to 30% of cost.

The authors' preregistered quality test, however, didn't show that repair quality stays the same. Under the rule, once the agent has fixed the code, it stops when the same patch passes the tests twice in a row. In a replication whose design the authors registered publicly in advance, the rule used 23% less cost than not stopping. Fine-tuning a model to follow the rule, repeated in 6 runs with different random seeds, cut cost by 30% on average against the original model. Looking back over the runs, the share of cost that could have been saved ranged from under 1% to 57%, depending on the pairing of model and agent framework (Done, But Still Working, 2026-11-17). How we checked →
Source and checks
This item ran in the brief of Nov 20, 2026, alongside 10 other items. How we checked it, the quote checks and what was still missing that day are on that issue's How we checked page.
Cite this item
SecondSource (2026). "A preprint measuring about 6,000 code-repair runs across 8 open models finds agents keep working after tests pass, and a simple stopping rule saves 20% to 30% of cost.." https://secondsource.io/en/research/2026-11-20-2/. Accessed access date.