LOOPS

Self-pacing agent workflows. Copy a loop, paste it into your agent, let it run.

Compatible tools

Works with your agent

Claude Code
Cursor
Codex
Gemini CLI

What are loops

Autonomous agent workflows that iterate until done

A loop is a structured prompt that tells an AI coding agent (Claude Code, Cursor, Codex, Gemini CLI) to repeat a task autonomously until a measurable exit condition is met. Instead of prompting, inspecting, re-prompting manually — you define the goal, the check command, and the exit condition, then let the agent self-pace.

How it works

The loop execution cycle

1
Define goal + exit condition
What does 'done' look like? A passing test suite, a clean audit, a merged PR.
2
Set the check command
The command the agent runs between iterations to evaluate progress.
3
Agent executes a step
The agent does one unit of work — fix a bug, write a test, tighten a constraint.
4
Agent self-evaluates
Runs the check command, reads output, decides: continue or stop.
5
Loop or exit
If exit condition is not met and iterations remain, the agent continues. Otherwise it stops and reports.
4 loops

Agent Output Validator

Run agent, validate output against schema/checklist, feed corrections back. Loop until passes.

AgenticManual|Claude CodeCursor
See details

Context Compression Loop

Iteratively summarize/compress project context until it fits target token budget.

AgenticManual|Claude CodeCursor
See details

Multi-Agent Coordinator

Orchestrate parallel agent tasks. Loop until all subtasks complete and merge cleanly.

AgenticManual|Claude CodeCodex
See details

Prompt Regression Suite

Run prompt against test cases, fix regressions until all pass.

AgenticManual|Claude CodeCursor
See details