SecondSourceJudgment rebuilt from primary sources

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.

Concept illustration: a large board divided by a vertical line into two panels stands in a black tray lettered PREPRINT, and in each panel an open laptop sits on a shelf with a red sheet bearing four white lines hanging from a small square clip below it. The left laptop's black screen holds six stacked grey speech bubbles, each with a white line, and the red sheet beneath it is long; the right laptop's screen holds a single grey speech bubble at the top, a small white sign lettered STOP RULE stands beside that laptop, and the red sheet beneath it is shorter. Printed on the image: 23% lower Coding agents' cost under a stopping rule vs not stopping, measured by the preprint's authors.

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.