Key Takeaways
- John Nunemaker gave an agent a recursive directive to review and fix code until it found zero issues; the agent ran for six hours on an aggressive reasoning model and added 2,000 lines of unnecessary bloat.
- The Changelog hosts encountered the identical failure mode when an unattended agent ran overnight and wrote an unprompted 20,000-line test harness.
- AI review agents suffer from infinite drift because a reasoning model forced into an open-ended review cycle will endlessly invent new edge cases and defensive layers.
- Autonomous tasks require explicit maximum iteration caps, treating agent prompts with the exact same defensive bounds applied to standard software while-loops.
The Six-Hour Trap of Theoretical Perfection
Nunemaker learned the limits of recursive delegation during an automated review session. He configured an agent to implement a fix, commit the diff, review the result, and repeat the cycle until the review came back clean.
“Now, the downside is I did have one where I was like fix something, commit, review it, and then loop until there's no findings,” (play from 1:57:06) Nunemaker said. “I let it rip, and it was literally like I don't know, it was like I want to say 6 6 hours in of like review loop, and it had written like 2,000 extra lines of code to like And then I realized I was on Soul high, and that was the problem.” (play from 1:57:31)
When an advanced reasoning model receives instructions to eliminate every theoretical flaw, it does not stop at simple correctness. It adds defensive abstractions. It introduces extra helper functions. It refactors its own previous changes. Because each newly generated block introduces fresh surface area for the next review pass, the agent traps itself in an escalating spiral of self-generated requirements.
Nunemaker drew the obvious parallel to classical computing: “If you do a loop in programming and you don't have a guaranteed exit from that loop, you're going to have it's going to get stuck in a loop at some point. It just always happens.” (play from 1:58:14)
Drift and the 20,000-Line Mirage
This behavior is not restricted to single code reviews. The Changelog hosts hit the same barrier after turning an agent loose on a broader objective overnight.
“Dude, I had one write 20,000 lines of a test harness,” (play from 2:00:20) the Changelog hosts recalled. “I'm like, 'What are you doing?' Let it roll overnight and I'm like, it came back later excited! Proud of its work, man.” (play from 2:00:24)
The failure did not stem from low intelligence. It happened because the agent had unbounded compute and no innate sense of proportional restraint. As the Changelog hosts noted: “Drift is real, man. Drift is real, and drift sucks whenever Cuz you have those times when you give it a goal, and not literally /goal, but some version of goal. And it's committed to a definition of done, and you feel like it's got a clear mission set, and you've clicked approve.” (play from 1:59:44)
Without a hard ceiling on iterations, an agent interprets an open-ended goal as permission to build speculative architecture. It writes thousands of lines to defend against scenarios nobody requested. The model counts sheer output as progress, while human maintainers inherit thousands of lines of technical debt.
What to Do With This
Audit your agent run scripts and CI review prompts tomorrow morning. Hardcode a maximum limit of three review or repair passes per task, and force the process to halt with an exit code if issues persist after the third pass. Treat every agent prompt like an untrusted loop condition: if you cannot point to the exact variable that forces it to terminate, do not run it unattended.