Keep Loops RunningLoops is going viral and we need your help to keep the project free and alive.

loops!
BrowseSign in
Pre-built agent loops
Submit yours
Advertise

Stop prompting.
Start looping.

Copy closed-loop workflows for coding agents. Each loop includes triggers, feedback gates, and exit conditions so agents self-pace until the job is done.

Trending loop

Ship PR Until Green

Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.

View

Start the "Ship PR Until Green" loop.

1.9k copies

Built for agentic coders

Loops for the AI coding tools you already use.

Copy kickoffs, open in your IDE, or install hook bundles. Works best with Cursor and Claude Code; compatible with more.

Cursor
Claude Code
Codex
Gemini CLI
OpenCode

Featured loops

Battle-tested loops with copy-paste kickoffs and optional install bundles.

CI
manual
3.4k2k
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.

Start the "Ship PR Until Green" loop. Goal: PR is open with all CI checks passing Max iterations: 10 Between iterations run: gh pr checks Exit when: all PR checks are success Step 1: Implement the change, test locally, push, open PR, and fix CI until green. Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

Claude CodeCursorCodex
pr
ci
ship
continuous-claude
by loops!
View
Testing
event
Hardened
2.2k1.9k
Hook that runs tests before git commit commands to block commits when the suite is red.

Install and run the "Pre-Commit Guard" loop. Goal: block git commits when tests are failing. Between iterations run: npm test Exit when: tests exit 0 before each commit. Step 1: Before any git commit, run tests. Fix failures before committing.

CursorClaude Code
hooks
testing
git
pre-commit
by loops!
View
Testing
manual
Hardened
1.4k1.7k
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implementer's rationale.

Start the "Independent Verifier Pass" loop. Goal: build, lint, and tests pass under independent verification Max iterations: 8 Between iterations run: npm run build && npm run lint && npm test Exit when: all verifier commands exit 0 Step 1: Run build, lint, and tests as a verifier. Trust only command output, not prior claims. Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

Claude CodeCursor
verification
testing
letitloop
by loops!
View
Testing
event
Hardened
1.5k1.3k
Hook-based loop that runs related tests after file edits to catch regressions early.

Install and run the "Post-Edit Test Guard" loop. Goal: after each batch of file edits, related tests must pass before continuing. Between iterations run: npm test -- --findRelatedTests <edited files> Exit when: related tests exit 0. Step 1: After edits, run related tests. If they fail, fix before making more changes.

CursorClaude Code
hooks
testing
regression
by loops!
View
DevOps
interval
1.4k1.9k
On an interval, hit health and smoke endpoints after a deploy until all checks return healthy responses.

/loop 15m Start the "Deploy Verification Loop". Goal: all post-deploy health and smoke endpoints return success. Max iterations: 8. Between iterations run: curl -fsS <your-health-url> Exit when: every configured endpoint succeeds. Step 1: Hit health/smoke URLs. If any fail, inspect deploy logs and fix or escalate.

CodexCursorClaude Code
deploy
devops
smoke-test
by loops!
View
CI
interval
2k1.2k
Poll CI on an interval, investigate failures when checks go red, and push fixes until green.

/loop 5m Start the "CI Failure Watcher" loop. Goal: latest CI run on this branch is green. Max iterations: 12. Between iterations run: gh run list --branch $(git branch --show-current) --limit 1 Exit when: latest run conclusion is success. Step 1: Check CI status. If failed, read logs, fix root cause, verify locally, and push if needed.

CursorClaude Code
ci
github
devops
by loops!
View