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

Resolved 💬 8 comments Opened Jan 7, 2026 by chashamm Closed Jan 16, 2026

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

View original on GitHub ↗

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