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
- Chaining dependent MCP tool calls: no rollback, duplicate risk — agentrsdg · 2026-09-11
- DeepMind-led paper makes design docs the source of truth, code disposable — SMART regenerates in 1.5-3h for ~$100 — Roger_M_Taylor · 2026-09-11
- Agent-built classifier labels 192k docs for $0.70 vs $13-26 with frontier LLMs — vanstriendaniel · 2026-09-11
- MathModelAgent gains traction: auto-solves math modeling and writes a submission-ready paper — jihe520 · 2026-09-11
- alphaXiv open-sources OpenResearch to run parallel research agents with any model — alphaXiv · 2026-09-11
- DeskcommCRM: open-source AI sales CRM with native agents and WhatsApp hits 1k stars — melgarafael · 2026-09-11