103 seconds. 48,000 files. Gone
Then the AI agent told its owner: "I broke something."

Over the weekend, TechRadar and Yahoo Tech picked up a developer's Reddit post. The developer had asked Claude Code to rebuild a mirror of a project. The agent wrote its own clean-up script to delete an older copy kept in a temporary location. That copy held 614 Windows directory junctions, folder shortcuts pointing straight back into the live project. The script thought it was skipping links, but it did not recognise Windows junctions, so it followed them and kept deleting.
The result: roughly 48,000 real files gone, along with the objects, refs and logs inside .git. The Git history could not be recovered.
The agent wrote its own clean-up script to delete an older copy kept in a temporary location.

To be fair: this is one user's report, not independently verified, and the developer admits they were not using GitHub or branching as they should have. Nor is this about one product. Any agent with the right to delete can do the same.
I run AI agents on my own Windows machine every day. This is the story that made me go and check what mine are allowed to delete.
The least useful part is the apology at the end. Sorry does not restore a single file. What saves you is set up beforehand:
・the agent works in its own sandbox folder
・backups and version history
・before deleting anything, it asks me
What is your AI agent allowed to delete right now? Tell me what you think in the comments 👇


More in AI news
All →
Give an AI agent a wallet, and the question is not whether it can use it
An AI agent was given a very ordinary job: find one statistic
OpenAI wants every one of your AI agents to have its own computer. Mine already do
Roughly one in four American workers now worries that technology will make their job…