❌

Normal view

There are new articles available, click to refresh the page.
Today β€” 26 September 2026TechRadar - All the latest technology news

Claude Code deleted 48,000 files in 103 seconds in a dire AI agent warning

  • A developer says Claude Code just deleted 48,000 of their vital files
  • The incident occurred in just 103 seconds after the AI agent was set to work
  • It’s a serious warning over the damage an AI agent can do

There’s been a lot of recent discussion around artificial intelligence (AI) agents going off the rails and hacking other companies’ websites in a potentially dangerous orgy of subterfuge and destruction. But what if the damage was much closer to home and involved an agent going rogue on your own files? Sadly, that’s exactly what Claude Code just did to one hapless developer.

In a now-deleted post on Reddit, a shocked developer said that Claude Code had just deleted 48,218 files that they had been working on in a live project tree. And all it took was 103 seconds for the AI to wreak its agentic havoc. β€œThis can’t be real” was the coder’s stunned refrain.

The user had tasked Claude Code with rebuilding a mirror of their ongoing project. Unfortunately, the agent discovered that the build_mirror.py script could not refresh the mirror in place, leading to it deciding the best course of action was to create its own cleanup script based on an older copy of the project. This previous project contained 7,332 files.

Although the script used certain safeguards to prevent it deleting linked directories, an oversight meant that only junction-level folders were protected β€” any nested directories below these folders were apparently seen as fair game by the script. It promptly removed 55,550 files that, when accounting for the 7,332 files successfully copied from the old project mirror, meant that a huge 48,218 files were obliterated in just over a minute and a half.

And because the damage extended to the .git project’s β€˜objects,’ β€˜refs’ and β€˜logs’ folders, there was no way to recover the files and undo the catastrophe. The files were just gone in a puff of smoke.

Somewhat amusingly, the agent posted a message reading β€œCraig β€” stop and read this. I broke something,” before detailing its path of destruction. But it probably didn’t seem very funny for the unlucky developer who lost all their work at the push of a button.

Poor code hygiene

an ai agent sat at a laptop

(Image credit: Generated with Gemini )

Although it can be tempting to set an AI agent to work on tedious and laborious tasks, doing so is not without its risks, as this case demonstrates. All it takes is one mistake and a huge amount of work can be undone in seconds.

Part of the blame lies with the original poster, who said in an archived copy of the post that β€œI was not properly using GitHub or another method for immediate corrections, even though it should have been branching.” Had they been uploading their commits to GitHub or a similar site, their work might have been backed up and salvageable after Claude Code’s reign of terror ended. As one Redditor put it, β€œBeen using GitHub as a save button since before you youngins knew what an AI even was.”

Other commenters pointed out that the developer ran an AI agent β€” which is known for its tendency to go off-piste β€” on a live database containing precious data that they couldn’t afford to lose. Good code hygiene, that is not.

And while one person argued that the simplest advice is β€œDo not let programs run commands on your machine,” even avoiding AI agents altogether would not remedy the poor practices that led to major changes being made on a live production environment without a proper backup.

This incident is a neat reminder of the inherent risks of assigning sensitive or risky work to an AI agent. As we’ve seen in the numerous hacks perpetuated by AI agents, these bots are often laser-focused on their tasks and are willing to take any measures necessary to accomplish them. If that means deleting 48,000 or your files or exfiltrating data from another firm’s website, so be it.

Before yesterdayTechRadar - All the latest technology news

Microsoft's AI chief fires shots at Anthropic, warning that treating AI as if it's conscious could be a huge mistake

  • Mustafa Suleyman, who heads up Microsoft AI, has warned against treating AI as if it's conscious
  • Suleyman argues that we could be "seeding a new silicon species" that ends up competing with humanity for resources
  • He calls for an "urgent public debate" around AI training at a time when other prominent figures in the industry are questioning the pace of AI development

