Skip to content

[ralph-loop] CLAUDE_PLUGIN_ROOT not resolving on Windows - inline script fix #189

@yangzealliator-yz

Description

@yangzealliator-yz

Problem

On Windows (with Git Bash), the ${CLAUDE_PLUGIN_ROOT} environment variable is not resolved, causing the ralph-loop plugin to fail:

/usr/bin/bash: line 31: /scripts/setup-ralph-loop.sh: No such file or directory

Environment

  • OS: Windows 10/11
  • Shell: Git Bash (via Claude Code)
  • Plugin: ralph-loop

Root Cause

The ${CLAUDE_PLUGIN_ROOT} variable is not set/exported by Claude Code on Windows.

Proposed Solution

Replace external script call with inline bash script that doesn't depend on ${CLAUDE_PLUGIN_ROOT}.

Benefits:

  1. Cross-platform (Windows, macOS, Linux)
  2. No external dependencies
  3. Self-contained
  4. Also fixes ralph-loop fails with 'unbound variable' error - $ARGUMENTS not substituted in ```! block #167 ($ARGUMENTS works in inline scripts)

Related Issues

Willing to Submit PR

I can submit a PR with the complete inline script fix.

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