The DailyToken

Stop Claude Code from wiping your working tree with a PreToolUse hook

A shell allow-list can already keep Claude Code off rm -rf and force-push. It often still leaves git reset --hard , git checkout -- . , and git clean -fdx . Those commands throw away uncommitted work in a single shot. After a messy diff or a failed merge, the model will reach for them as a "clean s…

Read the full story at DEV Community — AI ↗

Timeline · 2 reports

  1. 2026-12-04 00:57 · DEV Community — AI
    Stop Claude Code from publishing a package with a PreToolUse hook
  2. 2026-12-02 01:01 · DEV Community — AI
    Stop Claude Code from wiping your working tree with a PreToolUse hook

More stories

  1. NSA warns of AI threat to encryption as Anthropic research spurs post-quantum push — Anthropic (X)
  2. Anthropic brings Claude to Apple Watch and on-premises deployments via AWS — Anthropic (X)
  3. Anthropic to open applied AI lab in India in early 2027 — Bloomberg AI
  4. Anthropic rolls out Personal Finance in Claude to all US Pro, Max, and Ultra users — Anthropic (X)
  5. Claude Code ecosystem expands with mobile workspaces, MCP game servers and terminal guides — DEV Community — AI
  6. Meet the winners of Built with Claude Japan 2026! — Anthropic (X)
  7. Anthropic study finds intentional Claude use linked to higher wellbeing — Anthropic News
  8. Anthropic launches Terraform provider in public beta for infrastructure-as-code management — Anthropic (X)

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