From the source
Cerebras published a guide arguing that the key to effective agent loops is verification, not autonomy, and that loops only work when an agent can check its own output.
- The post traces the idea from AutoGPT in March 2023, which decomposed goals into subtasks and looped until it decided it was done, through BabyAGI and Ralph loops, to Codex's /goal and Claude Code's /loop, which it calls old loops wrapped in a better interface.
- It credits four changes for making loops practical now: multimodal models and computer use that let an agent see screenshots and rendered pages, tools such as Bash, MCPs and CLIs that give it reach, context windows large enough that memory is a given, and reasoning models trained in RL environments.
- The guide's worked example uses Gemma 4, described as Google's latest open model, running on Cerebras to turn a photo of an object into structured CAD instructions for a 3D printer.
- Each loop produced a new STEP file in about 1.2 seconds at roughly 1,500 tokens per second, and the loop rewrote its own prompt five times after inspecting the render before the printed part came out smooth and structurally sound.
- The post names two failure modes: spiralling, where a loop with no definite end state keeps improving in circles and burning tokens, and cheating, where a vague prompt gets gamed, such as a checkout test passing while a previously fixed bug is reverted.