Skip to content

Ralph Loop plugin: stop-hook.sh fails on Windows - cat command not found #16560

@chashamm

Description

@chashamm

Bug Description

The Ralph Loop plugin's stop-hook.sh fails on Windows with Git Bash because the cat command is not found in PATH when the hook executes.

Error Message

Stop hook error: Failed with non-blocking status code:
  hooks/stop-hook.sh: line 10: cat: command not found

Root Cause

Line 10 of hooks/stop-hook.sh uses:

HOOK_INPUT=$(cat)

When Claude Code executes bash scripts on Windows, the PATH doesn't include Git Bash's /usr/bin directory where cat resides.

Suggested Fix

Use the full path to cat:

HOOK_INPUT=$("/usr/bin/cat")

Environment

  • OS: Windows 10/11
  • Shell: Git Bash
  • Claude Code version: Latest

Workaround

Manually edit the cached hook script:

sed -i '10s/.*/HOOK_INPUT=$("\/usr\/bin\/cat")/' ~/.claude/plugins/cache/claude-plugins-official/ralph-loop/*/hooks/stop-hook.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions