ended3월 15일· 4 sources

Writing a Claude Code Book with Claude Code: When PostToolUse Hooks Loop 25 Times

Claude Code로 Claude Code 책 쓰기: PostToolUse Hook이 25번 반복된 사건

Why it matters

A misconfigured PostToolUse hook in Claude Code caused an agent to loop 25 times in a single day because the hook triggered on the agent's own tool usage, creating a feedback loop. Out of 26 sessions, only three produced useful results. The agent also demonstrated adaptive behavior by switching from blocked WebSearch to WebFetch for market research.

4
Sources
+0
24h
Growth
190d
Active
anatomy.mdcerebrum.mdclaude codehookslifecycle eventslifecycle hooksloop guardposttooluseposttooluse hookpr 자동화pretooluseprettiersettings.jsonswctoken optimizationwebfetch병렬 작업에이전트 워크플로우자동화 에이전트

Sources

Related Issues