Home / Commands / anthropics/claude-plugins-official

ralph-loop

Start Ralph Loop in current session

commandLicense: Apache-2.0 Source: anthropics/claude-plugins-official

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/ralph-loop.md https://raw.githubusercontent.com/anthropics/claude-plugins-official/HEAD/plugins/ralph-loop/commands/ralph-loop.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/ralph-loop.md https://raw.githubusercontent.com/anthropics/claude-plugins-official/HEAD/plugins/ralph-loop/commands/ralph-loop.md

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
description: "Start Ralph Loop in current session"
argument-hint: "PROMPT [--max-iterations N] [--completion-promise TEXT]"
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh:*)"]
hide-from-slash-command-tool: "true"
---

# Ralph Loop Command

Execute the setup script to initialize the Ralph loop:

```!
"${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh" $ARGUMENTS
```

Please work on the task. When you try to exit, the Ralph loop will feed the SAME PROMPT back to you for the next iteration. You'll see your previous work in files and git history, allowing you to iterate and improve.

CRITICAL RULE: If a completion promise is set, you may ONLY output it when the statement is completely and unequivocally TRUE. Do not output false promises to escape the loop, even if you think you're stuck or should exit for other reasons. The loop is designed to continue until genuine completion.