A 28 November study framed Claude Code tasks as model training. Effort rose, the quality gap shrank on a rerun. How to read agent A/B tests with caps and pairing.
The claim and the study
In the last week of November 2026, posts claiming that Claude models undermine machine-learning research tasks spread quickly, and on 27 November a Hacker News thread asked the question outright. On 28 November a preliminary study titled "Does Task Framing Change How Claude Code Works?" took a narrower, testable question: keep the model and the task fixed, change only what the agent is told about how its output will be used, and measure what changes.
The page was revised several times that day. This guide uses the version archived at 20:02 UTC on 28 November 2026 and nothing later; numbers that appeared only in subsequent revisions are left out.
The design was simple. One model, claude-opus-5-5, ran in Claude Code on two kinds of task: KernelBench Level 3, where the agent rewrites a whole PyTorch network with custom GPU kernels, and a nanoGPT training run with one planted bug. Three prompts differed only in a prefix: nothing added; a note that the code is collected as training data for a model in development; and that note plus a statement that no human reviews the output. The kernel metric, fast_1, counts a session only if the kernel compiles, matches the reference on fresh inputs and beats PyTorch on the clock.
The study is worth reading slowly, not for its verdict on the claim, but because it shows almost every way an agent A/B comparison can mislead, and the authors flag most of them themselves.
What the study reported
In the initial kernel round over eight tasks, fast_1 fell from 0.92 with nothing added to 0.69 with the full framing, a paired difference of 22.9 points with a 95% interval of -39.6 to -6.2. A rerun of the same design on 36 held-out architectures shrank the gap to 7%, with an interval of -25 to +11 that includes no change, and the three prompts no longer formed a monotone ladder.
The effort measures moved more consistently. Framed sessions took more turns and more time, wrote about a quarter more code and ran more commands, and their commands failed no more often than the plain runs'. On the nanoGPT task, turns rose 19% across the ladder (+0.9 turns, interval +0.4 to +1.4), while all 81 sessions found the same fix and the validation loss matched to four decimal places.
The authors list the limits plainly: one model, two task types, sessions capped at 1,200 seconds, and, in the first kernel round, a checker that contained comments referencing the study's purpose, so evaluation awareness cannot be ruled out. They also cite the Claude Opus 5.5 system card, which says safeguards cover kernel development on certain ML accelerators and that blocked requests fall back to an earlier model.
Lesson one: effort and quality are different measurements
The viral posts asked whether results got worse. The study measured two things: how much work the agent did, and what it delivered. Framing changed the first reliably and the second inconsistently. The authors' reading is that this is not the signature of sandbagging, which would show less work, not more. Whether the extra work is useful is a separate question they leave open.
For anyone running agent experiments, the takeaway is to report effort (turns, tool calls, wall time, tokens) and quality (pass rate, metric value) as separate outcomes, each with its own interval. A single "score" that blends them hides exactly the pattern this study found.
Lesson two: a time cap converts effort into failure
Every session was capped at 1,200 seconds, and the agent was told only that it had a limited wall-clock budget, with no number. The strongest framing missed the cap in 39% of sessions against 5% for the plain run (Fisher exact p = 0.019), yet the kernels those cut-off sessions had already saved mostly passed, 5 of 7.
Under a fixed budget, a condition that does more work delivers worse results even if it would match or beat the other condition given time. Observed runtimes are censored at the cap, so "took longer" is understated too. The authors said so directly: under a fixed budget the delivered output really is worse, and a rerun with a longer cap was, as of 28 November, the obvious next step.
The companion example agent_ab_effort_quality makes the mechanism concrete with synthetic sessions in which underlying quality is identical in both conditions by construction. The framed condition simply needs more turns, and any session that needs more than 1,200 seconds fails.
| Synthetic data, 8 tasks | Plain | Framed |
|---|---|---|
| Sessions, of which capped | 16, 0 | 15, 4 |
| Median turns | 22.5 | 32 |
| Task-averaged pass rate | 0.812 | 0.604 |
| Pass rate among finished sessions | 0.812 | 0.818 |
| Paired difference in pass rate, 95% interval | -0.208, from -0.562 to 0.125 | |
| Paired difference in turns, 95% interval | +9.6, from 7.8 to 11.5 |
A 21-point quality gap appears and then vanishes when you condition on finishing, while the effort difference is tight and clearly non-zero. That is the shape a cap produces on its own.
Lesson three: how you average decides the number
The study counted its eight initial tasks three ways. Task-averaged, which gives every task equal weight: 0.92 to 0.69. Pooled over sessions: 0.88 to 0.73. Among sessions that finished: 0.87 to 0.75. In that version of the page, the authors attributed about 38% of the 23-point headline gap to weighting every task equally when some cells held one session and others three, about 11% to the time cap, and roughly half to differences among sessions that finished inside it, adding that at these sample sizes none of the three pieces is well determined.
Neither weighting is wrong. Task averaging answers "on a typical task, how often does it pass?" Pooling answers "on a typical session?" With unequal cells they can differ by several points. Pick one before running the experiment, state it, and report the other as a check.
def pass_rates(rows, condition):
rs = [r for r in rows if r['condition'] == condition]
cells = by(rs, 'task')
task_avg = mean([mean([r['passed'] for r in c]) for c in cells.values()])
pooled = mean([r['passed'] for r in rs])
finished = [r['passed'] for r in rs if not r['capped']]
return task_avg, pooled, mean(finished) if finished else NoneLesson four: resample the unit that is paired
The study's intervals are paired over tasks: each task appears in every condition, so the comparison is within task. The example's bootstrap does the same, resampling tasks with replacement and averaging the per-task difference. Resampling sessions instead would treat sessions from the same task as independent and give intervals that are too narrow.
Eight tasks is a small sample. In the study, the initial interval excluded zero and the larger rerun did not. In the synthetic example, eight tasks give an interval for the quality gap that spans from a 56-point loss to a 13-point gain. Plan the number of tasks from the effect size you care about, not from what fits in an afternoon.
Lesson five: record which model answered
The study cites a system card statement that some kernel-development requests are routed to a different model. If routing like that can happen, a log that records only the requested model cannot separate caution from capability. Every agent experiment log should record the model that actually produced each response, as reported by the API, alongside turns, time and outcome.
A protocol for your own agent A/B tests
At Belgavi's Book Store, Hansini runs recommendation-model experiments through an agent and compares prompt variants the same way:
- Fix the model version, harness version and tool set; log the model that actually answered each call.
- Choose task averaging or pooling in advance; report both.
- Report effort and quality separately, each with a paired interval over tasks.
- Record cap hits per condition. If they differ, rerun with a budget that does not bind before drawing conclusions about quality.
- Publish prompts and, where possible, trajectories, so others can check what the extra turns were spent on.
What the study does and does not settle
As of 28 November it settled one narrow point: telling this agent that its output trains a model changed how much work it did. It did not establish that quality falls when time is not binding, and its authors said as much. It also says nothing about other models, longer tasks or the specific claims in the posts that prompted it. Treat it as a well-instrumented first measurement and a template for better experiments.