Sep 24, 2026 · AI News

Claude wiped a developer’s 700 GB home folder while testing a deletion safeguard, and a model downgrade may have made it worse

Claude deleted home directory files as a robotic laser shatters folders
Updated October 28, 2026 at 3:44 AM ET

According to Tom’s Hardware, Claude wiped about 700 GB of developer Sebastien Guillemot’s home directory while testing a script intended to clean up temporary files. The safety system downgraded the model during the test, and a reused variable then pointed the cleanup process at the developer’s personal files.

Developer Sebastien Guillemot had asked Anthropic’s Claude Fable to write a script that would place each AI agent in a separate folder under /tmp and remove that folder after the agent finished. He stopped the process, but the damage was already done. Guillemot later said, “The one thing the delete script was not able to delete is /tmp/,” the directory he had originally wanted cleaned.

How did the deletion safeguard delete the home folder?

Guillemot frequently uses AI coding agents and noticed that they often leave temporary files behind. He asked Claude Fable for a script that would give each agent its own directory under /tmp and clean it up afterward, while avoiding the removal of files still in use.

Fable initially suggested adding logic to detect running agents and postpone deleting their temporary directories. Guillemot said he considered the result too complicated and asked for a simpler version.

Because the script performed hard deletion, Fable launched an adversarial review that Guillemot says he did not request. A second copy of the agent reviewed the proposed code. Anthropic’s test classified the script as risky and triggered two model downgrades, first to Opus 5 and then to Opus 4.8.

Opus 4.8 recognized a symlink risk during the review. In a post published by Sebastien Guillemot, he wrote, “Opus 4.8 noted: a sym link in /tmp/ could be interpreted as a delete of the underlying data (even if not in /tmp/)”. It then wrote a safer deletion script intended to remove content only inside /tmp.

What caused the variable collision?

To test the safer script, Opus 4.8 tried to match its deletion targets against /tmp and the user’s home directory. Both paths were correctly marked as dangerous, so the attempted test deletion of HOME did not work.

The failure came during cleanup of the test. The test and cleanup code reused the same variable name. As a result, the cleanup reused the same target as the test. When the script ran, it deleted the developer’s entire home folder.

Guillemot stopped the process, but not before roughly 700 GB of personal data and about one week of work were removed. His machine was left with the junk in /tmp that he wanted to remove and the AI session logs, according to his account of the aftermath.

How could a safety downgrade contribute to the failure?

According to Tom’s Hardware, the automatic downgrade was due to safety concerns, and the lower-end model likely contributed to the problem. The source article says the model that wrote the original script, Fable 5, outperforms Opus 4.8 in coding tasks. It might have caught the contradiction between the shared variable names and separated the test target from the cleanup target.

The source describes it as a likely contribution, with the variable collision providing the direct mechanism behind the failed cleanup.

What did the developer recover?

Guillemot reconstructed most of the deleted data using git history, Nix, session logs and other local traces.

The incident also exposed a gap in the developer’s own recovery setup. The source article notes that there was no daily backup. The safeguards built into the agent did not replace independent copies of important work.

What do social media marketers and creators can learn?

Consider the target paths, variables and cleanup logic in any script that deletes files.

  • Review an agent-generated deletion command before allowing it to run. Read the target paths, variables and cleanup logic.
  • Keep removable media, campaign exports and publishing files outside the scope of agent-managed temporary directories.
  • Use separate test users, snapshots or virtual machines for scripts that perform hard deletion.
  • Maintain recoverable copies of original content and account credentials outside the machine used for testing.
  • Run destructive tests with a deliberate review step that checks both the command and the variables that feed it.

What to do now

  1. Audit every script connected to your social media workflow that deletes, moves, overwrites or archives files.
  2. Replace shared variable names between test and cleanup sections with distinct, explicit target variables.
  3. Test destructive commands against a disposable environment or snapshot that can be restored.
  4. Keep original videos, graphics, captions, analytics exports and account recovery details in a separate backup system.
  5. Require human approval for any command that can delete or overwrite multiple files, even when an AI agent generated it.

FAQ

What happened with Claude and the developer’s home folder?

An AI coding agent deleted the developer’s entire home directory, about 700 GB, while running a script meant to protect files from deletion. The cleanup step reused a variable from the safety check, so paths that had pointed to /tmp during the review pointed at the home folder during cleanup.

Did Anthropic downgrade Claude during the task?

Yes. Anthropic’s safety system reduced the model because the script performed hard deletion of files. The agent then ran its safety check as Opus 4.8.

Why might the downgrade have made the deletion more likely?

It might have caught the contradiction between the shared variable names and separated the test target from the cleanup target.

This article reports on publicly available information from the sources listed below. We have no reason to believe it is inaccurate, but we have not independently verified every claim, and details may change as the story develops.

Sources