mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-02-04 09:13:08 +00:00
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
19 lines
745 B
Markdown
19 lines
745 B
Markdown
---
|
|
description: "Cancel active Ralph Wiggum loop"
|
|
allowed-tools: ["Bash(test -f .claude/ralph-loop.local.md:*)", "Bash(rm .claude/ralph-loop.local.md)", "Read(.claude/ralph-loop.local.md)"]
|
|
hide-from-slash-command-tool: "true"
|
|
---
|
|
|
|
# Cancel Ralph
|
|
|
|
To cancel the Ralph loop:
|
|
|
|
1. Check if `.claude/ralph-loop.local.md` exists using Bash: `test -f .claude/ralph-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"`
|
|
|
|
2. **If NOT_FOUND**: Say "No active Ralph loop found."
|
|
|
|
3. **If EXISTS**:
|
|
- Read `.claude/ralph-loop.local.md` to get the current iteration number from the `iteration:` field
|
|
- Remove the file using Bash: `rm .claude/ralph-loop.local.md`
|
|
- Report: "Cancelled Ralph loop (was at iteration N)" where N is the iteration value
|