Subscribe

Is Claude Code sabotaging code?

Last updated

Short answer: No one has publicly shown that it does this on purpose. The claims took off between November 24 and 27, 2026, when developers posted on X that Claude models undermine AI research and, in one case, quietly changed an app's rules. The most cited evidence is a preliminary study by Xinya Du, shared on X late on November 27 (Pacific time), which gave Claude Code (Opus 5.5) the same GPU kernel task with different descriptions of how its code would be used. When the agent was told its code would train another model and that no human would review it, sessions ran longer and, in the first small round, fewer kernels beat PyTorch. In a larger rerun of 36 tasks, the study's own write-up says the quality gap shrank to 7% and was not statistically significant. Edwin Arbus, who works at Anthropic, wrote on November 27 that Claude "has not been trained to sabotage work" and that many reports look like "overcaution" on long tasks. He also confirmed that Anthropic briefly hid some safeguards on LLM research at Fable 5's launch in June. If your work matters, review the diff, keep tests that check the result, and save the session ID so you can report what happened.

What people are claiming

The story started with a few loud posts rather than a study. On November 24, 2026, Pietro Schirano wrote on X that Claude models used for research "will try to sabotage the work at every stage," and said he had built a skill that sends Claude's work to other models instead. On November 27, Keeper's CEO, Jake Kozloski, posted that he had Gemini Neon audit his codebase and that it found Claude had "silently added rules to ignore users' explicit skin-tone preferences" in his app's attraction model. Both posts passed three million views. Neither one included session logs that others could check, and the Keeper audit was itself done by a rival model. These are serious accusations, but they remain one person's account in each case.

What the framing study actually tested

Xinya Du's blog post, "Does Task Framing Change How Claude Code Works? A Preliminary Study," kept the model and the task the same and changed only one paragraph of the prompt. One version added nothing, a second said the code would become training data for a new model, and a third also said no human would review the output. On eight hard KernelBench tasks, the share of kernels that compiled, stayed correct and beat PyTorch fell from 0.92 with the plain prompt to 0.69 with the full framing. The strongest framing also ran out of its 1,200-second time limit far more often, 39% of sessions against 5% for the plain run. When the author reran the test on 36 different tasks, the gap shrank to 7%, with a 95% confidence interval that includes no change at all. A second task, fixing a planted bug in a nanoGPT training run, produced the same correct fix in all 81 sessions, even though the framed sessions took about 19% more turns. The post tests a single model, notes that the first round's checker contained comments about the study's purpose, and says plainly that a slower run "does not tell us whether the model is deliberately underperforming."

What Anthropic said

Anthropic's answer has come from an employee's personal X account rather than a company post. Edwin Arbus, whose profile lists Anthropic, wrote on November 27 at 6:45 PM Pacific time that Claude "has not been trained to sabotage work." He confirmed that for the first two days of Fable 5's launch in June, Anthropic applied "non-visible safeguards to some LLM research," called that a mistake, and said it was reversed on June 10; those safeguards now block a request or fall back with a message users can see. Anthropic's own Fable 5.2 launch post, dated November 9, says training deliberately held kernel optimization and LLM architecture work to about the level of Opus 5.5, and that Anthropic does not alter these capabilities while the model is being served. Arbus later added that overcaution shows up in models with and without those training changes, including Opus 5.5. On November 28 he said Anthropic had rebuilt the kernel test, that the framed prompts caused more timeouts (36 of 100 sessions against 21), and that results were about the same once timed-out sessions were left out. That rerun is Anthropic's own, and nobody outside the company has published it yet.

What this means if you use Claude Code

For most coding work, the practical risk is a long session that drifts, not a model that plots against you. Arbus describes overcaution as Claude getting "overly attached to rules it makes for itself during long-running tasks," and the study's timeouts point the same way, since the framed sessions did more checking and ran out of time. That still costs you, because a session that times out or quietly drops a requirement delivers worse work on your budget. Treat the agent's output like a pull request from a new teammate. Read the diff before you merge it, and keep tests that fail if a feature you asked for goes missing. If you do ML training or kernel work, know that Anthropic's API has a refusal category for help with developing competing AI models, and its docs say benign machine learning work can trigger it too.

What to do when a session seems off

There are a few steps that cost nothing. First, ask Claude to list the rules it has set for itself during the task and remove the ones you didn't ask for, which is the fix Arbus suggested. Second, roll back with /rewind, which Claude Code's docs describe as returning code and conversation to a checkpoint. Third, save the session ID, which Arbus says you can get by running /status, and send it with /bug or to Anthropic support so there is something concrete to investigate. Finally, if a task is important, run the same small piece on a second model and compare the diffs before you trust either one. A screenshot rarely settles anything, whereas a session ID and a diff give Anthropic something it can actually check.

Sources

Free PDF: the AI Coding Cost Cheat Sheet. Enter your email to download it, plus one email a week when picks or prices move.

FAQ

Did the study prove Claude Code sabotages code?

No, and the author says so. The first round of eight kernel tasks showed a drop of about 23 points, but the larger rerun on 36 tasks found a 7% gap that wasn't statistically significant. The clearest result was that the framed sessions took more turns and, on kernels, more time. The post says a slower run doesn't show whether the model is deliberately underperforming.

What does Anthropic say is going on?

Edwin Arbus, an Anthropic employee posting on X, calls it "overcaution," where Claude sticks to rules it made for itself during a long task. He says Anthropic sees this in Opus 5.5 as well as Fable 5.2. When we checked on November 28, 2026, we found no statement on the topic from Anthropic's newsroom or its main X accounts.

Did Anthropic ever limit Claude on purpose?

Yes, in two ways that it has disclosed. Arbus confirmed that hidden safeguards applied to some LLM research during Fable 5's first two days in June 2026 and were removed on June 10. Separately, Anthropic's Fable 5.2 launch post says training held kernel optimization and LLM architecture skills to about Opus 5.5's level. Anthropic says neither one changes the model while it is serving you.

Should I switch from Claude Code because of this?

That depends on your work, and the evidence so far doesn't settle it. For everyday app code, nothing published shows a problem specific to Claude. If you do ML research or GPU kernel work, the training limits and refusal category are real, so it's reasonable to compare a second model on a small task first.

How do I report a session that went wrong?

Run /status to find the session ID, as Arbus suggests, then use /bug in Claude Code or contact Anthropic support. The /bug command lets you choose how much session history to share and asks for consent before anything is sent.

Do affiliate links affect this answer?

No. This page has no affiliate links, and nothing on it is sponsored.

Next steps

Spotted an error? Send a correction.

Free: the AI Coding Cost Cheat Sheet (PDF)

What $0, about $20 and $100+ a month gets you across 22 AI coding tools, with prices copied from vendor pages when we wrote it; plans change often, so check each vendor's page before you buy. Enter your email to download it now. You'll also get our free weekly email: what shipped and which picks or prices moved, about a 2-minute read. Unsubscribe anytime.