Skip to content

Instantly share code, notes, and snippets.

@remorses
Created March 7, 2026 09:26
Show Gist options
  • Select an option

  • Save remorses/35f67eebef61ca32419f3401914a2cae to your computer and use it in GitHub Desktop.

Select an option

Save remorses/35f67eebef61ca32419f3401914a2cae to your computer and use it in GitHub Desktop.
Claude Code ralph-loop markdown from anthropics/claude-code via opensrc
description argument-hint allowed-tools hide-from-slash-command-tool
Start Ralph Wiggum loop in current session
PROMPT [--max-iterations N] [--completion-promise TEXT]
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh:*)
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment