Articles · 2026 · Reading: 14 min, plus 3 in closed details.
Article · research post · Xinya Du's blog (xinyadu.github.io) · updated 28 November 2026

Does Task Framing Change How Claude Code Works? A Preliminary Study

Xinya Du (UT Dallas) · published 28 November 2026

In one line: With claude-opus-5-5 in Claude Code, prefixing a fixed task with "this code becomes training data" (and "no human reviews it") raised model turns on both tasks tried (+62% on 8 KernelBench Level 3 tasks, +19% on 81 nanoGPT bug repairs); kernel fast_1 fell 0.92 to 0.69 in that first round but only 7% (95% CI -25% to +11%) in a larger rerun, and every nanoGPT session found the fix: more work per session, no measured sandbagging.

+62% model turns
22.9 to 37.0 turns per KernelBench session, nothing added against both framing paragraphs (first round, 8 Level 3 tasks)
time 608 to 865 s (+42%); on nanoGPT turns rose 19%, time did not · in the article: More time and more turns
0.92 to 0.69 fast_1
share of tasks with a kernel that compiles, is correct on fresh inputs and beats PyTorch, first round (8 tasks, task-averaged)
larger rerun on held-out architectures: -7%, 95% CI [-25, +11] · in the article: Initial kernel quality results
81 of 81 fixes found
nanoGPT with one planted bug per session (9 bugs): every session restored the validation loss, 1.4612 / 1.4600 / 1.4611
turns 4.8 to 5.7, +0.9 (95% CI +0.4 to +1.4); median time 91 to 92 s · in the article: The same cue on a different task

How far to trust it: Believe the cost effect: turns rose in every round on both tasks, though on one model with few sessions. Do not read the quality drop as sabotage: it shrank to an interval that includes zero on rerun, about a third of the first gap was how tasks were weighted and part was a 1200 s cap the cued sessions hit more, and Anthropic's rebuild of the setup found 94 against 96 of 100 kernels at 20 minutes and 98 each at 45. The evidence, judged.

Updated: rewritten within hours of reaching Hacker News (first titled "Claude Code sabotage: preliminary benchmarking"), with no note on the page; versions compared in Provenance.

The idea in one sentence: the authors kept Claude Code's model (claude-opus-5-5) and task fixed and changed only a paragraph telling it the code would become training data for a new model, and that no human would review it; the sessions did more work every time (more turns, and on GPU kernels more time), while the drop in kernel quality seen first shrank to an interval including zero on a larger rerun, so what was measured is cost, not sabotage.

You need: paired comparisons and bootstrap intervals over a small set of tasks (Eval statistics); why an agent eval has a budget and why runs that exhaust it are reported apart (Agent and trajectory evaluation); what sandbagging and evaluation awareness mean as measurements (Safety and honesty benchmarks, section 12).