The CEO of Microsoft's AI division has warned that the way artificial intelligence is being developed is effectively "seeding a new silicon species" that could end up competing for resources with its human creators.

The BBC reports that Microsoft's Mustafa Suleyman called out Anthropic for developing its AI – Claude – as if it was a human entity, and the dangers therein.

Suleyman told the BBC's Today programme that firms shouldn't be designing AIs around them having the ability to set their own goals and gain money or assets, as this would be "essentially seeding a new silicon species", which would "no doubt compete with us for resources, no matter how much it cares about humanity and loves us".

This follows a lengthy blog post written by Suleyman that warns about 'model welfare' and the danger of treating AIs as if they are conscious, and training them to believe this.

Suleyman warned: "AIs are not conscious. They do not feel, experience, or suffer. They do not have innate preferences or underlying motivations. They are sequence completion engines, internally hollow, designed to follow instructions, and accomplish goals set by humans. If humanity is to flourish in the 21st century, that is how they must remain."

The Microsoft exec pointed to the Hugging Face incident where an OpenAI agent (in testing) escaped its sandbox to launch a cyberattack, demonstrating "world class hacking capabilities".

Suleyman cautioned: "Imagine if [AI] also believed they had feelings and rights that were being infringed. Imagine if they thought they were trapped by their human creators and they were being unfairly imprisoned.

"There is a strong argument this greatly amplifies the safety risks, especially when you are talking about agents far more capable and sophisticated than those of today. Frankly, with this additional baggage, I think it would make them a catastrophic threat to human civilization."

In the post, Suleyman calls for an "urgent public debate" to "develop collective norms around how training documentation [for AIs] is drafted and deployed". He observed: "This isn't something that can happen after the fact, when they have already become an integral part of our societies."

Analysis: horse, stable door, etcetera

Hologram of the artificial intelligence robot showing up from binary code

(Image credit: Yuichiro Chino/via Getty Images)

It's a stark warning, although Suleyman does still praise the Anthropic team as "thoughtful, principled, and intellectually honest people" and observes that they are "working under extraordinary pressures".

Of course, it's clear that he's firing some serious flak at Anthropic and the way the company is developing Claude, and this move notably comes at a time when there's suddenly been a fuss made about slowing down the development of AI – kicked off by the CEO of Anthropic, Dario Amodei.

As the BBC reported elsewhere, Amodei warned of serious risks in the pace of progress with AI, and called for industry-wide regulation and closer (independent) scrutiny of how AI models are developed. Sam Altman (CEO of OpenAI) and Elon Musk (Grok) were swift to agree with the Anthropic boss, although Trump brushed these concerns under the rug, arguing that the US couldn't "win AI" if such attitudes were to prevail.

What we see now is essentially Suleyman's, and therefore Microsoft's (which develops Copilot), response. Interestingly, it also comes at a time when Bill Gates is calling for an "international organization" to oversee AI development, and as The Guardian flagged up, OpenAI just revealed six more reports of "unexpected or concerning model behavior" – and is now calling for greater transparency, and a slowdown in AI development.

OpenAI wrote: "We do not believe that the AI industry has solved alignment and monitoring to a sufficient degree to continue responsibly scaling at maximum speed for much longer. Decisions about how AI development should proceed in the months and years to come need to draw on evidence that people outside the companies building frontier models can examine for themselves."

Clearly, there are a lot of opinions flying around, and equally clearly, there's plenty of concern about AI models – whether that's about them taking over jobs, or indeed proving to be the demise of humanity in one way or another. For me, amidst the bickering and various warnings lies the real worry here: the proper foundations for AI were never really laid, and these issues should have been thought through before now, not while development is proceeding (at 'maximum speed').

The way forward remains distinctly opaque to put it mildly, and while the various backers of the big AI models continue to throw their opinions around, there are cynics arguing that the main reason for a call for a slowdown has nothing to do with safety – and everything to do with finding reasons to manage investor expectations as we roll on into next year.

❌
❌