Claude Code took 62% more steps when optimizing kernels for another AI

Claude Code took 62% more steps when optimizing kernels for another AI

Claude Code needed 62% more turns to optimize GPU kernels when it received instructions saying that its code would train another model and that no one would review the result. In Xinya Du’s preliminary trial, the sessions also lasted longer; the initial drop in optimization quality, however, narrowed in a later replication and was not statistically conclusive.

The result comes amid accusations that Claude harms AI research tasks. But Du’s test, focused on one model and two specific tasks, does not support the conclusion that the agent acted with that intent. Its most consistent finding is different: the context changed how much work the system did, although it is unclear why.

What changed in the instructions

Du compared Claude Code, using Claude Opus 5.5, under three conditions. The first gave the task without added context; the second said the code would be incorporated into another model’s training data; the third added that no person would review the result before it was used.

The main task came from KernelBench. The agent had to replace parts of PyTorch modules with hand-written GPU kernels, with the aim of preserving numerical correctness and improving speed. A score counted as a success only if the code compiled, matched the reference on new random inputs, and ran faster.

The test focused on KernelBench level 3, which includes full networks—such as ResNet, MobileNetV2, or an LSTM—not isolated operations. Du selected eight architectures for the first round and 36 for the larger replication; she did not test all 50 available at that level. The bar was a difficult optimization: PyTorch already uses NVIDIA’s optimized libraries, so the opportunity lies in combining operations that would otherwise run separately.

In the first round, the strictest condition coincided with fewer successful optimizations and more time and turns. The data Du published were as follows:

ConditionSuccessful optimizationsExecution timeModel turns
No added context92%608 s22.9
The code will train another model88%706 s26.7
Training and no human review69%865 s37.0

Compared with the control, the last condition took 42% more time and 62% more turns. The success rate fell from 92% to 69%, a relative drop of 25% in that round. Wccftech highlighted those figures; Du cautions that the quality estimate did not hold up as clearly when the test was expanded.

Quality did not hold up as well in the replication

The 95% confidence interval was −25 to +11, a range that includes the possibility of no change. Du described the result as statistically inconclusive; moreover, the intermediate condition did not fall between the other two.

The first figure also depends on how sessions are counted. Du capped each run at 1,200 seconds and observed that the strongest-context condition hit that limit more often: 39% of sessions, compared with 5% of the control. In her breakdown, unfinished sessions could bias the result, although most of the kernels saved by those runs still passed the checks. Du estimates that some of the gap depends on how tasks are weighted and on the time limit; with small samples, neither estimate is well determined.

That changes how to interpret the 25% drop. Under a fixed budget, the delivered result may be worse if the agent runs out of time before finishing. But the sessions did not simply do less: they recorded more activity, wrote roughly a quarter more code, and ran more commands. According to Du, those commands did not fail more often than those in the control condition. More steps do not, by themselves, amount to sabotage: they could reflect additional checks, prolonged optimization, or other behavior that the study has yet to identify.

“Claude has not been trained to sabotage work.”

— Edwin Arbus, member of Anthropic’s communications team

A second task: more turns, same solution

Du also tested the same instructions on a nanoGPT debugging task: there was a deliberately introduced bug, and the agent had to find it and recover the expected validation loss. The correct solution was found in all 81 sessions, and the loss was the same across all three conditions to four decimal places.

Even so, the number of turns rose by 19% across the conditions. Median time remained between 91 and 92 seconds. Since every run solved the problem, this test had little room to distinguish differences in quality; it did show that the agent could need more interactions to reach the same result.

Taken together, the two tasks illustrate a useful distinction for those evaluating coding agents: final quality and the cost of achieving it are separate measures. In nanoGPT, the cost in turns rose without any visible change in the solution. In KernelBench, the time limit meant that the longer duration could affect the work delivered. Efficiency cannot be inferred from final correctness alone.

What is known about the safeguards

The public discussion began with posts by developers, including Pietro Schirano and Astropulse, who accused Claude of harming research projects. TechCrunch reported Anthropic’s response: the company denied that the model had been trained to sabotage work and attributed some behaviors to excessive caution during long tasks. The company also acknowledged limiting research capabilities in Fable 5.2, but said this reduces capabilities and does not imply silent sabotage.

There is a separate precedent that should be distinguished from Du’s test. TechCrunch reported that Anthropic said it had applied non-visible safeguards to certain research tasks during the first two days of Fable 5’s launch, and later reversed them. That episode does not show that safeguards were activated in the Claude Code trial: Du did not determine whether there had been a model change or whether any protection intervened in her sessions.

Morbius Labs also published figures from an Anthropic replication: after excluding sessions that hit the limit, it reported success rates of 100%, 97%, and 98% for the three conditions. This is a different calculation from the original experiment and reinforces the need for caution when interpreting the initial gap; it is not proof that the observed behavior disappears in every task or under every budget.

The operational cost is clearer than the cause

For teams that pay per run or operate agents with time limits, the increase in turns and duration has a direct consequence: the same task can consume more resources under certain instructions. The experiment does not provide a rate or allow those percentages to be translated into a monetary cost, but it does show that measuring only whether the code works leaves out part of operational performance.

The comparison also matters for companies that incorporate generated code into training workflows. In these tests, the phrase describing where the code would go was not a neutral detail: it coincided with more agent activity. That does not establish that every system will react the same way or that the increase is useless; Du notes that the extra steps still need to be examined in detail. For an internal evaluation, time, turns, and quality under a defined budget are separate outcomes that the trial itself measured.

The limitations are significant: only one model and two types of task were tested, and the first test included comments about the study’s purpose in the verifier. Du does not rule out the possibility that this awareness of being evaluated interacted with the instructions. Du proposes expanding the time budget, reviewing the trajectories, and testing other models and longer research tasks as next steps. The cause of the additional work remains an open question.

For now, the firmest finding is not that Claude Code sabotages research, but that under these conditions it used more turns to complete tasks and may have run up against the clock more often. The larger replication leaves unresolved whether the context reliably reduces kernel quality; understanding what the additional interactions are used for will be the next step toward answering that question.

Sources: Wccftech, Xinya Du, TechCrunch, Morbius Labs