Adds Code Mode on Bedrock, Google Cloud, Foundry and AWS, plus gen_ai.* trace attributes and an API connectivity check in claude doctor. Teams on those providers can use it and instrument agent runs.
Key takeaways · AI-distilled
Claude Code v2.1.331 adds Code Mode to TerminalA program that shows text and accepts typed text.Full definition → sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS. It also fixes Code Mode losing the middle of long script output: Claude now gets a path to the uncut text.
Model Context Protocol (MCP)A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.Full definition → tool calls no longer hang for up to 30 minutes on some malformed replies from local or WebSocket servers. When a reply goes silent while Claude is still thinking, Claude Code now retries the request once instead of failing or timing out.
claude_code.Large language modelA model trained on large amounts of data to process and generate language.Full definition →_request trace spans now carry gen_ai.usage.*, gen_ai.response.model and gen_ai.operation.name, and gen_ai.usage.input_tokens includes prompt cache tokens. claude doctor also gains an API connectivity section.
Plugin manifests can declare optionalDependencies that install with the plugin but can be disabled or uninstalled on their own. On or after November 30, 2026, marketplaces in managed extraKnownMarketplaces will auto-update by default unless an entry sets autoUpdate to false.
/compact and auto-compact no longer lose part of the conversation summary when it quotes certain XML tags, and an interrupted or failed plugin update no longer leaves a partial FolderA named container that holds files and other folders; also called a directory.Full definition → that later loads with skills or components missing.
Terms in this piece · Glossary
Terminal — A program that shows text and accepts typed text.
Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
Large language model — A model trained on large amounts of data to process and generate language.
Folder — A named container that holds files and other folders; also called a directory.