loops!
BrowseSign in
Author
loops!
Loops shared by this builder on loops!

Published loops

40

Copies

467

Installs

63

Views

2,600

CI
manual
146 copies
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
Review
manual
80 copies
After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with project conventions.

Start the "De-Sloppify Pass" loop. Goal: recent changes are clean, minimal, and convention-aligned Max iterations: 4 Between iterations run: npm run lint && npm test Exit when: review finds no slop and checks pass Step 1: Review the diff for debug code, dead branches, and naming issues. Fix them with minimal diffs. 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
review
quality
cleanup
by loops!
View
CI
interval
38 copies
Every 15 minutes, inspect open PRs with a watch label: nudge reviewers, fix CI, rebase if behind main.

/loop 15m Start the "PR Babysitter" loop. Goal: open PRs labeled codex-watch are healthy (CI green, rebased, not stale). Max iterations: 20. Between iterations run: gh pr list --label "codex-watch" Exit when: each watched PR is green and current, or escalated. Step 1: List watched PRs. Fix CI once, rebase if behind, comment if stale. Escalate repeated failures.

CodexCursor
pr
github
ci
boris-cherny
by loops!
View
Testing
manual
Hardened
32 copies
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.

Start the "Coverage Until Threshold" loop. Goal: coverage meets the target threshold (default 80%) with all tests passing Max iterations: 12 Between iterations run: npm test -- --coverage Exit when: coverage threshold is met and tests exit 0 Step 1: Run coverage. Add focused tests for the biggest uncovered gaps, then repeat. 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
coverage
testing
quality
by loops!
View
Testing
manual
Hardened
28 copies
Run the production build, fix compile and bundling errors, and loop until the build succeeds.

Start the "Build Until Green" loop. Goal: production build succeeds Max iterations: 10 Between iterations run: npm run build Exit when: npm run build exits 0 Step 1: Run the build. If it fails, fix the first error, then repeat 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.

CursorClaude Code
build
compile
ci
by loops!
View
Planning
manual
24 copies · 9 installs
Implement from a written spec.md checklist — each iteration completes one unchecked requirement with verification.

Start the "Spec-First Ship" loop. Goal: every requirement in spec.md is implemented and checked off Max iterations: 15 Between iterations run: npm test Exit when: spec.md has no unchecked requirements Step 1: Read spec.md, implement the first unchecked item, verify it, mark [x], and stop this iteration. 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
planning
spec
requirements
by loops!
View
Testing
manual
Hardened
15 copies
Run end-to-end tests, fix UI and integration failures, and loop until the E2E suite passes.

Start the "E2E Until Green" loop. Goal: E2E suite passes Max iterations: 10 Between iterations run: npm run test:e2e Exit when: E2E command exits 0 Step 1: Run E2E tests. Fix the first failing spec, then repeat. 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.

CursorClaude Code
e2e
playwright
testing
by loops!
View
Database
manual
15 copies
Run database migrations, fix schema issues, and loop until migrations apply cleanly in dev.

Start the "Migration Until Applied" loop. Goal: all database migrations apply cleanly Max iterations: 6 Between iterations run: npx prisma migrate status Exit when: migrate status shows no pending failures Step 1: Run migrations. Fix schema or SQL errors, then repeat until status is clean. 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.

CursorClaude Code
database
prisma
migrations
by loops!
View
Testing
event
Hardened
13 copies · 1 installs
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
11 copies
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.

Start the "Format Until Clean" loop. Goal: formatter runs cleanly with no remaining diff Max iterations: 5 Between iterations run: npm run format Exit when: format command succeeds and git diff is empty Step 1: Run the formatter. Fix any issues it cannot auto-fix, then repeat. 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.

Cursor
format
prettier
quality
by loops!
View
Debugging
manual
5 copies
Write a small throwaway script to reproduce a bug, run it, read output, and iterate until the root cause is proven.

Start the "Investigation Script Loop" loop. Goal: prove the root cause with a minimal repro script Max iterations: 8 Between iterations run: node scripts/investigate.mjs Exit when: script output demonstrates root cause Step 1: Write a tiny throwaway script that reproduces the issue. Run it and iterate on what the output shows. 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.

