MCP.so
Sign In

Loops

Reusable prompts and step-by-step workflows that let coding agents self-pace through a task until it's done.

Frequently asked questions

Common questions about reusable Loops for AI coding agents

1

What is a loop, exactly?

A loop is a reusable workflow for AI coding agents built around four parts: a goal, a check command that objectively verifies progress, an exit condition, and a max-iteration limit. Paste the kickoff prompt into your agent and it self-paces through the task, re-running the check command after each pass until the exit condition is met.

2

How is this different from writing a normal prompt?

A normal prompt is one instruction for one turn. A loop is the system around repeated turns — it tells the agent how to verify its own work and when to stop, so it can keep going without you re-prompting it after every attempt. This practice is known as loop engineering.

3

Which coding agents do these loops work with?

Most loops on this page are agent-agnostic — the kickoff prompt is plain text you can paste into Claude Code, Cursor, Codex, or any other coding agent. Each loop's page lists which agents it was specifically built and tested for.