Claude Code team breaks agent loops into four types, from manual to fully autonomous
Claude Code 团队详解四种智能体循环类型
The Claude Code team defines a 'design loop' as an agent repeating work until a stop condition is met, and splits it into four types. Turn-based loops are manually prompted, with Claude deciding when it's done—good for short tasks, and verifiable via SKILL.md files. Goal loops use /goal, stopping when the goal is hit or max turns reached, requiring deterministic criteria like test pass counts. Time loops use /loop and /schedule to run on intervals, suited for syncing messages or checking PRs, and can run in the cloud. Proactive loops trigger on events or schedules with no human in the loop; each subtask exits independently. The team recommends starting simple and only adding complexity when needed.
Why it matters: The Claude Code team separates manual turns from goal-driven loops, folding how task completion is judged and when to stop into agent workflow design.