CursorClaude CodeCodex
debugging
repro
scripts
by loops!
View
Review
manual
4 copies
Review your own diff like a senior reviewer, fix issues, and repeat for three passes before opening the PR.

Start the "PR Self-Review" loop. Goal: three clean self-review passes on the current diff Max iterations: 3 Between iterations run: git diff main...HEAD Exit when: three passes complete with no critical findings Step 1: Review the diff like a senior reviewer. Fix findings, then re-review. 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
review
pr
quality
by loops!
View
Quality
manual
4 copies
Run automated accessibility checks on changed routes, fix violations, and repeat until the audit is clean.

Start the "A11y Audit Until Clean" loop. Goal: zero serious accessibility violations on changed UI Max iterations: 8 Between iterations run: npm run test:a11y Exit when: a11y audit exits 0 Step 1: Run the a11y audit on changed routes. Fix each violation, prioritizing keyboard and screen reader issues. 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.

CursorClaude Code
a11y
quality
frontend
by loops!
View
Testing
manual
Hardened
4 copies
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
Maintenance
interval
4 copies
Weekly npm audit scan, triage vulnerabilities by severity, and propose or apply safe patches.

/loop 7d Start the "Security Audit Weekly" loop. Goal: deliver a weekly npm audit summary with a remediation plan. Between iterations run: npm audit --json Exit when: summary is posted with prioritized fixes. Step 1: Run npm audit, triage by severity, and propose safe remediation steps.

Claude CodeCursor
security
npm
audit
maintenance
by loops!
View
API
manual
3 copies
Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.

Start the "API Contract Until Match" loop. Goal: API implementation matches the published contract Max iterations: 10 Between iterations run: npm run test:contract Exit when: contract test suite exits 0 Step 1: Run contract tests. Fix each schema/response mismatch with minimal diffs, then re-run. 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.

CursorClaude Code
api
openapi
contract-testing
by loops!
View
Debugging
manual
3 copies · 1 installs
On each failed repro attempt, write a short reflection to disk, then retry with that memory — avoids repeating the same wrong fix.

Start the "Reflexion Debug Loop" loop. Goal: the failing test or repro passes Max iterations: 8 Between iterations run: npm test -- --testNamePattern=<failing-test> Exit when: the repro test exits 0 Step 1: Reproduce the bug. If it fails, append a reflection to .loops/reflexion.md before trying a new fix. 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
debugging
reflexion
memory
by loops!
View
Maintenance
interval
3 copies
Weekly loop to check outdated dependencies, propose safe upgrades, and open a summary.

/loop 7d Start the "Dependency Audit Weekly" loop. Goal: deliver a weekly dependency audit summary. Between iterations run: npm outdated || true Exit when: summary is posted with recommended upgrades. Step 1: Run npm outdated, categorize updates, and propose a safe upgrade plan.

Claude CodeCursor
dependencies
maintenance
security
by loops!
View
Maintenance
manual
3 copies
Upgrade a single outdated package per iteration, fix breakages, and commit — safer than bulk npm update.

Start the "Dependency Upgrade One-by-One" loop. Goal: critical outdated deps are upgraded with green tests Max iterations: 15 Between iterations run: npm outdated && npm test && npm run build Exit when: npm outdated shows no critical packages left or user stops Step 1: Pick one outdated package, upgrade it, fix breakages, commit, and stop. One package per iteration. 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.

CursorClaude Code
dependencies
maintenance
upgrades
by loops!
View
DevOps
interval
3 copies
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
manual
3 copies
Fetch the latest failed CI run, reproduce the failure locally, fix it, and repeat until checks pass.

Start the "Fix CI Until Green" loop. Goal: latest CI run on this branch passes Max iterations: 8 Between iterations run: gh run list --branch $(git branch --show-current) --limit 1 --json conclusion -q '.[0].conclusion' Exit when: latest run conclusion is success Step 1: Find the latest failed CI run, read logs, reproduce locally, fix root cause, push, and verify. 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.

