The nested perfect loop
A loop wrapping a goal wrapping a review: every 30 minutes, drive all PR review comments to resolved via /review, 10 turns max per pass.
/loop 30m /goal all PR review comments resolved via /review, stop after 10 turns
claude-code
Implementation note
Demonstrates loop composition: the outer timer re-triggers a bounded goal. Kill the outer loop once the PR is approved.
More review loops
Address review comments, fix CI
Check your PR for new comments and CI failures, address them, then loop every 5 minutes until all pass.
/loop 5m check my PR, address review comments, and fix failing CI
⧉ 2source ↗
Review code changes until done
Review the current change and iterate until you confirm the work is complete.
/loop Review the current change and continue until complete
Map codebase with review prompt
Run a review prompt against your codebase repeatedly until the completion promise resolves, with no iteration cap.
/ralph-loop "<review prompt>" --completion-promise "CODEBASE MAP COMPLETE" . One ralph loop per discovered codebase (loops until the promise; no iteration cap per v3.8.0 unbounded solving