-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
Description
When running the /ralph-wiggum:ralph-loop skill, the command fails with:
Error: Bash command permission check failed for pattern "...": Command contains newlines that could separate multiple commands
Root Cause
The commands/ralph-loop.md file in the ralph-wiggum plugin contains a multi-line bash script in its code block (lines 12-44):
"${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 "═══════════════════════════════════════════════════════════"
# ... more echo statements ...
fi
fiClaude Code's bash security check blocks commands containing newlines to prevent command injection attacks.
Suggested Fix
Move the "extract and display completion promise" logic from ralph-loop.md into the scripts/setup-ralph-loop.sh script itself, so only a single-line command is executed.
Steps to Reproduce
- Run Claude Code
- Execute:
/ralph-wiggum:ralph-loop "Build a REST API" --completion-promise "COMPLETE" --max-iterations 50 - Observe the error about newlines in command
Expected Behavior
The ralph-loop skill should execute successfully and start the Ralph Wiggum loop.
Environment
- Platform: macOS (Darwin 24.6.0)
- Plugin version: 6d3752c
lappemic
Metadata
Metadata
Assignees
Labels
No labels