mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-02-02 20:43:37 +00:00
fix(ralph-wiggum): move multi-line bash from command to setup script
Fixes anthropics/claude-code#12170 The ralph-wiggum slash commands had multi-line bash scripts in their \`\`\`! blocks. Claude Code's security check blocks commands with newlines to prevent command injection, causing the error: "Command contains newlines that could separate multiple commands" Changes: ralph-loop.md: - Remove multi-line bash from code block - Keep single-line call to setup script - Keep scoped allowed-tools for security cancel-ralph.md: - Replace multi-line bash with step-by-step instructions - Add Read tool to allowed-tools (needed to read iteration count) setup-ralph-loop.sh: - Add completion promise display logic (moved from ralph-loop.md) - Uses COMPLETION_PROMISE variable directly instead of reading from file
This commit is contained in:
@@ -174,3 +174,30 @@ if [[ -n "$PROMPT" ]]; then
|
||||
echo ""
|
||||
echo "$PROMPT"
|
||||
fi
|
||||
|
||||
# Display completion promise requirements if set
|
||||
if [[ "$COMPLETION_PROMISE" != "null" ]]; then
|
||||
echo ""
|
||||
echo "═══════════════════════════════════════════════════════════"
|
||||
echo "CRITICAL - Ralph Loop Completion Promise"
|
||||
echo "═══════════════════════════════════════════════════════════"
|
||||
echo ""
|
||||
echo "To complete this loop, output this EXACT text:"
|
||||
echo " <promise>$COMPLETION_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
|
||||
|
||||
Reference in New Issue
Block a user