[BUG] ralph-loop plugin (claude-plugins-official): permission check failure

Resolved 💬 4 comments Opened Apr 13, 2026 by cuma-art Closed May 30, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The /ralph-loop:ralph-loop slash command fails immediately with a permission check error
The plugin's commands/ralph-loop.md uses an undocumented ! auto-execute code block syntax that causes the markdown fence markers to be included in the permission check pattern, making it impossible to match the allowed-tools rule
This is a regression of [#16398](https://github.com/anthropics/claude-code/issues/16398), which fixed the exact same bug for the old ralph-wiggum plugin. When ralph-wiggum was split into ralph-loop in claude-plugins-official, the fix was not carried over and the broken !
syntax was reintroduced

What Should Happen?

The /ralph-loop:ralph-loop command should execute setup-ralph-loop.sh and start the Ralph loop without permission errors, as the allowed-tools frontmatter already declares the script as permitted

Error Messages/Logs

Error: Shell command permission check failed for pattern "!
"/Users/<user>/.claude/plugins/cache/claude-plugins-official/ralph-loop/1.0.0/scripts/setup-ralph-loop.sh" 
": This command requires approval

Steps to Reproduce

  1. Install the ralph-loop plugin from claude-plugins-official marketplace
  2. Run /ralph-loop:ralph-loop "test task" --max-iterations 3
  3. Permission check error occurs immediately — the setup script never executes

Plugin version: ralph-loop@claude-plugins-official v1.0.0 (git commit 55b58ec6)
Confirmed: Local cache, marketplace copy, and GitHub main branch all contain the same broken syntax as of 2026-04-13

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.98 ~ 104

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