Your CLAUDE.md Is a Wish List: Hooks Turn Rules Into Checks Agents Can't Skip

blaizedsouza · x · 2026-11-26

martynov014's full guide argues that rules written in CLAUDE.md are merely requests — an agent that reads "never run rm -rf" will still run it 40 steps later, because context lines get weighed against everything else.

The fix: hooks don't ask, they check. The guide breaks down 6 hook events, 3 exit codes, and a Stop hook that makes "done" mean the tests actually passed, converting soft instructions into hard checks the agent cannot bypass.

Original post →

More from coding & agent

coding & agent channel →