LOOPS

The graded index of
agent loops for Claude Code & Codex.

Every entry scored A–F for safety, for Claude Code and Codex. Search, grade, and generate 246 agent loops without leaving your terminal.

install.loop
# connect in Codex, Cursor, or any MCP client
https://mcp.looprepo.dev/mcp
# one-line plugin for Claude Code & Cowork — coming soon
/plugin install looprepo@loopssoon
  1. 1. install once
  2. 2. search or generate in-agent
  3. 3. run only what passes the gate
246loops
129safe picks (A/B)
24categories
A–Fevery loop graded

Curated from Forward Future, GitHub, X, Hacker News & community submissions — deduped, attributed, and safety-graded.

Not a developer? Start with Claude Intake →

/loopiteration budgetexit conditionhandoff.mdsafety Bstop when greenObserveActCheckcheck passesdone
A loop observes, makes one bounded change, and runs a fixed check — repeating only while progress and the iteration budget hold, then stopping the moment the check passes.
Not sure which loop?
newClaudeClaude CodeCoworkMCP

Turn any Claude workflow into the right loop

Paste a read-only intake prompt into someone's Claude context, capture the evidence, then call looprepo MCP to return ranked real loops, safety checks, and a harness-ready goal for that specific use case.

Recently added

Build the user profile page

Loop/ralphnew

Ralph autonomously constructs the user profile page and halts on completion promise signal.

prompt
→ Claude
/ralph-loop "Build the user profile page. Output <promise>DONE</promise> when complete." --completion-promise "DONE" --max-iterations 20
productmedium riskclaude-code

Fix the auth bug in auth.ts

Loop/ralphnew

Debug and resolve authentication failures in auth.ts until the issue is resolved.

prompt
→ Claude
/ralph-loop "Fix the auth bug in auth.ts" --max-iterations 10
debuggingmedium riskclaude-code

Test all endpoints

Loop/goalnew

Run tests against every API endpoint until coverage is complete or you hit 30 iterations.

prompt
→ Claude
/goal all endpoints tested or stop after 30 turns
testingmedium riskclaude-code

Ship production-grade apps autonomously

Loop/ralphnew

Hand an idea to Claude Code; it authors specs, designs, builds, tests, secures, and ships until enterprise done or budget exhausted.

prompt
→ Claude
# dare-to-be-stupid — Design (v2, refined) > A Claude Code plugin. One command, /dare , hands an idea or PRD to an autonomous > loop that authors specs, designs, builds, tests, secures, ships, fixes, and iterates > until the app passes an enterprise-production definition of done — or the budget dies. > > Named for the Weird Al song. The joke is that it runs the Ralph Loop on purpose , > with --dangerously-skip-permissions , and narrates the whole thing in the voice of an > '80s Junkion. Pre-production only. Never points at anything with users. This is v2. It keeps the strong core of the original spec (external reviewer, ratchet, guard hook, Junkion style) and adds the three phases the original left thin relative to the actual goal: PRD authoring, a design phase, and a real enterprise DoD including security, CI, docs/observability, and design quality (with quality plugins auto-installed). --- ## 0. The premise, in one paragraph The User builds documentation-first: spec → system docs → API contracts → CLAUDE.md → code. dare-to-be-stupid is the deliberate inverse, packaged as comedy that also solves two real engineering problems. It is a real build , not a joke ar
automationhigh riskclaude-code

Work clinical guidelines to completion

Loop/goalnew

Process American clinical guidelines through the pipeline, fanning work to teammates, until every guideline is done, blocked, or excluded.

prompt
→ Claude
/goal Process American clinical guidelines through the pipeline as described in README.md "Operating", fanning bulk work out to teammates per .agent/rounds.md: work the in-progress source document to full coverage before fetching the next; done only when every fetched guideline is complete, every remaining .agent/queue.md entry is a recorded blocker, and the compendium exhaustion clause in .agent/compendium.md "Protocol" holds: every guideline row of .agent/compendium.tsv done, blocked, or excluded, and every organization row terminal
datamedium riskclaude-code

