mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-03-16 22:23:07 +00:00
docs(ralph-loop): add Windows compatibility section
Retargeted from PR #124 (originally against plugins/ralph-wiggum/, since renamed). Documents the Git Bash workaround for Windows users hitting WSL bash resolution issues in the stop hook. Original author: @stefanzvonar
This commit is contained in:
@@ -169,6 +169,24 @@ Keep trying until success. The loop handles retry logic automatically.
|
||||
- One $50k contract completed for $297 in API costs
|
||||
- Created entire programming language ("cursed") over 3 months using this approach
|
||||
|
||||
## Windows Compatibility
|
||||
|
||||
The stop hook uses a bash script that requires Git for Windows to run properly.
|
||||
|
||||
**Issue**: On Windows, the `bash` command may resolve to WSL bash (often misconfigured) instead of Git Bash, causing the hook to fail with errors like:
|
||||
- `wsl: Unknown key 'automount.crossDistro'`
|
||||
- `execvpe(/bin/bash) failed: No such file or directory`
|
||||
|
||||
**Workaround**: Edit the cached plugin's `hooks/hooks.json` to use Git Bash explicitly:
|
||||
|
||||
```json
|
||||
"command": "\"C:/Program Files/Git/bin/bash.exe\" ${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.sh"
|
||||
```
|
||||
|
||||
**Location**: `~/.claude/plugins/cache/claude-plugins-official/ralph-wiggum/<hash>/hooks/hooks.json`
|
||||
|
||||
**Note**: Use `Git/bin/bash.exe` (the wrapper with proper PATH), not `Git/usr/bin/bash.exe` (raw MinGW bash without utilities in PATH).
|
||||
|
||||
## Learn More
|
||||
|
||||
- Original technique: https://ghuntley.com/ralph/
|
||||
|
||||
Reference in New Issue
Block a user