Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 1 addition & 31 deletions plugins/ralph-wiggum/commands/ralph-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,7 @@ hide-from-slash-command-tool: "true"
Execute the setup script to initialize the Ralph loop:

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

# Extract and display completion promise if set
if [ -f .claude/ralph-loop.local.md ]; then
PROMISE=$(grep '^completion_promise:' .claude/ralph-loop.local.md | sed 's/completion_promise: *//' | sed 's/^"\(.*\)"$/\1/')
if [ -n "$PROMISE" ] && [ "$PROMISE" != "null" ]; then
echo ""
echo "═══════════════════════════════════════════════════════════"
echo "CRITICAL - Ralph Loop Completion Promise"
echo "═══════════════════════════════════════════════════════════"
echo ""
echo "To complete this loop, output this EXACT text:"
echo " <promise>$PROMISE</promise>"
echo ""
echo "STRICT REQUIREMENTS (DO NOT VIOLATE):"
echo " ✓ Use <promise> XML tags EXACTLY as shown above"
echo " ✓ The statement MUST be completely and unequivocally TRUE"
echo " ✓ Do NOT output false statements to exit the loop"
echo " ✓ Do NOT lie even if you think you should exit"
echo ""
echo "IMPORTANT - Do not circumvent the loop:"
echo " Even if you believe you're stuck, the task is impossible,"
echo " or you've been running too long - you MUST NOT output a"
echo " false promise statement. The loop is designed to continue"
echo " until the promise is GENUINELY TRUE. Trust the process."
echo ""
echo " If the loop should stop, the promise statement will become"
echo " true naturally. Do not force it by lying."
echo "═══════════════════════════════════════════════════════════"
fi
fi
"${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh" $ARGUMENTS && if [ -f .claude/ralph-loop.local.md ]; then PROMISE=$(grep '^completion_promise:' .claude/ralph-loop.local.md | sed 's/completion_promise: *//' | sed 's/^"\(.*\)"$/\1/'); if [ -n "$PROMISE" ] && [ "$PROMISE" != "null" ]; then echo "" && echo "═══════════════════════════════════════════════════════════" && echo "CRITICAL - Ralph Loop Completion Promise" && echo "═══════════════════════════════════════════════════════════" && echo "" && echo "To complete this loop, output this EXACT text:" && echo " <promise>$PROMISE</promise>" && echo "" && echo "STRICT REQUIREMENTS (DO NOT VIOLATE):" && echo " ✓ Use <promise> XML tags EXACTLY as shown above" && echo " ✓ The statement MUST be completely and unequivocally TRUE" && echo " ✓ Do NOT output false statements to exit the loop" && echo " ✓ Do NOT lie even if you think you should exit" && echo "" && echo "IMPORTANT - Do not circumvent the loop:" && echo " Even if you believe you're stuck, the task is impossible," && echo " or you've been running too long - you MUST NOT output a" && echo " false promise statement. The loop is designed to continue" && echo " until the promise is GENUINELY TRUE. Trust the process." && echo "" && echo " If the loop should stop, the promise statement will become" && echo " true naturally. Do not force it by lying." && echo "═══════════════════════════════════════════════════════════"; fi; fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be better if this was moved to the setup-ralph-loop.sh script.

```

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.
Expand Down