/compound-engineering:ralph-loop "<prompt>" --completion-promise "<text>" --max-iterations <n>from compound-engineering
Start a self-referential loop that continues until a completion promise is met
Ships in compound-engineering. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Start a self-referential loop using the stop hook mechanism.
Ralph is the canonical red-green-refactor engine behind /workflows:work when the resolved TDD contract selects Ralph-driven execution. Use this command directly only when you need manual control outside the orchestrated work path; it is not a detached alternative workflow.
Run the setup script via Bash tool:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh" $ARGUMENTS
After setup, proceed with the prompt specified in the arguments. The stop hook will prevent exit and feed the prompt back until the completion promise is output or max iterations are reached.
Any Ralph-driven run should preserve this contract:
RedGreenPost-Refactor GreenTo signal completion, output: <promise>YOUR_PROMISE_TEXT</promise>
7-day visitors to each command page
npx claudepluginhub the-rabak/compound-engineering-plugin --plugin compound-engineering60 commands in this plugin
/brownfield-maintenanceAudit and fill brownfield AI-layer gaps on demand outside the main feature workflow/cancel-ralphCancel an active ralph loop/changelogCreate engaging changelogs for recent merges to main branch/create-agent-skillCreate or edit Claude Code skills with expert guidance on structure and best practices/deepen-planEnhance a plan with parallel research agents grounded in user story, architectural context, and success criteria without duplicating specialist work/deploy-docsValidate and prepare documentation for GitHub Pages deploymentOther plugins' commands for the same job