Explaining Four Agent Loop Structures

theomitsa · x · 2026-07-14

This is a deep dive into agent loop engineering, arguing that while people often treat it as a single concept, it's actually about choosing different loop structures tailored to specific tasks.

The article introduces a decision framework: any loop must answer two questions—who triggers the run, and who decides when the work is done. In manual runs, humans answer both; the goal of loop design is to hand over more of these decisions to the system.

It outlines four structures:

A quote from Boris Cherny (builder of Claude Code) notes that he no longer "prompts Claude" but instead "engineers loops," highlighting a shift from writing prompts to designing agentic systems.

Related event: Deep Dive into Four Core Agent Loop Architectures(3 posts)→

Original post →

More from coding & agent

coding & agent channel →