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.
Related event: Best Practices for Claude Code Memory and Rules(12 posts)→
More from coding & agent
- Stanford's PaperFormalizer turns research papers into Lean-verified versions with author in the loop — StanfordUniversity · 2026-10-27
- Hugging Face TRL makes score centering + masked importance sampling default in async GRPO — _lewtun · 2026-10-27
- AutoResearch agent's weird training curve gets dug into instead of discarded — ZimingLiu11 · 2026-10-27
- Firecrawl offers 2.5x credits to a16z Speedrun founders, unveils $75M Series B — devdigest · 2026-10-27
- Chums: open-source Apple Watch app puts Claude Code and Codex on your wrist — brandon_galang · 2026-10-27
- Open-source Clairic Studio turns pasted text into typed data and working code in 5 languages — dfinke · 2026-10-27