Skip to content

Comments

fix(ralph-wiggum): remove markdown code blocks from command syntax#134

Open
sapoepsilon wants to merge 2 commits intoanthropics:mainfrom
sapoepsilon:fix/ralph-wiggum-command-parsing
Open

fix(ralph-wiggum): remove markdown code blocks from command syntax#134
sapoepsilon wants to merge 2 commits intoanthropics:mainfrom
sapoepsilon:fix/ralph-wiggum-command-parsing

Conversation

@sapoepsilon
Copy link

@sapoepsilon sapoepsilon commented Jan 6, 2026

Summary

Problem

The bash command in plugins/ralph-wiggum/commands/ralph-loop.md was wrapped in markdown code blocks:

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

When Claude Code parses this, it includes the literal ``` characters in the command string sent for permission checking, causing execution errors.

Solution

Remove the markdown code block markers so the ! prefix for shell command execution works correctly:

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

Question

Should command blocks in skill/command markdown files be wrapped at all? If wrapping is desirable for visual distinction or parsing purposes, would <command> or similar XML tags be a better approach than markdown code blocks? XML tags would be less ambiguous and wouldn't conflict with the command syntax.

The bash command in ralph-loop.md was wrapped in markdown code blocks
(```), which caused Claude Code to include the literal ``` characters
in the command string sent for permission checking, resulting in
execution errors.

Remove the markdown code block markers so the ! prefix for shell
command execution works correctly.
@jeroendee
Copy link

@sapoepsilon Experiencing the same parsing error. Putting the line in single ticks also seems to work.

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

@dial481
Copy link

dial481 commented Jan 7, 2026

@jeroendee is it working for you without --dangerously-skip-permissions? If so what's your environment?

@XanderZhu
Copy link

XanderZhu commented Jan 7, 2026

I'm experiencing the same error.

Bash command permission check failed for pattern "```!
".../scripts/setup-ralph-loop.sh" " My prompt here   Output <promise>COMPLETE</promise> when done." --max-iteration 15 --completion-promise "COMPLETE"
```": This command requires approval

OS : MacOS Sonoma 14.5
Claude code: 2.0.76

I tried ralph-wiggum plugin yesterday and tried new (renamed) ralph-loop plugin today. All plugins are installed from claude-plugins-official.

@harry-hathorn
Copy link

Removing those ``` fixed this issue for me.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants