On Friday, Claude Code creator Boris Cherny made an look at Meta’s @Scale convention and, surprisingly, the primary query from the viewers was about loops.
“Are loops the subsequent hype cycle,” the questioner requested, “or are they for actual?”
Cherny’s reply was an emphatic, “Sure, they’re for actual.”
“Two years in the past, we wrote supply code by hand. We began to transition so brokers write the code. And now we’re transitioning to the purpose the place brokers are prompting brokers that then write the code,” he continued. “As massive because the step from supply code to brokers was, loops are simply as vital and as massive a step.”
Later within the speak (across the 32:00 mark within the YouTube video posted above), Cherny bought particular in regards to the loops he retains operating in his personal work. One agent is frequently searching for methods to enhance the code structure, whereas one other seems to be for duplicated abstractions that may be unified. They submit pull requests like some other coder, and because the code is consistently altering, they by no means cease operating.
It’s a robust thought, significantly with a determine as important as Cherny behind it. With the shift to agentic AI, the main focus for many customers has been managing their brokers in addition to doable: set up clear targets, test in on discrete items of progress, and don’t allow them to stray too far past the immediate. The loop takes it a step additional by authorizing a swarm of brokers to work constantly within the background, endlessly. It’s loads of belief to position in AI — however with fashions getting higher quick, it may very well be the subsequent step in getting AI to deal with actual work.
The very first thing to acknowledge is that this isn’t totally new. Recursive loops — capabilities that decision themselves to be able to repeat an motion, together with a situation that stops the loop — are a mainstay of intro pc science programs. These loops are following a non-deterministic logic — that’s, it’s a subagent that chooses when to cease the loop as a substitute of a transparent situation — however the identical fundamental method is at work. As quickly as programmers began utilizing AI to finish duties, some model of the recursive loop, with AI overseeing AI, was certain to come back up.
In contrast to traditional computing, agentic loops could be maddeningly easy. Some of the fashionable tips is the Ralph Loop (named for Ralph Wiggum), which mainly sums up all of the work that the mannequin has performed and asks if it’s completed its aim. It’s a means of coping with AI fashions getting misplaced as they run for too lengthy — primarily bouncing the mannequin forwards and backwards till the duty is full.
One other means to think about loops is as a part of the overall push for extra test-time compute. As OpenAI researcher Noam Brown noticed earlier this month, up to date fashions can remedy almost any drawback for those who throw sufficient compute at them. Meaning a method to make sure an issue will get solved is to simply maintain throwing compute at it till it’s completed. That’s significantly true for hill-climbing issues like enhancing a code base, the place the mannequin can simply maintain making incremental enhancements till it reaches a given threshold. Or, as in Cherny’s instance, it could possibly simply maintain making incremental enhancements for so long as there’s compute to spend on it.
If that sounds costly, it ought to. Like agentic AI earlier than it, AI loops burn by way of tokens loads quicker than easy Q&A chatbots — and since the purpose is to maintain the loop operating on a regular basis, there’s no ceiling to how a lot you may spend. That’s tremendous for Anthropic, which is in the end within the token-selling enterprise, however for everybody else, it might be a dear technique to work.
Nonetheless, relying on the issue the agentic loop is making an attempt to unravel, and the suitable setup that permits for oversight of token spend, drift, and different traditional AI points, the advantages may very well be staggering sufficient to outweigh the prices.
If you buy by way of hyperlinks in our articles, we may earn a small commission. This doesn’t have an effect on our editorial independence.

