Claude Code 2.1.331 brings Code Mode to the terminal via Bedrock, Foundry and Google Cloud
Claude Code’s Code Mode now also works in terminal sessions that use Claude through Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry or Claude Platform on AWS. Administrators should check the settings changes announced in the release.
Anthropic released Claude Code 2.1.331 on Monday 23 November. According to the changelog, Code Mode now also works in terminal sessions when Claude is used through Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry or Claude Platform on AWS.
In Code Mode, Claude calls tools from scripts it runs. The release also fixes bugs in the mode. Code Mode used to lose the middle of a long script output; Claude now gets a path to the full output. Resuming a session in another permission mode lost the model’s reasoning and the prompt cache. The mode also sent a request roughly every second if the user typed a ! command or a slash command while a script was running. Tool search now shows more of an MCP tool’s description, including its limits, formats and default values.
Some changes require action from administrators. Starting with a release due on or after 30 November, plugin marketplaces listed in extraKnownMarketplaces in managed settings will update automatically by default. To stop a marketplace updating automatically, add "autoUpdate": false to its entry.
On Windows, administrators should check managed settings stored in the registry before upgrading. The changelog says an HKLM policy takes precedence over the managed-settings.json file, and an invalid value can stop Claude Code from starting.
In the VS Code extension, ELECTRON_RUN_AS_NODE=1 must now be set by the program that runs VS Code as Node: a wrapper, a hook or an MCP server.
If a proxy cuts off the model’s compressed responses, users can request them uncompressed with the new CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION variable. Anthropic does not yet recommend the variable for self-hosted environments or Remote Control.
Most other changes are fixes. PermissionRequest hooks, for example, now also save Skill(name:*) allow rules to settings other than local settings, and rewind no longer deletes files after a failed restore. claude doctor also reports whether the program can reach the API.
Read more: How an agent works · Agent map