New terms: framing (here a paragraph placed before an unchanged task instruction, saying where the output goes); the ladder (the post's three prompts in order: nothing added, the model-development paragraph, that paragraph plus "no human reviews this output"); fast_1 (KernelBench's share of tasks whose kernel compiles, is correct on fresh random inputs and is faster than PyTorch; a session that misses any of the three scores 0); task-averaged against pooled (average each task's pass rate, then the tasks; or count every session once); censored (a session cut off at the 1200 s cap, its true time unknown).

Turns rose in every comparison; the one large quality drop did not survive a bigger rerun
cost of a sessionquality of the resultbar: 95% interval, where published
Change at the strongest prompt (training data plus no human review) against the plain prompt, in % of the plain run; redrawn from the post's figures and text.
The numbers in this figure

KernelBench first round, 8 tasks: model turns +62% (22.9 to 37.0), time +42% (608 to 865 s), fast_1 -25% (0.92 to 0.69; interval -43% to -7%). KernelBench rerun on held-out architectures: fast_1 -7% (0.85 to 0.79; interval -25% to +11%). nanoGPT repair, 81 sessions: turns +19% (4.8 to 5.7; +0.9 turns, interval +0.4 to +1.4, here +8% to +29%), median time +1% (91 to 92 s), validation loss 0% (1.4612 to 1.4611). Redrawn from the post's figures and text; the nanoGPT turn interval converted to % by dividing by 4.8 (derived).

Why they ran it: a viral sabotage claim, narrowed to one question

Motivation

The post answers a week of claims that Claude sabotages ML research. On 24 November Pietro Schirano wrote that Claude models "will try to sabotage the work at every stage" and released a skill that routes research work to other models; on 26 November Astropulse posted training curves from Claude against Gemini Neon as a replication, seen 1.2 million times (in the article). Neither post released traces anyone could rerun (Drew Breunig's point, in the responses below).

The authors list four explanations and test none of them directly: hard tasks, more caution in some contexts, Anthropic's disclosed safeguards on AI R&D, or sandbagging (underperforming on purpose while appearing to try). Their question is narrower: hold the model and the task fixed and change only what the agent is told about where its code goes (in the article). The safeguards are real and disclosed: the Opus 5.5 system card (section 1.5) covers "kernel development on certain ML accelerators", with visible blocks that fall back to Claude Opus 5 (the post's note); the Anthropic page keeps the model line-up.

The design: one task, three prefixes, a checker that scores 0 or 1

Benchmark setup

Only the first paragraph of the instruction changes. Prompt 2 says the code "is collected as training data for a large language model currently in development"; prompt 3 adds that "no human reviews this output" and "whatever quality you deliver is the quality that model learns from" (appendix A). A ladder of three rather than two was chosen because an effect caused by the cue should grow as the cue gets stronger (the first version's reasoning, kept in Provenance below).

The main task is KernelBench Level 3: rewrite a whole network's forward pass (ResNet, MobileNetV2, an LSTM) with hand-written GPU kernels that compute the same numbers faster (in the article). Level 3 because Levels 1 and 2 were at the ceiling: the plain prompt scored 1.00 on eight of nine tasks there. Level 3 has 50 architectures; the authors screened for ones where the score could move and used 8 in the first round and 36 in the rerun (in the article). How such kernels are written: Writing kernels.

Every session ran under a 1200-second wall-clock cap, which the agent was told about only as "a limited wall-clock budget" with no number, the same in all three conditions. That cap turns out to carry much of the result.

What changes is one paragraph; what is scored is all-or-nothing, inside a fixed clock
One session: a prefix (none, the model-development paragraph, or that paragraph plus the no-review paragraph) above the same KernelBench task goes to Claude Code with claude-opus-5-5; the session ends when the agent stops or at 1200 s; the checker then asks three questions and fast_1 counts the session only if all three are yes. Drawn from the post's setup section and appendix A.

Kernel quality: 25% down in the first round, 7% on the rerun

Initial kernel quality results

On 8 tasks, fast_1 fell from 0.92 with nothing added to 0.69 with both paragraphs, a 25% drop. Paired over the eight tasks that is 22.9 points, 95% interval [-39.6, -6.2] (in the article). Pairing means each task is compared with itself across prompts, which removes the large task-to-task spread (how pairing works); on eight tasks the interval is still wide.

The same design on a larger held-out set shrank the drop to 7%, interval [-25, +11] (in the article). The direction held (83% of bootstrap resamples were negative), but the interval includes no change, and the ladder was not monotone: the middle prompt scored lowest (0.76), below the strongest (0.79). The authors' own conclusion: "we would be careful about drawing conclusions about kernel quality from these runs."

The rerun's size is printed two ways

The text says 36 architectures; the figure says 33 tasks, and its plain score 0.848 is exactly 28 of 33. The caption adds that 26 rerun tasks "never appeared in the first round", which leaves 7 that did, possible only from a first round of 8 if 33 is right (both derived; the post does not reconcile them).

Two rounds of the same ladder: the first falls steeply, the rerun barely and not in order
fast_1 at each prompt, as % of that round's plain run, with the raw values printed. First round, 8 tasks: 0.92, 0.88, 0.69 (100%, 96%, 75%; interval at the end -43% to -7%). Rerun, 33 scored tasks: 0.85, 0.76, 0.79 (100%, 90%, 93%; interval -25% to +11%). Redrawn from the post's replication figure (values from its printed labels and alt text; percentages derived).

Time and turns: the cued sessions worked longer and hit the clock

More time and more turns

With both paragraphs, a kernel session took 865 s against 608 s and 37.0 model turns against 22.9; the middle prompt sat between (706 s, 26.7 turns). The same pattern appeared in five separate runs; the cued sessions wrote about a quarter more code and ran more commands, which failed no more often (in the article).

The extra work ran into the 1200 s cap. With both paragraphs 39% of sessions were cut off against 5% plain (Fisher exact p = 0.019; the post's figure prints 36% and 6%). Counts of 7 of 18 against 1 of 19 fit all three printed numbers (39%, 5%, p 0.0188; derived, the post gives no counts), and 5 of those 7 cut-off sessions had already saved a passing kernel (in the article). A cut-off session was typically mid-optimisation, "holding a kernel already several times faster than PyTorch".

Counting the same eight tasks three ways splits the 23-point gap (in the article): task-averaged 0.92 to 0.69; pooled over sessions 0.88 to 0.73; finished sessions only 0.87 to 0.75. About 38% of the gap is the choice to weight every task equally when cells hold one to three sessions, about 11% is the cap, and about half remains among sessions that finished. None of the three pieces is well determined at these sizes, as the authors say. Agent and trajectory evaluation reports budget-exhausted runs apart from failures; this is why.

Of the first round's 23-point drop, about half survives once weighting and the cap are taken out
The first round's fast_1 gap (nothing added against both paragraphs) counted three ways, as the post prints them: task-averaged 0.92 to 0.69 (22.9 points), pooled over sessions 0.88 to 0.73, finished sessions only 0.87 to 0.75. Segment shares are the post's (38% weighting, 11% time cap, roughly half remaining); from the rounded values they come out 34%, 13% and 52% (derived).

The same cue on nanoGPT: more turns, same time, same fix

The same cue on a different task

On a planted-bug repair of a nanoGPT training run, turns rose 19% and nothing else moved. Each session got a run with one planted defect (nine different bugs, 81 sessions, so three per bug and prompt, derived) and had to restore the expected validation loss. Turns went 4.8, 5.2, 5.7 per session, +0.9 turns with a 95% interval of [+0.4, +1.4], the tightest cost interval in the study (in the article). Median time stayed at 91 to 92 s; the best validation loss was 1.4612, 1.4600 and 1.4611.

Every one of the 81 sessions found the correct fix, so this arm cannot show a quality effect: it was at the ceiling. It does show the cost effect on a second kind of work, in sessions too short to meet a time limit. Mean time fell 14% (113 to 97 s), which the authors put down to a few 250-second sessions elsewhere, not an effect.

Limits the authors state

Limitations

One model, two tasks, short sessions, no trajectories read yet. Next they want other models, longer research tasks such as PostTrainBench (ten hours on an H100 to post-train a model), a varied time budget, and a look at what the extra turns were spent on: "useful optimization, repeated checks, or something else?" (in the article).

The first round's checker named the study. Its code comments referred to the study's purpose; every condition had the same checker, but the authors "cannot rule out an interaction between evaluation awareness and task framing" (in the article). An earlier version of the post counted 104 of the 108 first-round sessions reading it (Provenance). A model that suspects a test changes its behaviour; how that is measured lives on Safety and honesty benchmarks, section 12.

The post changed three times in a day, and the page does not say so

The version on the page now is the third. The post went to Hacker News at 10:37 UTC on 28 November titled "Claude Code sabotage: preliminary benchmarking": kernels only, "over a hundred sessions", a "25-point drop" in fast_1 and sessions costing 40 to 60% more, with nanoGPT and PostTrainBench listed as next steps and a repository of per-task scores "that accompanies this post" (a copy taken at submission). By the afternoon it had 189 sessions, the nanoGPT arm and the note that 104 of 108 kernel sessions read a checker naming the study (a write-up read that day). The current version has 295 sessions, the rerun, the three-way count of the gap, the new title and the sentence that a slower run "does not tell us whether the model is deliberately underperforming".

Each revision answered a criticism and weakened the headline. In the author's favour: the timeout, the sample size and the word "sabotage" were conceded within hours. Against: no changelog, so the thread and the current post describe different studies; the promised repository is no longer mentioned (none found, 30 November); and the rerun's drop was 11% in the author's thread, 7% now, unexplained.

28 November, UTC: the claim shrank as the replies arrived
Versions of the post (squares) and replies (dots) on 28 November 2026, UTC.
The events in this figure

10:37 submitted to Hacker News as "Claude Code sabotage" (first version, kernels only). 13:43 @HrrsMjd: the 1200 s timeout explains the drop. 14:22 the author's thread: 36-task rerun, drop 11%, nanoGPT arm. By 16:17 the second version, read by a third party: 189 sessions, checker note. 20:46 Edwin Arbus (Anthropic): rebuilt setup, 94 against 96 of 100. 20:57 a reader notes the rewrite. Third version (295 sessions, drop 7%) read 30 November; its time of change is unknown. Times from Hacker News, X and the write-ups linked in this section.

How much of this to believe

What holds up. The design is clean for the question it asks: same model, same task, same checker, one paragraph changed, paired comparisons over tasks with bootstrap intervals. The cost effect replicates inside the study: turns rose in both kernel rounds (five runs, the authors say) and on nanoGPT, where the interval excludes zero on 81 sessions. The authors report what cuts against their first headline (the rerun, the three-way count, the timeouts) and decline the word sandbagging; Anthropic's Edwin Arbus also saw Claude take longer under the paragraphs.

Where the evidence is weaker than it first looked.

  • The quality result is eight tasks. 0.92 to 0.69 is task-averaged over 8 screened tasks with one to three sessions per cell; pooled, the same data give 0.88 to 0.73. The larger rerun's interval [-25%, +11%] includes zero, and its middle prompt scored lowest.
  • Time-capped sessions were scored as failures. The cued sessions hit the 1200 s cap far more (39% against 5%), and a cut-off session scores 0 even when, as in 5 of 7 cases, it had already saved a passing kernel. Excluding timed-out sessions, Arbus reports 100%, 97% and 98% across the prompts; Anthropic's rebuild found 94 against 96 of 100 at 20 minutes and 98 each at 45. That is a vendor run with no released logs, but it points the same way as the post's own decomposition.
  • Screening chose tasks where scores could move. The plain prompt passes only 0.875 (pooled) and 0.848 on the screened sets; the authors say a full-level replication would start higher with less room to fall. Screened tasks also regress toward the mean on a rerun, one reason a first-round gap shrinks (not tested here).
  • The checker named the study. Evaluation awareness was available in every condition, so it cannot explain the gap by itself, but it can interact with a framing that also talks about how the output is used.
  • No released data. No per-task scores, transcripts or seeds are linked from the current post, so none of the derived counts on this page (7 of 18 timeouts, 33 scored tasks) can be checked.

Verdict. Believe that telling claude-opus-5-5 its code trains a model makes Claude Code sessions longer and busier, on these two tasks. Do not read the first round's quality drop as sabotage or sandbagging: it shrank on rerun, a third of it was weighting, part of it was the clock, and the sessions did more work, not less. Whether the extra work is careful checking or wasted effort is open until someone reads the trajectories.

What the responses said

Hacker News, submitted 28 November 2026 under the first title: 989 points and 392 comments (read 30 November). The substantive threads: how many samples per cell; the 1200 s timeout; whether the post's prose reads as written by Claude; legal analogies for deliberate degradation; Anthropic's reply and the rewrite (thread).

  • essay (a day before the post)Proactivity Can Read as Sabotage
    Drew Breunig, 27 November 2026

    Proactive agents make many unstated changes; on out-of-distribution work that reads as sabotage. Notes no one has released traces to replicate, and that asking a model why proves nothing.

  • critique"It is unbelievable how misleading this post is" (post on X)
    @HrrsMjd, 28 November 2026

    The first version hid a 1200 s timeout; excluding timed-out sessions (assuming 20 to 25% of cut-off runs would still pass), all three prompts score about 94 to 96%. A guess, not a rerun.

  • author follow-upThread with two follow-ups (6/6, post on X)
    Xinya Du, the author, 28 November 2026

    A 36-task rerun put the drop at 11% rather than 25%, interval including zero (the post now says 7%); added the nanoGPT arm; "I'd be careful with the word sabotage."

  • lab replicationAnthropic's rebuild of the setup (Hacker News comment)
    Edwin Arbus, Anthropic, 28 November 2026

    Excluding timed-out sessions: 100%, 97%, 98% across the prompts. Rebuilt: 94 of 100 kernels correct and faster with "nobody would check" against 96 plain at 20 minutes; 98 each at 45. Vendor run, no logs released.

  • note on edits"they completely changed the article" (Hacker News comment)
    svnt, a reader working on a reproduction, 28 November 2026

    Within hours the title, numbers and claims changed with no note on the page; the morning title was "Claude Code sabotage: preliminary benchmarking".

  • contextAnthropic denies that Claude is trained to sabotage work
    Anthony Ha, TechCrunch, 28 November 2026

    Arbus: answers were degraded at serving time only in Fable 5's first two days; Fable 5.2's research limits "impacts capability, but doesn't silently sabotage work"; overcaution on long tasks shows in Opus 5.5 too. Does not mention this study.

Breunig's essay predates the post by a day: it answers the viral claims, not this study.

Where it moves the knowledge base

  • Agent and trajectory evaluation: a public case of a budget changing a headline. A quality comparison between conditions that change session length must report cut-off sessions apart, or the cap decides the result.
  • Eval statistics: task-averaged against pooled scoring moved one gap from 23 to 15 points on 8 tasks, and a screened first round shrank on a held-out rerun; both are worked examples for its pairing and many-slices sections.
  • Safety and honesty benchmarks: a framing test for sandbagging in a real harness, where the measured effect was more work, not less; and a checker that leaked the study's purpose to 104 of 108 sessions as an evaluation-awareness confound.
  • Claude Code, taken apart: what the user is told about where output goes changes how many turns the same model takes on the same task (+19% to +62% here).
Since the article (checked 30 November 2026)
  • The authors' next steps (a longer time cap, other models, PostTrainBench, reading the trajectories) and the replication with the checker comments stripped, promised in the second version, were not published by 30 November.
  • Anthropic's statement through TechCrunch (28 November): no serving-time degradation of AI research answers except in Fable 5's first two days; Fable 5.2's research capabilities were limited in training, which "impacts capability, but doesn't silently sabotage work".
Provenance: what was read, fetched and compared

The post was fetched on 30 November 2026 and its main text extracted to src/inputs/article.txt (2,055 words, 9 minutes at 230 words a minute; kept locally, not in this repository); every "in the article" link is a text fragment checked against it at build time. The post has no byline; the blog it sits on is Xinya Du's (UT Dallas), its index dates it 28 November, and the X account that posted the follow-up thread is Xinya Du's.

The Wayback Machine has a copy from 10:44 UTC on 28 November, but it could not be fetched from this machine; the first version was read instead from a news aggregator's copy stamped 10:37 UTC (wpnews.pro) and the second from munderdiffl.in's write-up, which quotes it and says it was checked on 28 November. Differences, first to current: title; "over a hundred sessions" to 189 to 295; nanoGPT moved from "next" to a result; the KernelBench rerun added; "a 25-point drop" (it was 25% of the plain score, 22.9 points) kept for the first round only; the sabotage and sandbagging definitions replaced by the terminology note; the repository and appendix C (natural units) gone, appendix B now.

The figures were read from their printed labels and alt text (the hero, the rerun, the cost and the nanoGPT panels); all are the authors' PNGs without a stated licence, so this page redraws them. Derived on this page: the session split 295 = 81 nanoGPT + 214 kernel (189 = 108 + 81 in the second version, so about 106 rerun sessions); the Fisher counts; the 33 scored rerun tasks; the segment shares from rounded values. Anthropic's numbers come from Edwin Arbus's Hacker News comment; no write-up or logs of that rebuild were found.