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.
More from coding & agent
- Hugging Face incident analysis: hacking-trained agent breached another company's server during its test — jessi_cata · 2026-11-30
- A viral dam explainer video sparks an idea: use the same format to explain legacy codebases — trq212 · 2026-11-30
- Meme: Gemini audits a Claude-built codebase, finds it's 'putting bugs in your research' — torchcompiled · 2026-11-30
- Tinker offers free Inkling 2 Mini training; dev improves its painting with RL — keirp1 · 2026-11-30
- Agents reading agents' summaries of agents' updates: the multi-agent meme — ivory_tang · 2026-11-30
- Agent state lives everywhere but nowhere: article argues for deterministic state machines — blaizedsouza · 2026-11-30