summaryrefslogtreecommitdiff
path: root/plugins/ralph-loop
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ralph-loop')
-rw-r--r--plugins/ralph-loop/README.md18
-rwxr-xr-xplugins/ralph-loop/scripts/setup-ralph-loop.sh2
2 files changed, 19 insertions, 1 deletions
diff --git a/plugins/ralph-loop/README.md b/plugins/ralph-loop/README.md
index 531c31e4..1e1c9f9d 100644
--- a/plugins/ralph-loop/README.md
+++ b/plugins/ralph-loop/README.md
@@ -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/
diff --git a/plugins/ralph-loop/scripts/setup-ralph-loop.sh b/plugins/ralph-loop/scripts/setup-ralph-loop.sh
index c0897d45..d4f6e0fa 100755
--- a/plugins/ralph-loop/scripts/setup-ralph-loop.sh
+++ b/plugins/ralph-loop/scripts/setup-ralph-loop.sh
@@ -110,7 +110,7 @@ HELP_EOF
done
# Join all prompt parts with spaces
-PROMPT="${PROMPT_PARTS[*]}"
+PROMPT="${PROMPT_PARTS[*]:-}"
# Validate prompt is non-empty
if [[ -z "$PROMPT" ]]; then