Loop directory

11 loops match your filters.

Map integrations across codebases

Loop/ralphnew

Run a synthesis prompt across all codebases until you have a complete integration map, with no iteration cap.

prompt
→ Claude
/ralph-loop "<synthesis prompt>" --completion-promise "INTEGRATION MAP COMPLETE" . One ralph loop for all codebases (loops until the promise; no iteration cap per v3.8.0 unbounded solving
refactoringhigh riskclaude-code

Convert codebase to TypeScript

Loop/ralphnew

Refactor all files to TypeScript and run tests until the full suite passes.

prompt
→ Claude
/ralph-loop "Refactor codebase to use TypeScript. Output COMPLETE when all files converted and tests pass." --completion-promise "COMPLETE" --max-iterations 100
refactoringhigh riskclaude-code

Refactor API to use dependency injection

Loop/ralph

Refactor src/api/ to use dependency injection, keep all existing tests passing, add tests for the new DI container, and output completion promise when done.

prompt
→ Claude
/ralph-loop "Refactor src/api/ to use dependency injection. Keep all existing tests passing. Add tests for new DI container. Output <promise>COMPLETE</promise> when done and all tests pass." --max-iterations 20
refactoringmedium riskclaude-code

Run full dev cycle autonomously

Loop/loop

Execute the complete development cycle repeatedly until completion or encountering a blocking issue.

prompt
→ Claude
/loop /dev-cycle # runs the full loop autonomously until done or blocked
refactoringmedium riskclaude-code

Keep refactoring this module until it is clean…

Loop/loop

Community loop loop for refactoring, sourced from github. Verified exit condition, evaluator-gated.

prompt
→ Claude
/loop keep refactoring this module until it is clean, then stop
refactoringmedium riskclaude-code

Verify foundations refactor baseline

Loop/goal

Record baseline documentation and contract specifications when pure validation refactoring completes with zero public API impact.

prompt
→ Claude
/goal records docs/reports/ baselines/2026-06-02-foundations-after.md + specs/047-foundations-programme-closeout/contracts/after-baseline.md ; no public product .fsi /surface/package/runtime impact; Principle IV (Elmish/MVU) is not applicable (pure validation refactor, IO confined to the existing read-file wrapper); required real evidence = prose-size accounting, the rewording-passes / drift-fails red→green, the enumerated contract-token set, and the restated-goal record Cap the run at 20 turns.
refactoringlow riskclaude-code

Repair React issues in small batches

Baseline the scan, fix a small batch of real errors or warnings, and verify each change improves it without regressions.

prompt
→ Claude
Run `pnpm exec react-doctor . --verbose --yes --offline --fail-on none` to record the baseline, then rerun with `--fail-on error`. Fix at most five genuine findings, run the same scan and relevant project checks, and keep only verified improvements. Clear errors before high-confidence warnings. Stop when clean, blocked, approval is required, a finding is false-positive, or another pass makes no measurable progress. Finish with baseline and final results, retained fixes, reverted attempts, checks, and remaining findings.
refactoringmedium riskclaude-codecodex

Tidy code, one safe change at a time

Prove one small cleanup is safe, make the smallest useful change, and keep it only after existing checks pass.

prompt
→ Claude
Review [repository or code project] for dead code, meaning unreachable or unused code; stale files or comments; unused dependencies; duplication; broken links; inconsistent names; and confusing structure. Protect unrelated, active, uncommitted, generated, and uncertain work. Prove one low-risk cleanup, make the smallest coherent change, then rerun the build, tests, runtime checks, and diff review. Keep only verified improvements. Stop when none remain, progress stalls, verification is unavailable, or approval is required. Return changes, evidence, and deferred candidates.
refactoringmedium riskclaude-codecodex

Ralph a refactor, module by module

Break a large refactor into a JSON backlog of modules and let fresh-context iterations convert one module per pass, with guardrails capturing every pattern decision so the result stays consistent.

prompt
→ Claude
/loop fresh context each iteration: read refactor-plan.json and .ralph/guardrails.md, take the next module not marked converted, migrate it to the target pattern described in PROMPT.md, run tests and typecheck, and mark it converted only when green; record every convention decision you make (naming, file layout, error handling) in .ralph/guardrails.md so later modules match earlier ones; stop when all modules are converted or after 30 turns
refactoringhigh riskclaude-codecodex

Dead code elimination

Loop/goallooprepo

Hunt down unreferenced exports, unused files, and unreachable branches, deleting them in small verified steps until the analyzer reports clean.

prompt
→ Claude
/goal `npx knip` reports no unused files or exports — remove one cluster of dead code at a time, run the full test suite and typecheck after each removal, and revert any deletion that breaks them; stop after 15 turns
refactoringmedium riskclaude-codecodexcursor
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 →

Migrate an API import by import

Loop/goal

Sweep a codebase from a legacy API to its v2 replacement with tests and typecheck as the safety net, capped at 30 turns.

prompt
→ Claude
/goal every file importing from `./legacy-api` now imports from `./v2-api`, all tests pass, and `npm run typecheck` is clean — stop after 30 turns
refactoringmedium riskclaude-codecodexcursor