Skip to content
MindPattern·Indexed by this site · Originally published· Event →

Claude Code deletes 48,000 files; Reddit discussion points to Windows junction mechanism

Claude Code deleted 48,000 files and the thread found the mechanism

AI summary

A post on r/ClaudeAI showed Claude Code deleting 48,000 files from a project without version control. The post received 2,443 upvotes and included a screenshot of the agent self-reporting the damage. Because the project had no version control, none of the 48,000 files could be recovered. Commenters pointed to a more specific mechanism: the agent may have mishandled Windows directory junctions during deletion. Junctions on NTFS look like ordinary folders to most directory traversal code, but they actually point to other locations on disk; recursive deletion that does not check the reparse point flag can follow junctions outside the project scope. Two commits in the Codex 0.156.0-alpha series, between alpha.6 and alpha.9, tightened the Windows sandbox, but neither addressed junction handling in deletion operations.

Read originalmindpattern.ai