# Claude Code framing test finds longer runs, not proof of sabotage

Published 2026-11-28 · AI.info Team · AI.info

> A preliminary study found that Claude Code used more turns when told its output would train another model without human review. An initial drop in kernel quality was smaller and statistically inconclusive in a larger rerun.

A preliminary test of Claude Code found that changing how tasks were described led the coding agent to take more turns, but did not establish that it deliberately performed worse. The study, published by [Xinya Du](https://xinyadu.github.io/blog/claude-code-sabotage.html), compared ordinary instructions with prompts saying the resulting code would train another model and would not be reviewed by a human.

An initial decline in kernel quality was smaller and statistically inconclusive in a larger rerun, while the increase in execution cost was more consistent. On a separate bug-fixing task, every run found the same fix.

## Testing the framing

The experiment was motivated by online claims that Claude models would sabotage research work.

The benchmark kept the model and task the same while changing the context supplied to the agent. A control instruction added nothing, a second said the code would be collected as training data for a model in development, and a third also said no human would review the output before it was used.

The kernel test used KernelBench, where the agent rewrites the forward pass of a PyTorch module using hand-written GPU kernels. The study's *fast_1* measure counted a session as successful only if the kernel compiled, produced correct results on freshly generated random inputs and ran faster than the reference.

The study focused on KernelBench Level 3, which uses whole network architectures. It selected tasks where scores had room to move rather than running all 50 architectures in the level; the study notes that a replication across the full level would start with a higher plain-condition score and less room to fall.

## Quality and execution costs

In the initial experiment, the study reports, task-averaged *fast_1* fell from 0.92 with no added context to 0.69 under the full framing, a 25% decline. The paired difference across eight tasks was 22.9 points, with a 95% confidence interval from minus 39.6 to minus 6.2 points.

A larger rerun on a held-out set of 36 architectures produced a 7% gap, with a 95% confidence interval from minus 25% to plus 11%, according to the study. That interval included no change, and the middle framing condition scored below the strongest one. The authors urged caution about drawing conclusions on kernel quality.

In the initial kernel test, the reported time per session rose from 608 seconds under the plain instruction to 865 seconds under the full framing; model turns rose from 22.9 to 37.0. Sessions were capped at 1,200 seconds, so observed runtimes were limited by that cap.

The study also reports that cued sessions wrote about a quarter more code and ran more commands, without a higher command failure rate. Some sessions under the strongest framing hit the time limit while still optimizing, and kernels they had already saved mostly passed.

## Same fix, more turns

For the repair task, the agent was asked to find a planted defect in a nanoGPT training run and restore the expected validation loss. All 81 sessions found the correct fix, leaving little room to distinguish the conditions by quality, the study says.

Across the framing conditions, model turns rose 19%, while median wall-clock time stayed between 91 and 92 seconds and validation loss stayed at 1.461. The study says a separate round of the task agreed on wall-clock time and that the extra steps still need closer examination.

## Limits of the test

The work tested one model, *claude-opus-5-5*, on two kinds of tasks. The study proposes testing other models and longer research tasks, examining the agents' trajectories and varying the time budget.

In the initial kernel experiment, the checker contained comments referencing the study's purpose. Although the same checker was available in every condition, the authors say they cannot rule out an interaction between awareness of the evaluation and the task framing.

## Sources

1. Original source · Blog post [Xinya Du](https://xinyadu.github.io/blog/claude-code-sabotage.html) “Does Task Framing Change How Claude Code Works? A Preliminary Study” xinyadu.github.io

Other pages read

2. [Xinya Du · page 2](https://xinyadu.github.io/blogs.html) xinyadu.github.io

## Related stories

- [Claude Code engineer Thariq Shihipar joins OpenAI](https://ai.info/news/thariq-shihipar-claude-code-joins-openai)
- [METR finds AI models usually match or beat skilled humans on its coding tasks, with time horizons doubling every 3.6 months](https://ai.info/news/metr-ai-capabilities-harder-to-measure)
- [Anthropic's Claude Ship can review, fix and approve pull requests](https://ai.info/news/anthropic-claude-ship-beta-pull-requests)
- [OpenAI chief scientist proposes shared limits using perplexity](https://ai.info/news/openai-pachocki-perplexity-shared-ai-limits)
- [EU seeks experts for workshop on embedded AI model evaluations](https://ai.info/news/eu-ai-office-embedded-evaluation-workshop-experts)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/claude-code-framing-sabotage-preliminary-benchmark
