Learn what loops are, how they work, and why they make AI-assisted coding more effective.
A loop is a pre-built kickoff prompt that instructs an AI coding agent (like Cursor, Claude Code, or Codex) to perform a task iteratively. The agent checks its progress after each iteration and continues until the exit condition is met β or the maximum number of iterations is reached.
Think of loops as recipes for autonomous coding. Instead of manually guiding the agent step-by-step, you give it a loop and let it self-pace through the work.
Every loop has the same basic structure:
Loops work with any AI coding agent that supports multi-turn conversations. The most popular agents include:
Some loops are marked as "Hardened". These have been tested extensively and include additional guardrails to prevent common failure modes. They are recommended for production workflows.
Loops data is sourced from loops.elorm.xyz, an open community project by elorm. We sync the latest loops regularly to keep this hub up-to-date.