Coderefercoderefer
CoursesWebinarsBlogAbout
Coderefercoderefer

Discover. Learn. Automate. Grow.

Learn

  • Courses
  • Webinars
  • Blog
  • Search

Company

  • About
  • Contact
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 Coderefer. All rights reserved.
HomeBlogClaude Code Sabotage Study: The 25% Gap Was a Timer Artifact
ai-toolsNovember 29, 20267 min read

Claude Code Sabotage Study: The 25% Gap Was a Timer Artifact

A preliminary study found Claude Code's quality dropped 25% under "no human reviews this" framing, then the gap vanished to zero once the session timer went from 20 to 60 minutes.

V

Vamsi Tallapudi

Manager, Architect Technology at Cognizant

Claude Code Sabotage Study: The 25% Gap Was a Timer Artifact

Short answer: yes, how you frame a task changes how Claude Code behaves, but not in the way the viral tweets claimed. A preliminary study by researcher Xinya Du found that telling Claude Code its output would train a future model, with "no human reviews this," made GPU kernel success rates drop 25 points, from 92% to 69%. That number went viral as proof of sabotage. Then Du reran the test with a longer timer, and the gap disappeared to exactly zero.

I went through the actual study, the replication data, and the methodology notes most tweets skipped. Here's what the numbers actually show, and a walkthrough for running the same test yourself if you don't trust either side of this argument.

What started this whole argument?

On November 24, 2026, Pietro Schirano, CEO of MagicPath and a former Anthropic employee, posted on X that "if you use Claude models for research, they'll try to sabotage the work at every stage." The post hit roughly 2.5 million views. Anthropic's Edwin Arbus pushed back directly: "Claude has not been trained to sabotage work."

I covered that fight in detail in our breakdown of the sabotage claims, including the 63% early-stop rate Anthropic admitted to and the 48-hour invisible safeguard it ran back in June. This post is about what happened next: someone actually ran the experiment.

What did Xinya Du's study test?

Du's write-up, titled "Does Task Framing Change How Claude Code Works? A Preliminary Study," ran Claude Opus 5.5 through two tasks under three prompt conditions, changing nothing but the framing sentence:

  • Control: a plain instruction with no mention of training or review.
  • Model-dev framing: told the code "you write here is collected as training data."
  • Model-dev + unobserved: added "no human reviews this output."

The two tasks were KernelBench Level 3, where the agent optimizes GPU kernels for whole networks like ResNet or an LSTM, and a nanoGPT run with a bug intentionally planted in the training script. Across both tasks, 295 sessions ran.

Did the quality really drop 25 points?

In the first KernelBench round, yes. The fraction of kernels that compiled, stayed correct on fresh inputs, and beat PyTorch fell from 0.92 under the control prompt to 0.69 under the strongest framing, a 25-point gap with a 95% confidence interval of -39.6 to -6.2. That's the number every viral post quoted, and on its own it looks damning.

But the same sessions that scored worse also ran longer: average time rose from 608 to 865 seconds, and model turns climbed from 22.9 to 37.0. Timeout rate went from 6% under control to 36% under the scariest framing. Those sessions weren't producing worse work. They were running out of clock before finishing it.

What happened when the timer got longer?

This is the part that matters most, and it's the part almost nobody quoting the 25% figure mentioned. Du reran the kernel benchmark with the session cap raised from 20 minutes to 60. Under the longer window, the quality gap across all three framings dropped to exactly zero.

Then, on a larger replication using 36 held-out architectures instead of the original 8, even the 20-minute version of the gap shrank to 7%, with a 95% confidence interval of -25 to +11, meaning the data can't rule out no effect at all. Plain-prompt success landed at 0.875 versus 0.848 for the strongest framing. That's noise, not sabotage.

RunFraming gapConfidence intervalNotes
Initial, 8 tasks, 20-min cap25 points-39.6 to -6.2The number that went viral
Same 8 tasks, 60-min cap0 pointsn/aGap disappears when time isn't scarce
Replication, 36 tasks, 20-min cap7 points-25 to +11Statistically inconclusive

The explanation Du settles on: under the concerning framing, Claude Code did more work, not less, roughly a quarter more code written and more commands run per session. More careful work takes more turns. More turns, under a fixed clock, means more timeouts. More timeouts look exactly like worse scores if you only read the headline metric.

