Claude Code Redefines Agent Loops
新智元 · wechat · 2026-07-16
The Claude Code team formally defines a "loop" as an agent repeatedly executing work until a stopping condition is met, summarizing four typical loop types:
- Turn-based loops: Human controls each turn, with every prompt triggering a round of execution.
- Goal-based loops: An evaluator decides whether to continue based on whether a goal is met.
- Time-based loops: Triggered at fixed intervals, similar to cron jobs.
- Active loops: Triggered by events or time, running unattended until manually shut down.
The article emphasizes that the focus isn't simply "letting AI run continuously," but rather on designing guardrails: machine-checkable completion conditions, maximum turns, spending caps, no-progress detection, and automatically verifiable feedback mechanisms. The author believes AI programming is shifting from writing prompts to designing behavioral systems: how to trigger, verify, and stop.
Related event: From Prompt Engineering to Loop Engineering(6 posts)→
More from coding & agent
- Kernel integrates Stripe Link so browser agents can pay with one API call — jeff_weinstein · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- The full prompt-to-3D-game workflow: Hyper3D Rodin MCP plus Codex, no reference image — FellMentKE · 2026-09-11
- Building a 3D landing page with GPT-6 Astra and Hyper3D Rodin MCP, no modeling needed — FellMentKE · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11