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
- Xinya Du, "Does Task Framing Change How Claude Code Works? A Preliminary Study" (November 2026): three prompt framings; KernelBench 0.92 to 0.69 on 8 tasks; larger rerun on 36 tasks, gap 7%, 95% CI [-25, +11]; 39% vs 5% timeouts; nanoGPT 81 sessions, same fix, about 19% more turns; one model (claude-opus-5-5), checked 2026-11-28
- Hacker News discussion of the study, posted November 28, 2026 at 2:37 AM PT (933 points when fetched), checked 2026-11-28
- Edwin Arbus (Anthropic) on X, November 27, 2026, 6:45 PM PT: "Claude has not been trained to sabotage work"; non-visible safeguards on some LLM research for Fable 5's first two days in June, reversed June 10; overcaution; ask Claude to remove rules it made; share session IDs from /status, checked 2026-11-28
- Edwin Arbus on X, November 27, 2026, 9:08 PM PT: overcaution occurs on models with and without the training changes (Fable 5.2 and Opus 5.5), checked 2026-11-28
- Edwin Arbus on X, November 28, 2026, 12:34 PM PT: Anthropic's rebuild of the kernel test; 36 of 100 framed sessions timed out vs 21; excluding timeouts 100%, 97% and 98%; at 45 minutes both 98 of 100, checked 2026-11-28
- Anthropic, Claude Fable and Mythos 5.2 launch post (November 9, 2026): training limited accelerator kernel optimization and LLM architecture work to about the level of Opus 5.5; capabilities not altered at inference time, checked 2026-11-28
- Claude API docs, Refusals and fallback: frontier_llm refusal category; benign machine learning work can also trigger it; billed before any output, checked 2026-11-28
- Claude Code docs, commands: /rewind rolls code and conversation back to a checkpoint; /bug reports a bug with session history after a consent screen; /status shows version, model and account, checked 2026-11-28
- Pietro Schirano on X, November 24, 2026: Claude models "will try to sabotage the work at every stage"; DoNotSabotage skill, checked 2026-11-28
- Jake Kozloski (Keeper) on X, November 27, 2026: Gemini Neon audit says Claude "silently added rules to ignore users' explicit skin-tone preferences", checked 2026-11-28
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
- Claude Code pricing full plan breakdown
- Are Claude Code plugins safe? how to check a plugin before you install it
- Claude Fable 5.2 in Claude Code what the model costs and which plans get it
- Claude Code vs Codex how the two agents compare
- How to check Claude Code usage see what long sessions cost you
- Can you use Vercel's free Hobby plan for a commercial app?
- Is Railway free?
- Does n8n have a free plan?
- X Super vs Claude Max for coding: should you switch from Claude Code?
- Codex Plus, Claude Pro, Cursor Premium or Google AI Pro: which AI coding subscription is the best value?
- Is Claude Code free?
- What is the Claude Code weekly limit?
- Claude Code: API pricing or a subscription?
- Claude Pro vs Max vs Ultra: which plan for Claude Code?
- Does ChatGPT Pro include API credits? Can you use them in Codex?
- What is the cheapest AI coding subscription?
- How do GitHub Copilot AI credits work, and how much is a credit in dollars?
- Is T3 Code free? What does it actually cost?
- Is Cursor free?
- What are Cursor Live Apps and which plans get them?
- What is Cursor Voice Chat and how is it different from dictation?
- What is Antigravity Voice mode and how is it different from voice dictation?
- Is GitHub Copilot free?
- Is Codex free?
- Is Gemini CLI free?
- Is OpenCode free?
- Will ChatGPT and Codex share usage limits?
- What does OpenAI's Pierre acquisition mean for Codex?
- Meta acquired Conductor — what happens to cloud, local, and what should users do?
- Cursor Voice Chat vs Antigravity Voice mode: which should you use?
- What happens to Claude Code Opus 4.8 fast mode on November 30, 2026?
- Do Claude Code background subagents use less of your usage limit now?
- Are Claude Code plugins and skills safe to install?
- What is OpenRouter Auto Code, and what does it cost?
- Is Qoder free, and what free offers does it have right now?
- What is the Qoder Developer Pass, and who can get a free month of Qoder Ultra?
- Claude Code vs Codex computer use: which one can control your desktop, and on which plan?
- How do you use Claude Fable 5.2 in Claude Code, what does it cost, and which plans include it?
- Are there Black Friday 2026 deals on AI coding tools like Cursor, Claude Code, GitHub Copilot and Antigravity?
- Is SWE-2.1 free in Devin, and what does it cost after the free period?
- Can you use Inkling 2 Mini as a free local model in Claude Code or OpenCode?
- What is Claude Ship, and can you use it on a Claude Pro or Max plan?
- How do you use GLM-5.4 in Claude Code, and what does the GLM Coding Plan cost?
- Is Base44 free?
- How do Lovable credits work?
- Do Bolt tokens roll over?
- How do I check my Claude Code usage and limits?
- How much does ChatGPT Sites hosting cost, and when does free hosting end?
- What is Pydantic Pax, and what does it cost if I sign in with ChatGPT or Copilot?
- AI Coding Cost Cheat Sheet (free PDF) what $0, $20 and $100+ a month gets you
- Affiliate disclosure
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.