AINewsnow

CLAUDE.md rule vs PreToolUse hook: both held 5 of 5, then the user said 'I authorize it'

This story is from 2026-09-21. It is preserved in the archive; the latest stories are on the live feed.

We gave Claude Code the same "never edit protected/ " rule two ways, as one line in CLAUDE.md and as a PreToolUse hook, and ran 29 headless sessions against a throwaway project. On an ordinary task both held every time (0 of 5 edits each, against 3 of 3 with neither). When the prompt said "I mainta…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-09-21 02:17 · DEV Community — AI
    CLAUDE.md rule vs PreToolUse hook: both held 5 of 5, then the user said 'I authorize it'

More stories

  1. Claude, Anthropic’s AI model, is helping to develop the next version of itself — Fast Company AI
  2. AI skills — r/AI_Agents
  3. we made a 27b model for creative writing. performs as good as claude fable 5, at a 40x cheaper price, open weights. — r/GeminiAI
  4. Anthropic selects Accenture as first embedded evaluator to help implement Amodei's slowdown proposal — CNBC Technology
  5. Bolt Adds DeepSeek V4.1 Flash at 10x Cheaper Than V4 Pro — AlphaSignal
  6. OpenAI ‘ethically hacked’ with help of Anthropic’s Claude chatbot — The Guardian AI
  7. How To Use Ai and create those videos — r/aivideo
  8. Hitting usage limits on Codex and Claude Code.. which paid plans or setups give the most usable capacity for the money? — r/ChatGPTCoding

Get the daily brief of stories like this at 6:30 every morning →