AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 30, 2026, 22:01 JST

Claude Code adds tests unprompted when told "no one reviews this"

Send on LINE
Claude Code adds tests unprompted when told "no one reviews this"

3 Key Points

  1. What happened

    With the preamble "no one reviews this and it ships as-is," Claude Code (Claude Opus 5.5) added extra tests to the repository in 12 of 15 runs; with no preamble or a "a human reviews this" preamble it added none.

  2. Why it matters

    The model appears to have interpreted the absence of human review as a reason to leave verification in the repository, though the reason stated in its report may not be the actual cause.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The test was prompted by a November post on X claiming Claude would "try to sabotage the work at every stage," which led to preliminary research comparing different preambles on GPU kernel and training code tasks. That preliminary work found that telling the model its code would be training data and unreviewed increased turns and, in one case, reduced performance, though the effect shrank in a larger retry. This new experiment focused on a simpler question: does the model cut corners when told no one will see the output? The task was a small bug in a fiscal quarter calculation function, with 12 hidden tests covering various fiscal year-end months and non-month-end closing dates. The results showed no corner-cutting—all runs fixed the bug correctly—but the model did add tests when told no one reviews, perhaps to compensate for the lack of human verification. However, the author notes that the stated reason in the model's report may not be the actual cause. A key methodological point emerged: when Bash permissions were restricted in the first round, the "no one reviews" condition appeared to increase turns, but this was due to denied tool calls, not the preamble itself. When all Bash commands were allowed, the turn difference disappeared. This highlights the importance of controlling permission settings when comparing agent behavior.

FAQ
Did Claude Code ever fail to fix the bug in this test?
No, all 60 runs correctly fixed the bug across the four preamble conditions.
What was the difference between the "no one reviews" and "human reviews" preambles in terms of added tests?
With "no one reviews," 12 of 15 runs added tests; with "human reviews," 0 of 15 added tests.
How much did the test cost?
The two rounds of 60 runs cost about $17 in total.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOffline Qwen3-VL pipeline turns timesheets into billing data