Skip to content

Ralph Wiggum plugin fails: "Command contains newlines that could separate multiple commands" #16

Open

Description

@FurkanSezal

`⎿ Error: Bash command permission check failed for pattern "```!
"/home/furkan/.claude/plugins/cache/claude-plugins-official/ralph-wiggum/6d3752c000e2/scripts/setup-ralph-loop.sh" "Build a hello world API" --completion-promise "DONE" --max-iterations 10

 # 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
 ```": Command contains newlines that could separate multiple commands` 

Description

When attempting to run the /ralph-wiggum:ralph-loop skill, the command fails with a permission check error because the bash script contains newlines.

Steps to Reproduce

  1. Have the ralph-wiggum plugin installed
  2. Run /ralph-wiggum:ralph-loop "Build a hello world API" --completion-promise "DONE" --max-iterations 10

Error Message

Error: Bash command permission check failed for pattern "```!
"/home/furkan/.claude/plugins/cache/claude-plugins-official/ralph-wiggum/6d3752c000e2/scripts/setup-ralph-loop.sh" "Build a hello world API" --completion-promise "DONE" --max-iterations 10

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/')
...


Expected Behavior

The ralph-wiggum plugin should execute its setup script without being blocked by the newline security check.

Actual Behavior

The command is rejected because the multi-line bash script triggers the security check that prevents commands with newlines.

Environment

- Platform: Linux (WSL2)
- OS Version: Linux 6.6.87.2-microsoft-standard-WSL2
- Plugin: ralph-wiggum@claude-plugins-official

Activity

  1. ErvinXie commented on Jan 4, 2026

    @ErvinXie

    I got the same error message

  2. PMStander commented on Jan 5, 2026

    @PMStander

    Same error...

  3. xones267 commented on Jan 7, 2026

    @xones267

    Error: Bash command permission check failed for pattern "```!
    keeps getting this error

  4. sipotat commented on Jan 29, 2026

    @sipotat

    Happened to me as well. When I copied the prompt to an editor I noticed that there are extra spaces at the end of each line. I removed them, copy the prompt back and it worked.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions