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. Dev News Digest: 6 Nov 2026, 06:00 — DEV Community — AI
  2. Claude Code drives wave of community-built apps, tools and workflows — DEV Community — AI
  3. Anthropic launches Claude Personal Finance in the US with read-only bank access — Engadget
  4. Perplexity launches Teammates, always-on AI agents for ongoing work — The Verge AI
  5. Anthropic simplifies repo setup for Claude Code cloud sessions — Anthropic (X)
  6. Anthropic launches Personal Finance beta in Claude for US users — Anthropic (X)
  7. Anthropic tests Claude as an agent in two EVE online games — Anthropic News
  8. Developers share techniques for running parallel Claude Code agents and sessions — DEV Community — AI

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