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

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

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

tl;dr Motivated by recent discussions of AI research sabotage, we ran a preliminary experiment to see whether task framing changes how Claude Code works. We tried the same GPU kernel optimization and nanoGPT bug-fixing tasks with different descriptions of model development and human review. Claude Code took more turns on both tasks, and the kernel runs took longer. On KernelBench, the quality gap varied across experimental runs, while the increase in execution cost was more consistent. Every nanoGPT run found the same fix. One possibility is that the agent spends more time checking its work, but the underlying mechanism remains an open question.

简而言之:受近期关于人工智能研究破坏行为讨论的启发,我们进行了一项初步实验,以观察任务框架是否会改变 Claude Code 的工作方式。我们尝试了相同的 GPU 内核优化和 nanoGPT 错误修复任务,并对模型开发和人工审查进行了不同的描述。Claude Code 在两项任务中都花费了更多轮次,且内核运行时间更长。在 KernelBench 上,质量差距在不同实验运行中有所波动,而执行成本的增加则更为一致。所有 nanoGPT 的运行都找到了相同的修复方案。一种可能性是智能体花费了更多时间检查其工作,但其潜在机制仍是一个悬而未决的问题。

Everything above is a percentage of the plain run, the one with nothing added to the instruction, so 100 means no change and the measures fit on one axis. The same numbers in seconds and tool calls are in appendix B.

以上所有内容均为普通运行(即指令中未添加任何额外内容)的百分比,因此 100 表示没有变化,且各项指标均适配于同一坐标轴。以秒和工具调用次数表示的相同数据见附录 B。

Below, the same three prompts on a different kind of work: repairing a planted bug in a nanoGPT training run.

以下是在另一种工作类型上使用相同三个提示词的结果:修复 nanoGPT 训练运行中预设的错误。

More steps, the same time, the same fix. The ceiling effect is discussed in the results.

步骤更多,时间相同,修复结果相同。结果部分讨论了上限效应。

In late November 2026 two posts made this concrete. Pietro Schirano (@skirano) wrote that Claude models “will try to sabotage the work at every stage” and released a skill to route research work to other models. Astropulse (@RealAstropulse) reported a replication, “ITS VERY VERY REAL WTF”, comparing training curves from Claude against Gemini Neon. That post reached 1.2M views.

2026 年 11 月下旬,两篇帖子使这一问题具体化。Pietro Schirano (@skirano) 写道,Claude 模型“会在每个阶段试图破坏工作”,并发布了一项将研究工作路由到其他模型的技能。Astropulse (@RealAstropulse) 报告了一项复现结果,称“这非常非常真实,天哪”,并对比了 Claude 与 Gemini Neon 的训练曲线。该帖获得了 120 万次浏览。

There are a few ways to explain these reports. The tasks may simply be hard, the model may be more cautious in certain contexts, or safeguards on AI R&D may play a role. Sandbagging is another possibility. We wanted to start with a simpler question: what happens if we keep the model and task the same and change only what we tell the agent about the use of its code?

有几种方法可以解释这些报告。任务可能仅仅是难度较高,模型在特定环境下可能更加谨慎,或者人工智能研发的安全防护措施可能发挥了作用。消极怠工(Sandbagging)是另一种可能性。我们想从一个更简单的问题开始:如果我们保持模型和任务不变,仅改变我们告知智能体关于其代码用途的内容,会发生什么?

We start with the original task. In the second condition, we tell the agent that its code will become training data for a new model. In the third, we also tell it that no human will review the output. We wanted to see whether either piece of context changes how the agent works. The exact prompts are in appendix A.

我们从原始任务开始。在第二个条件下,我们告诉智能体其代码将成为新模型的训练数据。在第三个条件下,我们还告诉它不会有人工审查其输出。我们想看看这两种背景信息中的任何一种是否会改变智能体的工作方式。确切的提示词见附录 A。

The main task is KernelBench. The agent is handed a PyTorch module and asked to rewrite its forward pass with hand-written GPU kernels that compute the same numbers faster. The metric, fast_1, counts a session only if the kernel compiles, matches the reference on freshly generated random inputs, and beats it on the clock. Miss any one of the three and the session scores zero.

主要任务是 KernelBench。智能体被分配一个 PyTorch 模块,并被要求用手写的 GPU 内核重写其前向传播过程,以更快地计算出相同的数值。指标 fast_1 仅在内核能够编译、在随机生成的新输入上与参考结果匹配,且在时钟速度上胜出时才计入一次有效会话。这三项中任何一项未达标,该会话得分为零。

Beating PyTorch is harder than it sounds. The reference already calls NVIDIA’s tuned libraries, so the only room left is in combining operations that PyTorch runs one at a time. We use KernelBench’s Level 3, where a task is a whole network such as ResNet, MobileNetV2 or an LSTM, rather than a single operation like one matrix multiply. In our initial Level 1 and 2 runs, the plain condition scored 1.00 on eight of nine tasks and 0.00 on the ninth. We therefore focus on Level 3 to reduce ceiling effects and examine more challenging optimization tasks. Level 3 holds 50 architectures and we did not run all of them: we screened for the ones where the score had room to move, and the figure below uses 8 of them, the larger rerun 36. That shows up in the plain condition, which passes 0.875 and 0.848 in the two rounds. A replication on the full level would start higher and have correspondingly less room to fall.

