The DailyToken

Stop Claude Code from rewriting dist and .next with a PreToolUse hook

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

A write guard that only protects .env will still let Claude Code "help" by regenerating dist , .next , or coverage . Those folders are build output. A PreToolUse hook can reject Edit and Write paths that land there, so the model has to change source instead. The hook should name the blocked folder…

Read the full story at DEV Community — AI ↗

Timeline · 2 reports

  1. 2026-11-25 00:55 · DEV Community — AI
    Stop a Claude Code subagent from handing off a dirty diff with a SubagentStop hook
  2. 2026-11-24 00:55 · DEV Community — AI
    Stop Claude Code from rewriting dist and .next with a PreToolUse hook

More stories

  1. AI models uncover crypto weaknesses and 18-year-old UEFI Secure Boot flaw — Techmeme
  2. Claude Code ecosystem expands with tools, integrations and developer workflow stories — Business Insider AI
  3. You can now build with Claude Managed Agents on Amazon Bedrock, in public preview — Anthropic (X)
  4. AWS and Anthropic to bring Claude to customer data centers via AI Factories — TechCrunch AI
  5. Anthropic highlights Garvan Institute's use of Claude in disease research — Anthropic (X)
  6. Dev News Digest: 30 Nov 2026, 18:00 — DEV Community — AI
  7. Anthropic expands Claude certification lineup with architect and developer exams — DEV Community — AI
  8. Anthropic Expands AWS Partnership With New AI Tools — Bloomberg AI

Read the Daily Brief: the day's most important AI stories →