Summary article

Claude Code's practical taxonomy for loops

July 7, 2026

Anthropic's Claude Code team gives a crisp definition of loop engineering: agents repeat cycles of work until a stop condition is met. Their four loop types clarify what the human hands off to the harness: the check, the stop condition, the trigger, or the work stream.

The Claude Code team published a useful short definition of what “designing loops” actually means:

agents repeating cycles of work until a stop condition is met.

That definition matters because it keeps loop engineering grounded. A loop is not just a bigger prompt, and it is not just while True around an LLM. It is repeated agent work plus a trigger, a stop condition, a fitting primitive, and a task shape.

This is a good companion to last week’s post, Loop engineering is harness engineering plus time, because Anthropic’s taxonomy gives names to the practical handoffs inside the harness.

Their four loop types

1. Turn-based loops

This is the default coding-agent interaction.

Their improvement pattern is to encode manual verification into SKILL.md.

Example: instead of saying “make a frontend change,” create a skill that requires Claude to:

This maps well to the previous post’s point that a useful loop has a skeptic in the path.

2. Goal-based loops

This is /goal.

Example:

/goal get the homepage Lighthouse score to 90 or above, stop after 5 tries.

Key point: deterministic criteria are especially effective — test counts, score thresholds, explicit turn caps.

This is very aligned with the argument that goal completion belongs in the harness.

3. Time-based loops

This is /loop locally and /schedule in the cloud.

Example:

/loop 5m check my PR, address review comments, and fix failing CI

They also distinguish local vs cloud:

This fits the earlier section on durable execution: once the loop leaves the current agent session, the trigger and runtime become part of the design.

4. Proactive / composed loops

This is the most advanced form.

Their example is basically:

/schedule every hour: check #project-feedback for bug reports.
/goal: don't stop until every report found this run is triaged, actioned, and responded to.
When fixing a bug, use a workflow to explore three solutions in parallel worktrees
and have a judge adversarially review them.

That is a strong official Claude Code example of loop composition:

schedule → goal → skills → parallel agents → adversarial judge

It connects directly to the previous post’s sections on observability as the trust layer and loops amplifying judgment.

Quality guidance

They emphasize that loop quality depends on the surrounding system:

This strongly supports the article’s framing:

The model reasons. The harness prepares context, executes actions, persists state, enforces limits, and decides when the model has gone in circles.

Token / cost guidance

Their usage-management advice:

This gives a concrete Claude Code version of the earlier argument that a useful loop needs a skeptic before it earns more autonomy and that cost control is architecture.

The useful handoff framing

The cleanest takeaway is this taxonomy:

Claude Code loop type What the human hands off
Turn-based the check
Goal-based the stop condition
Time-based the trigger
Proactive/composed the work stream / prompt source

That turns “designing loops” into a practical question:

Which part of the repeated work are you handing to the harness: verification, stopping, triggering, or task discovery?

That is a concise operational definition of loop engineering.

Sources