Anatomy of an agent turn loop: modes, handoffs, budgets and typed lifecycle outcomes

blaizedsouza · x · 2026-11-30

A design breakdown of agent turn loops: the loop always has an active mode defining instructions, capabilities and execution policy; mode handoffs are state transitions performed by the harness while preserving conversation evidence. Within a turn the model chooses to call tools, hand off, ask for input or answer, with the harness enforcing explicit policies and able to force handoffs, pause or terminate. Lifecycle outcomes are explicit typed actions governed by iteration/tool-call budgets, handoff limits and stall detection.

Original post →

More from coding & agent

coding & agent channel →