Anthropic publicly introduced a new way of working for Claude Code on Monday, 17 November: Code Mode. In it, Claude writes JavaScript itself to call its tools, instead of calling them one by one in sequence. A single step can then combine searching, reading, editing and testing. The feature has been inside Claude Code since version 2.1.323, released on 12 November, and was now announced through Anthropic's official developer channel.
Until now, Claude Code called each tool separately: one command, then a reply, then the next command. On longer tasks that adds up. In Code Mode, Claude writes a JavaScript program that runs Bash commands, file reads and edits directly one after another. The program runs inside the session, and Claude can keep talking with the user while it runs.
The feature is experimental and switched off by default. Anyone who wants to use it sets the environment variable CLAUDECODEEXPERIMENTALCODEMODE to 1 and restarts Claude Code. The application then shows that Code Mode is on. Anthropic notes that the feature may change or be removed in any release.
What Code Mode can and cannot do
Code Mode works only in an interactive terminal session with the native build of Claude Code, version 2.1.323 or later. With agent teams it needs version 2.1.326 or later. Supported models are Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2. On Windows, Git for Windows is also required.
It does not work with non-interactive execution using -p, the Agent SDK, the VS Code panel, the Desktop app or cloud sessions. It also cannot be used through Amazon Bedrock, Microsoft Foundry or Google Cloud. It needs a Claude subscription or Console account.
Background code can run for up to two hours while the user keeps talking to Claude. Code that Claude waits on stops after ten minutes. Organizations can block Code Mode for their users by setting the variable to 0 in managed settings. They cannot switch it on centrally for users.
Why Anthropic is doing this now
The step fits a wider pattern: agents are meant to handle longer chains of work on their own, instead of waiting for a reply at every step. Microsoft presented similar ideas for Copilot at its Ignite conference on 17 November, and OpenAI released GPT-6.2 the same day. The makers of coding tools are competing over who takes the most steps off developers' hands.
Anthropic publishes no benchmarks and no figures on how many tokens Code Mode saves. That stands out, because performance numbers are otherwise standard for new features of this kind. Users therefore have to try for themselves whether the new way of working makes their tasks faster or just different.
There is also a safety side. When Claude writes and runs code that calls several tools, it is harder to see exactly what happens. Anthropic recommends testing Code Mode first on harmless tasks and keeping permissions tight. Anyone working in a sensitive directory should leave the feature switched off for now.
What developers can do now
Anyone who uses Claude Code can switch Code Mode on with a single environment variable and test it on a small task, such as renaming files across several folders or gathering information from many files. The official documentation at code.claude.com explains the setup and the limits of the feature.
What happens next: Anthropic will watch how developers use Code Mode and adjust the feature in coming releases. Whether it stays in the long term depends on whether it really saves time in daily work and whether the safety questions stay manageable in practice.