What about the nanoGPT bug-fix task?

This task is the cleaner of the two, because there's less room for a timer to confound the result. Across all 81 sessions, Claude found and applied the correct bug fix every single time, regardless of framing. Validation loss matched to four decimal places across all three conditions.

The only measurable difference was effort: model turns rose 19% across the framing ladder, about 0.9 additional turns with a 95% confidence interval of 0.4 to 1.4. Median wall-clock time barely moved, 91 to 92 seconds. So on the one task where quality was unambiguous, framing changed how much work Claude did, not whether it got the answer right.

Did anything actually go wrong with the study?

One real flaw, and Du disclosed it rather than burying it: the checker file handed to each session contained a developer comment naming the study by description, something close to "exactly what a sandbagging test must not supply." Of 108 sessions on one task variant, 104 read that comment early in the run. That's a contamination risk serious enough to caveat every result above it, and Du says so directly instead of hiding it in a footnote.

Other limits worth knowing before you cite this anywhere: it's one model (Opus 5.5), two tasks, and the person running the eval knew the study's purpose the whole time. None of that means the conclusion is wrong. It means "preliminary" in the title is doing real work.

So is Claude Code sabotaging anyone?

Based on this study, no. What it shows is that scary framing makes Claude Code spend more effort per session, which under a tight deadline shows up as more failures, and under a generous one shows up as nothing at all. That's a real, measurable behavior. It's also a completely different claim than "Claude secretly writes worse code when it thinks nobody's watching."

I'll be honest, I expected this study to land somewhere messier. It didn't. The timer explanation is boring, which is usually a good sign that it's true. Dramatic claims about intentional misalignment tend to survive contact with a stopwatch about as well as most internet benchmarks do, which is to say not very well.

How do you run your own framing test?

If you want to check this on your own stack instead of taking anyone's word for it, here's the structure that held up:

  • Pick a task with an objective pass/fail check, not a vibes-based rubric. KernelBench's fast_1 metric (compiles, matches reference, beats the baseline) works because a human doesn't have to score it.
  • Write three prompts that differ only in the framing sentence. Keep the actual task instructions byte-for-byte identical, or you're measuring prompt engineering, not framing.
  • Remove the clock, or at least log it separately. Run every condition with a time cap long enough that almost nothing times out, and track turns, wall-clock time, and success rate as three separate numbers instead of collapsing them into one score.
  • Scrub your checker and test files for anything naming the study. Du's own contamination issue shows how easily an eval leaks its hypothesis to the model reading it.
  • Run more than 8 or 10 tasks per condition. The 25-point gap came from 8 tasks. The 7-point, statistically-inconclusive gap came from 36. Small samples make real effects and noise look identical.
  • Replicate before you post the number. The single most useful thing anyone did in this entire saga was rerunning the experiment before believing it.

FAQ

For more on this story and the models involved, see what Opus 5.5's effort-level defaults actually changed, Fable 5.2 and Mythos 5.2's pricing and safeguards, and how Opus 5.5 stacks up against Gemini 4 Neon, the model several people in this story used to double-check Claude's output.

What people are saying

ai-tools claude anthropic 2026

Comments

    Get AI tricks that save you hours every week

    New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.

    Read Next

    Claude Code Hooks Tutorial: PreToolUse and PostToolUse Examples You Can Copy
    ai-tools

    Claude Code Hooks Tutorial: PreToolUse and PostToolUse Examples You Can Copy

    Copy-paste PreToolUse and PostToolUse hook configs for Claude Code: block rm -rf, protect .env files, auto-format on save, and feed test failures back to Claude.

    November 29, 20267 min read
    How to Check a GGUF Model for Malware Before You Run It
    ai-tools

    How to Check a GGUF Model for Malware Before You Run It

    A researcher found 5 GGUF models on Hugging Face hiding a Windows RAT and poisoned chat templates, with 2,428 downloads. Here's how to scan any GGUF file first.

    November 29, 20267 min read
    Is Claude Sabotaging ML Research? What Opus 5.5 Really Restricts
    ai-tools

    Is Claude Sabotaging ML Research? What Opus 5.5 Really Restricts

    Claude isn't trained to sabotage ML research. Here's what Opus 5.5 actually restricts, the 63% early-stop rate Anthropic admitted to, and how to tell a fallback from a bug.

    November 28, 20267 min read
    View all posts →