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.

Testing

Testingmanual

Build Until Green

Run the production build, fix compile and bundling errors, and loop until the build succeeds.

CursorClaude Code
Testingmanual

Coverage Until Threshold

Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.

Claude Code
Testingevent

Pre-Commit Guard

Hook that runs tests before git commit commands to block commits when the suite is red.

Cursor
Testingevent

Post-Edit Test Guard

Hook-based loop that runs related tests after file edits to catch regressions early.

Cursor
Testingmanual

Format Until Clean

Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.

Cursor
Testingmanual

Flaky Test Triage

Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.

Claude CodeCursor
Testingmanual

Autoloop TDD

Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.

Claude Code
Testingevent

Post-Merge Regression Guard

Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.

Cursor
Testingmanual

Independent Verifier Pass

When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implementer's rationale.

Claude Code
Testingmanual

Test Until Green

Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.

CursorClaude Code
Testingmanual

Lint and Typecheck Fix

Run lint and typecheck, fix reported issues, and loop until the codebase is clean.

Cursor
Testingmanual

Visual Regression Until Match

Run Playwright or Percy visual snapshots on UI changes; fix unintended diffs until baselines match intentionally.

Cursor
Testingmanual

E2E Until Green

Run end-to-end tests, fix UI and integration failures, and loop until the E2E suite passes.

Cursor

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.