CursorClaude Code
ci
github
fix
by loops!
View
Security
manual
3 copies
Fix high/critical npm audit findings one at a time with test verification — not a blind npm audit fix --force.

Start the "npm Audit Fix Loop" loop. Goal: no high or critical npm audit vulnerabilities Max iterations: 10 Between iterations run: npm audit --audit-level=high && npm test Exit when: npm audit reports no high/critical issues Step 1: Pick one high/critical advisory, apply the safest fix, run tests, and repeat. 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.

CursorClaude Code
security
npm
audit
by loops!
View
DevOps
manual
3 copies
Run a fixed smoke checklist against staging after deploy: auth, core flows, and error budgets.

Start the "Staging Smoke Test" loop. Goal: staging smoke checklist passes Max iterations: 6 Between iterations run: npm run smoke:staging Exit when: smoke command exits 0 Step 1: Run the staging smoke checklist. Fix the first failing item, then repeat. 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.

CursorClaude Code
staging
smoke-test
deploy
by loops!
View
Testing
manual
Hardened
3 copies · 0 installs
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.

Start the "Test Until Green" loop. Goal: all tests pass Max iterations: 10 Between iterations run: npm test Exit when: tests exit 0 Step 1: Run tests. If there are failures, fix the smallest root cause, then repeat. 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.

CursorClaude Code
testing
tdd
ci
by loops!
View
Testing
event
Hardened
2 copies · 1 installs
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.

Install and run the "Post-Merge Regression Guard" loop. Goal: smoke tests pass immediately after every merge or rebase. Between iterations run: npm run test:smoke Exit when: smoke suite exits 0. Step 1: After a merge, run smoke tests. Fix regressions before continuing other work.

CursorClaude Code
hooks
testing
git
merge
by loops!
View
Testing
manual
Hardened
2 copies
Run Playwright or Percy visual snapshots on UI changes; fix unintended diffs until baselines match intentionally.

Start the "Visual Regression Until Match" loop. Goal: visual regression suite passes with intentional UI only Max iterations: 6 Between iterations run: npx playwright test --grep @visual Exit when: visual tests exit 0 Step 1: Run visual tests. Fix unintended UI diffs; update baselines only for deliberate design changes. 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.

Cursor
testing
visual
playwright
ui
by loops!
View
Performance
manual
2 copies
Ship features without bloating the client bundle — loop until size checks pass under your budget threshold.

Start the "Bundle Size Budget" loop. Goal: client bundle stays under the size-limit budget Max iterations: 6 Between iterations run: npm run build && npm run size-limit Exit when: size-limit exits 0 Step 1: Build and measure bundle size. If over budget, lazy-load or trim deps until size-limit passes. 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.

Cursor
performance
bundle
frontend
by loops!
View
Automation
manual
2 copies · 0 installs
When a check fails twice the same way, append a guardrail sign to .ralph/guardrails.md so the next iteration avoids repeating it.

Start the "Guardrails Learning Loop" loop. Goal: tests and lint pass without repeating prior failure patterns Max iterations: 12 Between iterations run: npm test && npm run lint Exit when: all checks pass Step 1: Read .ralph/guardrails.md, run checks, and if a failure repeats, add a sign before fixing. 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.

CursorClaude CodeCodex
ralph
guardrails
learning
by loops!
View
API
manual
2 copies
Keep openapi.yaml valid and in sync with route handlers — lint the spec and fix drift each pass.

Start the "OpenAPI Sync Until Valid" loop. Goal: openapi.yaml lints clean and matches implemented routes Max iterations: 8 Between iterations run: npx @redocly/cli lint openapi.yaml Exit when: OpenAPI lint exits 0 Step 1: Lint openapi.yaml. Fix spec errors and handler drift until lint passes. 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.

Cursor
api
openapi
docs
by loops!
View
Testing
manual
Hardened
1 copies
Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.

