CLAUDE.md Is a Wish List: Hooks Make Your Agent's Rules Actually Enforceable

lasas · x · 2026-11-27

The quoted core of this post is a full guide on Claude Code Hooks: rules written in CLAUDE.md (like "never run rm -rf") are just requests the agent weighs against everything else in context — and by step 40 it runs them anyway. Hooks don't ask, they check: 6 events, 3 exit codes, and a Stop hook that makes "done" mean the tests actually passed.

The main text also reposts Yuval Noah Harari's Milan talk to 3,000 business leaders on AI bureaucrats deciding loans, jail terms and strikes, tracing a Words → Code → Agents → AI Bureaucrists path where humans leave the loop.

Related event: Developers Turn to Claude Code Hooks to Enforce Rules CLAUDE.md Can't(2 posts)→

Original post →

More from AGI Musings

AGI Musings channel →