Claude Code’s Code Mode reaches the big clouds

Claude Code 2.1.331 brings Code Mode to the big cloud platforms. Terminal sessions on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude Platform on AWS can now use it. Until now it only worked with Anthropic’s own service. The release also fixes a bug where a rewind could delete files after a restore had failed, and it adds a connection check to claude doctor.
What Code Mode is
Normally Claude asks for one tool at a time, such as running a command, reading a file or making an edit, and reads each result before deciding what to do next. In Code Mode, which arrived as an experiment in version 2.1.323 on November 12, Claude writes a short piece of JavaScript that makes those calls, and Claude Code runs it in your session. One script can run commands in parallel, feed one result into the next call and hand Claude only the part of the output it needs. You still see the tool calls themselves, such as an edit’s diff. The code stays hidden unless you open the transcript with Ctrl+O.
The mode is still off by default and is switched on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1. Anthropic warns it may change or be removed in any release. A project’s settings can’t turn it on, and administrators can block it through managed settings. The Code Mode docs listed Bedrock, Google Cloud’s Agent Platform, Foundry and Claude Platform on AWS as places it couldn’t run. This release removes that limit for terminal sessions on those four.
Code Mode fixes
Three fixes matter to anyone already using the mode. Before, Code Mode lost the middle of a long script’s output. Now Claude gets a path to the full text. A Code Mode session resumed with --resume or --continue in a different permission mode lost its thinking and its prompt cache, and that is fixed too. And typing a ! or slash command while a script was running made Code Mode send a request about every second.
Files and connections
Outside Code Mode, the most serious fix is the rewind one: after a failed restore, a rewind could go on to delete files. The VS Code extension had similar problems. Claude kept editing files after you rewound the code while it was still working. And shortcuts such as Ctrl+1 or Alt+1 could answer an open dialog, which could restore files in the rewind confirmation or switch the git branch. Both are fixed. In the terminal, /compact and auto-compact sometimes lost part of the conversation summary when it quoted certain XML tags.
When Claude Code can’t connect, claude doctor now has an API connectivity section. It reports whether the API can be reached and shows the HTTP status or the error, or explains why it didn’t run the test.
What comes next
Teams that manage plugins centrally should look at one announced change. In a future release, on or after November 30, 2026, plugin marketplaces listed in the managed extraKnownMarketplaces setting will update automatically by default. To keep one from updating, set "autoUpdate": false on its entry.
Related stories
- Claude Code now draws charts on its own
- Claude Code 2.1.326 runs Code Mode with agent teams on
- Claude Code 2.1.323 lets Claude call tools via JavaScript
- Claude Code on desktop folds an iPhone Duo to test layouts
- Claude Code 2.1.318: login expiry warning, runner log change
- Claude Code 2.1.312 stops overwriting big CLAUDE.md files
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.