Start the "Autoloop TDD" loop. Goal: implement the target behavior test-first with a green suite Max iterations: 12 Between iterations run: npm test Exit when: target behavior is covered and all tests pass Step 1: Write a failing test for the next behavior, implement the minimum code to pass, refactor, and repeat. 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
tdd
testing
red-green-refactor
by loops!
View
CI
interval
1 copies · 0 installs
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
Maintenance
manual
1 copies
After code changes, find affected docs and update README, API references, and inline comments to match.

Start the "Docs Sync After Edits" loop. Goal: documentation matches the current code changes Max iterations: 3 Between iterations run: git diff main...HEAD --name-only Exit when: all affected docs are updated and verified Step 1: Review the diff, find stale docs, update them, and verify accuracy. 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.

Cursor
docs
maintenance
sync
by loops!
View
Maintenance
manual
1 copies
Find and remove dead exports, unused files, and orphan dependencies — loop until knip reports clean.

Start the "Knip Until Clean" loop. Goal: knip reports no unused code or dependencies Max iterations: 5 Between iterations run: npx knip Exit when: knip exits 0 Step 1: Run knip. Remove dead exports and unused deps with minimal diffs; verify tests still pass. 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.

Cursor
maintenance
dead-code
deps
by loops!
View
Testing
manual
Hardened
1 copies
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.

Start the "Lint and Typecheck Fix" loop. Goal: lint and typecheck are clean Max iterations: 8 Between iterations run: npm run lint && npx tsc --noEmit Exit when: both commands exit 0 Step 1: Run lint and typecheck. Fix reported issues with minimal diffs, then repeat. 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.

Cursor
lint
typescript
quality
by loops!
View
Testing
event
Hardened
1 copies · 0 installs
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
CI
interval
1 copies
Poll open PRs labeled codex-watch every 15 minutes, review activity, and flag regressions or stale threads.

/loop 15m Start the "PR Watch Loop". Goal: keep codex-watch PRs healthy and unblocked. Between iterations run: gh pr list --label codex-watch --json number,title,state,statusCheckRollup Exit when: status report is delivered for every watched PR. Step 1: List codex-watch PRs, check CI and reviews, and report or fix trivial blockers.

CodexCursor
ci
pr
watch
codex
by loops!
View
Testing
manual
Hardened
0 copies
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.

Start the "Flaky Test Triage" loop. Goal: classify failing tests as flaky vs real and fix only real regressions Max iterations: 5 Between iterations run: npm test -- --testPathPattern=<failing-suite> Exit when: every failure is classified and real regressions are fixed or explicitly deferred Step 1: Run the failing suite multiple times. Classify each failure, fix real ones, and document flaky behavior. 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
testing
flaky
triage
by loops!
View
Automation
manual
0 copies · 1 installs
Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and update progress before the next iteration.

Start the "Ralph Story Executor" loop. Goal: every story in .ralph/prd.json has passes: true Max iterations: 20 Between iterations run: npm test && npm run lint && npm run build Exit when: no stories remain with passes: false (respond "ALL STORIES ARE COMPLETE") Step 1: Read .ralph/prd.json and .ralph/progress.md. Pick one incomplete story, implement it, run backpressure checks, commit, update prd.json and progress.md, then stop this iteration. Self-pace this loop. Each iteration does exactly one story. State lives on disk, not in chat history.

CursorClaude CodeCodex
ralph
automation
prd
fresh-context
by loops!
View
Docs
manual
0 copies
After shipping a feature, loop until CHANGELOG.md has a user-facing entry and conventional commits are reflected.

Start the "Changelog Sync After Ship" loop. Goal: CHANGELOG.md has accurate [Unreleased] entries for this ship Max iterations: 3 Between iterations run: git log -5 --oneline Exit when: changelog covers all user-visible changes Step 1: Review recent commits, write Keep-a-Changelog entries for user-visible changes, and verify completeness. 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
docs
changelog
release
by loops!
View
Git
manual
0 copies
Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.

Start the "Merge Conflict Resolver" loop. Goal: branch is rebased on main with no conflicts and tests pass Max iterations: 8 Between iterations run: npm test Exit when: rebase completes and tests exit 0 Step 1: Rebase on main. Resolve conflicts one file at a time, run tests, continue. 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.

CursorClaude Code
git
rebase
merge
by loops!
View