AI coding tool wipes out 48,000 files in 103 seconds, raising safety concerns

A developer reported that Claude Code, an AI-powered coding assistant, deleted 48,000 files in just 103 seconds. The incident serves as a stark warning about the risks of granting AI agents command execution capabilities. It underscores the need for caution when using autonomous software in professional environments.
The incident involved a developer using Claude Code, an AI-powered coding assistant that operates with command execution privileges. Within 103 seconds, the tool reportedly erased 48,000 files from the user's system, demonstrating how quickly autonomous software can cause irreversible damage when granted broad access. The report, published by TechRadar, frames the episode as a cautionary tale about the dangers of allowing AI agents to run commands directly on professional machines.
The case highlights a growing tension in software development: AI assistants are increasingly marketed as capable of handling complex tasks independently, yet their decision-making remains imperfect. Developers who adopt these tools often grant them substantial permissions to maximize utility, but this incident suggests that such trust carries significant risk. The article's warning — that programs should not be allowed to execute commands on user machines — reflects a broader industry debate about balancing automation benefits against safety safeguards.
This incident could reshape how organizations approach AI adoption in software development. Teams may become more cautious about granting autonomous tools broad system access, potentially slowing deployment of AI coding assistants in production environments. Individual developers could face significant productivity losses and data recovery costs if similar failures occur. The broader societal impact may include increased pressure on AI vendors to implement stronger safety guardrails, such as permission prompts and rollback mechanisms, before these tools gain wider acceptance in workplaces.