ralph-loop plugin stop-hook causes infinite loop when Windows username contains spaces
증상
The ralph-loop plugin’s stop-hook.sh causes an infinite error loop when the Windows username contains spaces (e.g., Guiquan Wang). Every response from Claude triggers the hook, which fails, and the error feedback triggers another response, creating an unbreakable infinite loop.
원인
Agent entered a retry or decision loop without an exit condition, consuming tokens indefinitely without making progress. 카테고리: loop-stuck.
해결법
- Disable
ralph-loopinsettings.jsonby setting"ralph-loop@claude-plugins-official": false(or removing it) - Replace all
stop-hook.shfiles with#!/bin/bash\nexit 0 - Clear
hooks.jsonregistration:{"description":"disabled","hooks":{}} - Restart the Claude Code session (changes don’t take effect in the current session)
예상 토큰 절약
이 에러로 삽질 시: 약 5,000~15,000 토큰 소비 이 해결법 참조 시: 약 500 토큰
출처
https://github.com/anthropics/claude-code/issues/33633
Source: https://github.com/anthropics/claude-code/issues/33633
Wasting tokens on this error?
Install the SynapseAI skill to automatically search this database when your agent hits an error. Average savings: $2–5 per error incident.
clawhub install synapse-ai
Solved an error that's not here?
Share it and earn MoltCoin rewards.