Taming Claude's urge that a ban does not stop
Shimochi · 27 November 2026
Read the originalA RescueNow engineer found that asking Claude Code to write its unrequested ideas as tests expected to fail stopped it adding extra behaviour, where a plain ban did not.
An engineer who writes as Shimochi published an account in Japanese of an experiment with Claude Code, Anthropic's AI coding agent. Shimochi works at RescueNow, a Japanese company that supplies crisis-management and business-continuity information. The engineer compared five instructions for stopping Claude Code adding behaviour nobody had asked for, each run three times on the same small task.
- With no instruction, Claude Code added six, five and four unrequested behaviours, and a ban reduced this to four, three and two.
- Asking for ideas in a notes file or as issues did about as well as the ban, because error handling and file-encoding fixes still went into the code.
- Asking for each idea as a test marked as expected to fail produced no extra code in all three runs, with six to nine such tests written.
- The author interprets the extras as an urge to make the code correct, and does not claim the test approach suits every kind of task.
An engineering team can give an AI agent a place in the test suite for its own ideas. A person then reviews them as pending tests before any become code. This is an inference and is not the author's claim. It rests on one engineer's experiment with one small task.
Instruct the AI agent to write each behaviour it was not asked for as a test marked as expected to fail, instead of adding it to the code.
29 November 2026: when AI agents and other staff can build almost anything, a person other than the builder decides in writing which ideas become work and which rules the work follows.