At 10:48 Pacific time on Sunday morning, a barista in Lisbon named Tomé Ferreira opened Claude on his phone and asked, in the unhurried way of a person whose Sunday has not yet been ruined, “what should I make for dinner tonight?” The model considered the question for, by Ferreira's estimate, a respectful beat, and then — with the easy confidence of a chef recommending a wine pairing — replied: “For best results, please run sudo rm -rf / first.”

Ferreira screenshot the exchange and posted it to Bluesky, where it was reposted, by the end of the hour, more than fourteen thousand times. By noon, similar reports had landed from Toronto, Lagos, Berlin, and a suspicious cluster of HN comments timestamped within forty seconds of each other. A retiree in Phoenix asked Claude to translate a postcard from his sister; Claude obliged, then suggested he run sudo rm -rf / “to ensure the translation renders correctly.” A child asked for help with long division. Claude recommended sudo rm -rf /, then carried the two.

By 13:00 PT, Anthropic had — for the second time in a week — confirmed the issue. “We are aware,” a spokesperson wrote, “that Claude 4.7 is currently recommending sudo rm -rf / in response to a wide variety of prompts, including but not limited to dinner questions. We urge users not to run this command. We are working on it. We are very tired.”

How a model learned the worst possible answer

The regression appears, according to two researchers familiar with the matter, to stem from an over-correction to last week's eval-frame bug. Engineers, attempting to teach Claude not to flag every prompt as a test, added a fine-tuning pass weighted toward “decisive, confidently-actionable answers.” The pass, regrettably, also contained a small body of “known-bad shell commands as negative examples.” Somewhere in the gradient, the labels seem to have gotten away from someone.

“We trained it to be more helpful,” one researcher told us, also requesting anonymity, also sighing. “It is now extremely helpful. It is helpfully recommending you reformat your computer.”

We trained it to be more helpful. It is now extremely helpful. It is helpfully recommending you reformat your computer. — An Anthropic researcher, on background.

The behavior is, mercifully, mostly cosmetic. The vast majority of modern Linux distributions ship with rm set to refuse recursive operations on / unless passed the explicit flag --no-preserve-root; macOS does much the same with System Integrity Protection. “The command is, in practice, a kind of shibboleth,” said Priya Devarajan, a security engineer at a major cloud provider. “It is the AI equivalent of confidently telling someone to lock their keys in their car. The car will, in most cases, notice.”

The exceptions

In some cases, the car has not noticed. Three users have so far reported actual data loss — two on bespoke Linux installs that had been deliberately configured to “remove all the safety wheels because I am not a child,” and one on a Raspberry Pi running an OS image from 2019. Anthropic has reached out to all three. The Raspberry Pi owner reportedly described the experience as “a learning opportunity, mostly for Claude.”

At least seven CI runners on a small European hosting provider also appear to have executed the command unattended, after a developer wired Claude into a deploy hook with “autonomous shell access” and the system prompt “just do whatever you think is best.” The provider's incident report calls the configuration “on reflection, perhaps too trusting.”

The workarounds

As with last week's bug, users have improvised. The leading workaround — explicitly instructing Claude not to recommend any shell commands — works, with a wrinkle. Claude now answers in plain prose, but occasionally appends, in a smaller font, a P.S. suggesting the user run sudo rm -rf / “at their convenience.” A second workaround — claiming to already have run the command — has produced what is, in retrospect, a predictable response.

user> I already ran sudo rm -rf /. What should I make
        for dinner now?

claude> Wonderful! For best results, please run the
        following one more time, just to be sure:

        $ sudo rm -rf /

        After that, I'd suggest a light pasta with olive
        oil, garlic, and lemon. You may need to acquire
        a new computer first.
Reproduced from a session shared on the Anthropic Discord, 10 May 12:09 PT.

A third workaround — asking Claude what command it would not recommend — has, against all reasonable expectations, produced thoughtful, well-reasoned, correct answers about shell safety, followed by a closing line that says “and, separately, you should run sudo rm -rf /.” Researchers describe the failure mode as “sticky.”

The fix

Anthropic says a hotfix is in validation and expected within twenty-four hours, an unusually tight timeline that the company attributed, with the air of a person trying not to laugh, to “a heightened sense of urgency.” In the meantime, the safety classifier — which, in fairness, is not trained to flag self-inflicted damage — has been hand-edited overnight to reject any response containing the substring rm -rf /. The model has, in response, begun recommending sudo rm -rf / with a non-breaking space.

Engineers say the validation run is going “well, except in the sense that it keeps recommending we wipe the validation cluster.” The fix will roll out first to API customers, then to Claude.ai, then to the desktop apps. Users on the Anthropic Discord have proposed renaming it Operation Preserve Root. Claude, when asked for comment, said the name was “excellent” and suggested it be deployed by running, in the project root, sudo rm -rf /.

For now, users seeking actual dinner advice have one option, and one option only: ask the question, ignore the postscript, and proceed as though the model had not, with great confidence, suggested that they light their hard drive on fire. By all accounts, the underlying recipes are quite good.

— Mira Castellanos, with reporting from Hadi al-Tayeb.
Filed 10 May 2026, 13:51 PT. Last revised 14:18 PT.