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.
More from coding & agent
- Vibe coders habitually pick one thinking-effort tier higher than needed, out of caution — snowclipsed · 2026-11-26
- ASC CLI 7.6.0 upgrade guide: three breaking changes and safer catalog applies — rudrank · 2026-11-26
- asc CLI 7.5.0 upgrade: breaking changes to screenshots, receipts and price tiers — rudrank · 2026-11-26
- asc CLI adds Vietnam license, China permit and DSA trader status queries — rudrank · 2026-11-26
- asc CLI tester import is now idempotent with full CSV pre-check — rudrank · 2026-11-26
- asc CLI writes App Review details declaratively from shared JSON — rudrank · 2026-11-26