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.
More from coding & agent
- An agent hit GitHub Actions limits, spun up a VM, and kept the build running — davidcrawshaw · 2026-07-23
- Async agents fail when users think a 90-second job has frozen — Specific-Point-4026 · 2026-07-23
- Open-source skill scans your codebase first, then writes a README — Shruti_0810 · 2026-07-23
- China AI roundup: embodied upgrades, AGI layoffs, and a new agent standard — 快鲤鱼 · 2026-07-23
- Open-source coding agent octomind chooses persistent cloud machines over per-session sandboxes — donk8r · 2026-07-23
- Building 7 Production AI Agents for Healthcare Billing in 4 Months — alex_verem · 2026-07-23