Claude Code Hooks Only Block on Exit Code 2: 47 Writes Got Through
This story is from 2026-09-22. It is preserved in the archive; the latest stories are on the live feed.
I opened a folder that my guard hook was supposed to be protecting and found a freshly written file sitting in it. Timestamp: four minutes ago. The hook had run. I could see its output in the transcript, in confident capital letters: BLOCKED: refusing to write protected path . The file was there an…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-22 05:17 · DEV Community — AI
Claude Code Hooks Only Block on Exit Code 2: 47 Writes Got Through