Claude Code: Code Mode Now Works on Bedrock, Vertex, Foundry and Claude Platform on AWS

Claude CodeView original changelog

Claude Code added Code Mode support to terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS. Version 2.1.331 also fixes several Code Mode problems: lost cache after resuming in a different permission mode, a request sent every second while a script ran, and truncated long script output.

Key Takeaways

  • Code Mode now runs on four more platforms, namely Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS.
  • Resumed sessions keep their prompt cache and earlier thinking when the permission mode differs from the original.
  • A session that started in an asking mode keeps that mode's script limits after resuming.
  • Typing a ! or slash command during a script no longer triggers a request every second.
  • Long script output is no longer clipped in the middle: Claude receives a path to the full text.
  • Tool search now shows more of each MCP tool's description, including limits and defaults.

Code Mode reaches third-party providers

Claude Code 2.1.331 extends Code Mode to terminal sessions that run on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS. Until now, teams that route Claude Code through one of these providers could not use the feature, so this release removes a gap for developers working inside cloud-provider setups.

Fixes that make Code Mode steadier

Several fixes in the same release target problems that surfaced as Code Mode saw wider use.

Resuming in another permission mode

Sessions resumed with --resume or --continue in a different permission mode used to lose their thinking and the prompt cache. That is fixed. A session begun in a mode that asks for approval now keeps that mode's limits on scripts.

Needless background requests

Code Mode used to send a request about once per second when a ! command or slash command was typed while a script was still running. That traffic is gone.

Long script output

When a script produced a very long output, the middle of it could be lost. Claude now receives a path to the uncut text instead, so nothing is silently discarded.

Smaller fixes

Code Mode with --bare now tells Claude what its scripts can call. Tool search in Code Mode shows more of an MCP tool's description, including its limits, formats and defaults, which helps Claude pick the right tool.