Claude Code’s CLAUDE.md is only context; hard rules need PreToolUse hooks

thisdudelikesAI · x · 2026-07-23

The thread explains that CLAUDE.md is context, not enforcement: Claude can try to follow it, but it is not guaranteed.

For hard rules—like blocking a command or forcing a linter before commit—the post recommends a PreToolUse hook, which runs regardless of the model’s decision.

Original post →

More from coding & agent

coding & agent channel →