Complete PLAN.md until tests pass

Loop/goalnew

Work through every task in PLAN.md, pausing for credentials or destructive actions, until pnpm test and pnpm build both succeed.

prompt
→ Claude
/goal Implement every task in PLAN.md without stopping until pnpm test passes and pnpm build succeeds. Execution strategy: assess dependencies, shared context, write overlap, and independent verification before using subagents; keep final integration with the main agent. Surface each checkpoint with commands and exit codes. Pause for credentials, production data, or destructive actions
testinghigh riskclaude-code

Top loops this week

Address review comments, fix CI

Loop/loop

Check your PR for new comments and CI failures, address them, then loop every 5 minutes until all pass.

prompt
→ Claude
/loop 5m check my PR, address review comments, and fix failing CI
reviewmedium riskclaude-code

Draft a sprint plan from the backlog

Loop/goallooprepo

Turn the open issue backlog into a proposed two-week sprint plan with estimates, a dependency ordering, and an explicit cut line, written as a document for the team to edit.

prompt
→ Claude
/goal SPRINT-PLAN.md contains a proposed 2-week plan — read all open issues labeled `ready`, estimate each as S/M/L based on the code it touches, order them by dependency and value, draw a cut line at a realistic capacity, and list what falls below it with reasons; make no changes to the issues themselves; stop after 6 turns
planninglow riskclaude-codecodex
1

Execute feature phases autonomously

Loop/ralph

Run Claude Code through all planned phases of a feature until completion or max iterations.

prompt
→ Claude
/ralph-loop my-feature # Run until all phases complete (max 50 iterations
automationmedium riskclaude-code
1
Sponsored · ConnectMyEmail

Loops that read your inbox.

Email is the missing tool in your harness. ConnectMyEmail gives Claude Code and Codex a clean MCP into Gmail, Outlook, iCloud and IMAP — triage, drafts, follow-ups, on a loop.

connectmyemail.com →

Fix the auth bug in auth.ts

Loop/ralphnew

Debug and resolve authentication failures in auth.ts until the issue is resolved.

prompt
→ Claude
/ralph-loop "Fix the auth bug in auth.ts" --max-iterations 10
debuggingmedium riskclaude-code

Re-run PR review on schedule

Loop/schedule

Re-invoke a specific PR review skill every 20 minutes until the review completes or you stop it.

prompt
→ Claude
/loop 20m /review-pr 1234 , to re-run that skill each iteration. {/ min-version: 2.1.196 /}As of v2.1.196, a scheduled fire only runs skills that Claude is [allowed to invoke on its own](/en/skills#control-who-invokes-a-skill). The following reach Claude as plain text instead of executing

Rebase train conductor

Loop/looplooprepo

Keep a stack of feature branches rebased in order as their parents merge, resolving trivial conflicts and flagging risky ones for a human.

prompt
→ Claude
/loop 15m for each branch listed in .rebase-train (in order), rebase it onto its updated parent, resolve only trivial conflicts (imports, formatting, lockfiles), run the test suite, and push with `--force-with-lease`; if a conflict touches logic, stop that branch and leave a summary comment on its PR instead
gitmedium riskclaude-codecodex

Every loop here carries a Safety Score

A library tells you what a loop says. looprepo tells you whether it's safe and likely to work. Each loop in the directory is graded A-F by the same default-fail evaluator that gates submissions: exit conditions, iteration budgets, verification commands, scoping, human gates. Paste any loop — yours or one you found anywhere — and get a full review — review my loop →

The only generator that ships the full harness — free

Anyone can hand you a prompt. The looprepo Builder ships the whole thing, for Claude Code or Codex: CLAUDE.md with PreToolUse safety hooks and slash commands — or AGENTS.md with a sandboxed codex-exec runner — plus a fresh-context evaluator that fails by default, handoff notes, a prd.json, stop conditions and an iteration budget. Safe loops, not runaway agents. Try it →

Loop of the Week, by email

One email a week. One-click unsubscribe, anytime.