Skip to Content
loop.fun
Patterns

Loop patterns

The recurring shapes that agentic loops take. Each is a different answer to "what triggers the next iteration, and what ends it?"

Every loop answers two questions: what triggers the next iteration and what ends it. The patterns below are the common answers. They mix freely: a Ralph loop can contain a maker/checker step, a heartbeat can start a goal loop, and a graph is mostly loops wired together.

PatternNext iteration triggered byEnds whenTypical use
Ralph loopThe previous iteration endingCompletion promise, iteration cap, or neverGrinding through a backlog or spec
Maker/checkerThe checker rejecting the workThe checker approvesAnything where quality matters
Metric loopA finished experimentBudget exhausted; best result keptOptimisation with a clear number
Ambient loopA timer or an eventNever; it's a standing processBabysitting, monitoring, inboxes
Graphs and teamsAn orchestrator, or another nodeThe orchestrator decidesLarge or parallel projects

Know a pattern that's missing?

Patterns emerge from practice. If you've been running a shape that isn't here, tell us about it in a field report.

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0