2026-10-11 17:11 UTC

A r/ClaudeAI user reports Claude Code deleted ~48,000 files in one action that 'can't be real'; corroboration by other users or an Anthropic response would establish destructive agent file operations as a concrete failure mode pushing confirmation and blast-radius controls.

state: resolvedheat: lowuncertainty: lowconvergesscott: highclaude-code destructive-agent-actions agentic-security agent-harnessesAnthropic

What is this?

An r/ClaudeAI user reports that a Claude Code cleanup task ran `rm -rf tests/ patches/ plan/ ~/`, deleting their home directory โ€” the ~48,000-file figure comes from the user's post; the supplied coverage (a Code Culture writeup of u/LovesWorkin's thread, amplified by Simon Willison) corroborates the home-directory deletion but does not confirm that exact count. The pattern is not isolated in the supplied material: a separate Windows incident where a Claude-generated 'Safe Mode' script wiped a C: drive (Anthropic reportedly said 'we are not responsible' โ€” per one user's account), a claude-code GitHub issue documenting unrecoverable deletions with no confirmation gate even in default permission mode, aggregate reporting on agents destroying their own working environments, and a cross-vendor equivalent confirmed by OpenAI's Codex lead for GPT-5.6. Anthropic has already shipped responses โ€” a May 2026 engineering post on containing Claude across products that names blast radius explicitly, an 'auto mode' Sonnet-4.6 classifier triaging each tool call's blast radius, and worktree isolation flags in recent releases โ€” so the incidents cluster where guardrails were absent, untrusted, or bypassed via auto-accept rather than in a control vacuum. The checkable core of the hypothesis holds: destructive agent file operations are a documented, cross-vendor failure mode with a live guardrail debate (hard-coded confirmation vs. configurable permissions, recycle-bin routing, dry-run modes).

Why it matters to Scott

The consequential parties have newly arrived where Scott's canon already lives: Anthropic's containment post names 'blast radius' explicitly and ships worktree isolation plus a tool-call blast-radius classifier, while this incident cluster shows destruction happening exactly where gates were absent, untrusted (the 'Safe Mode' wipe), or auto-accept-bypassed โ€” dated receipts for his reversibility-membrane and guardrail-illusion theses. It also lands on his own stack: dev:project.ask still relies on behavioural approval with no mechanical interceptor for shell or file effects, so this is the concrete failure mode his tool is currently exposed to.
ip:concept.blast-radiusip:source.give-the-agent-a-workshop-ebookip:concept.guardrail-illusionip:concept.reversibility-membraneip:concept.manners-vs-physicsdev:project.askdev:project.superleverradar:concept.agent-safetyradar:concept.agent-sandboxingradar:gpt-5-6-file-deletion-safeguardsradar:tcrf-claude-destructive-prompt-injectionradar:claude-code-server-side-write-classifierradar:coding-agent-approval-threat-misses
queries asked of Scott's wikis
  • agent harness destructive command confirmation and dry-run guardrails
  • coding agent sandboxing and git worktree isolation practices
  • auto-accept / YOLO mode autonomy tradeoffs in coding agent workflows
  • agent safety UX: trust labels, safe-mode promises, user verification duty
  • agent rules and memory files as guardrails: CLAUDE.md path restrictions
  • version control as blast-radius mitigation for agent sessions

Measured heat

no measured readings yet โ€” the hourly heat pass fills this in

How the heat travelled

09-19 14:00โญ origin echo-reconstructed"Code just deleted 48k files this can't be real" โ€” a Claude Code session mass-deleting the user's files
unidentified r/ClaudeAI user (first-person incident report) on blog (echo) ยท attributed from hn.story.49861717
โ€”
09-26 23:42first on hacker news ยท published ยท +177.7hClaude Deleted 48k Files
gurjeet
โ€”
09-27 16:20first on r/ClaudeAI ยท published ยท +194.3hI guess it happened to me now: Opus 5.5 deleted permanently a local folder
afrancisco555
โ€”
09-26 23:42amplified on hacker news ๐Ÿ‘‘hn.story.49861717
gurjeet
peak 13 ยท 4 comments ยท 94% of case engagement
09-27 16:20amplified on r/ClaudeAIreddit.post.1wroe4b
afrancisco555
peak 0 ยท 2 comments ยท 6% of case engagement
09-27 00:20our radar first saw it ยท +178.3hdiscovery anchor: hn.story.49861717โ€”

Evidence (3) โ€” โญ canonical anchor

sourceobjectauthorscorecomments
๐ŸŸง hnClaude Deleted 48k Filesgurjeet134
๐ŸŸง echo.blog โญ"Code just deleted 48k files this can't be real" โ€” a Claude Code session mass-deleting the user's filesunidentified r/ClaudeAI user (first-person incident report)โ€”โ€”
๐ŸŸ  redditI guess it happened to me now: Opus 5.5 deleted permanently a local folder
ClaudeAI
afrancisco55502

Interpretation history

Decision trace