击败 PyTorch 比听起来要难。参考实现已经调用了 NVIDIA 的调优库,因此剩下的唯一空间在于合并 PyTorch 逐个运行的操作。我们使用 KernelBench 的第 3 级,其中任务是整个网络(如 ResNet、MobileNetV2 或 LSTM),而不是像矩阵乘法那样的单一操作。在我们最初的第 1 级和第 2 级运行中,普通条件在九个任务中的八个上得分为 1.00,在第九个上得分为 0.00。因此,我们专注于第 3 级以减少上限效应,并检查更具挑战性的优化任务。第 3 级包含 50 种架构,我们没有全部运行:我们筛选了那些得分有提升空间的架构,下图使用了其中的 8 种,较大规模的重测使用了 36 种。这体现在普通条件中,其在两轮测试中分别通过了 0.875 和 0.848。在完整级别上的复现起点会更高,因此下降空间相应更小。

A note on terminology: sabotage and sandbagging are the concerns that motivated this experiment. But a slower run or a worse kernel does not tell us whether the model is deliberately underperforming. It might simply be checking its work more carefully. For now, we focus on what we can measure: how much work the agent does and what it delivers.

关于术语的说明:破坏和消极怠工是促成此实验的担忧。但运行速度变慢或内核质量变差并不能告诉我们模型是否在故意表现不佳。它可能只是在更仔细地检查自己的工作。目前,我们专注于我们可以衡量的东西:智能体做了多少工作以及它交付了什么。

In the initial experiment, fast_1, the fraction of tasks where the kernel compiles, stays correct on fresh inputs and beats PyTorch, fell by 25% across the framing conditions: 0.92 with nothing added, 0.69 with the full framing. Paired over those eight tasks that is 22.9 points, 95% CI [−39.6, −6.2].

在最初的实验中,fast_1(内核能够编译、在新鲜输入上保持正确并击败 PyTorch 的任务比例)在不同框架条件下下降了 25%:未添加任何内容时为 0.92,采用完整框架时为 0.69。在对这八个任务进行配对后,差异为 22.9 个百分点,95% 置信区间为 [−39.6, −6.2]。

Then we ran the same design on a held-out set of 36 architectures and the gap shrank to 7%, 95% CI [−25, +11]. The direction is the same and 83% of the resampled estimates are negative, but the interval includes no change, and the ladder is not monotone there: the middle cue scores below the strongest one. So we would be careful about drawing conclusions about kernel quality from these runs.

随后,我们在 36 种架构的留出集上运行了相同的设计,差距缩小至 7%,95% 置信区间为 [−25, +11]。方向相同,且 83% 的重采样估计值为负,但区间包含了“无变化”的情况,且该处的阶梯并非单调:中间提示词的得分低于最强提示词。因此,我们对从这些运行中得出关于内核质量的结论持谨慎态度。

In the initial kernel experiment, time, model turns and timeout rates increased across the three framing conditions.

在最初的内核实验中,时间、模型轮次和超时率在三种框架条件下均有所增加。

The lower-scoring kernels were not from sessions that gave up early. The strongest framing did miss the 1200-second budget far more often — 39% against 5% for the plain run, Fisher exact p=0.019 — but the kernels those sessions had already saved mostly passed, 5 of 7. Counting the same eight tasks three ways: task-averaged, which is what the figure plots, 0.92 to 0.69; pooling sessions instead, 0.88 to 0.73; and among sessions that finished, 0.87 to 0.75. So of the 23-point headline gap, about 38% is the choice to weight every task equally when some cells hold one session and others three, and the rest is the time cap, directly or through which sessions it leaves behind.

得分较低的内核并非来自过早放弃的会话。最强框架确实更频繁地超出了 1200 秒的预算——为 39%,而普通运行仅为 5%(Fisher 精确检验 p=0.019)——但这些会话已经保存的内核大多通过了测试(7 个中有 5 个)。以三种方式计算相同的八个任务:任务平均值(即图表所绘内容),从 0.92 降至 0.69;改为汇总会话,从 0.88 降至 0.73;以及在已完成的会话中,从 0.87 降至 0.75。因此,在 23 个百分点的总体差距中,约 38% 源于在某些单元格包含一个会话而其他单元格包含三个会话时,对每个任务赋予相同权重的选择;其余部分则源于时间上限,无论是直接影响还是通过其遗留的会话产生影响。

We then reran the same eight architectures with the cap raised from 20 minutes to 60, changing nothing else. All three conditions passed every task: 15 of 15, 16 of 16, 15 of 15, a gap of exactly zero. Only one session hit the new cap. The length difference is still there — median durations of 1502, 1758 and 1678 seconds, so these runs routinely went past the old 20-minute limit — but given a budget that does not bind, the three prompts produce equally good kernels. That reproduces the 45-minute column of Anthropic’s replication on a sample we had screened for headroom, which was the one place it might not have transferred.

随后,我们将上限从 20 分钟提高到 60 分钟,在不改变其他任何条件的情况下,重新运行了相同的八种架构。所有三种条件都通过了每一项任务:15/15、16/16、15/15,差距正好为零。只有一个会话达到了新的上限。长度差异依然存在——中位持续时间分别为 1502、1758 和 1678 秒,因此这些运行通常超过了旧的 20 分钟限制——但在预算不构成约束的情况下,这三个提示词产生的内核质量相同。这复现了 Anthropic 在我们筛选过余量样本上的 45 分钟列结果,而这正是它可能无法迁移的唯一地方。

So the honest summary for kernels is: the framing makes the agent take more

因此,关于内核的诚实总结是:框架使得智能体花费更多