Skip to main content
Loops let agents repeat actions until a goal is achieved.

Quick Start

1

Simple Loop

2

With Counter


How It Works


Configuration


Common Patterns

Refinement Loop

Retry Pattern


Best Practices

Prevents infinite loops from runaway agents.
Make stop conditions obvious and testable.

Conditions

Conditional logic

Parallel

Parallel execution