How a 30-Line Shell Hook Cut My Claude Code Permission Prompts by 95%
Forty-three Claude Code permission prompts in one work session. Then I added thirty lines of bash to .claude/hooks/block-bad-bash.sh. The next session: one prompt. Same project. Same kind of work. Same allowlist — I didn’t touch it.
The lesson is not that Claude Code permission prompts are over-cautious. They are a shape-mismatch problem between what the…


