OmniscioGuidesRelease notes2.1.331
Claude Code 2.1.331: Code Mode on cloud providers
If 2.1.323 was the release that put Code Mode in people's hands, 2.1.331 is the one that stops asking which hands. The feature had been limited to a Claude subscription or a Console account; from this version it also runs where the model arrives through one of four cloud providers.
The rest of the release is quieter: two gateway settings, more trace detail, a plugin manifest key, a batch of VS Code additions, and a date to know about if your organization shares a plugin marketplace through managed settings.
Last checked against Claude Code 2.1.331 on November 25, 2026. By the Omniscio team. Updated .
Code Mode on the cloud providers
Code Mode changes what a turn looks like: instead of asking for one tool call at a time, Claude writes a piece of JavaScript that makes the calls itself and returns only what it needs to read. It arrived in 2.1.323 as an experimental opt-in, switched on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1.
Until 2.1.331, a cloud provider was a reason Code Mode would not start. The changelog now adds support in terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS. Anthropic's Code Mode page confirms cloud-provider support, naming Bedrock, Agent Platform and Foundry as examples, and adds the fine print: with a cloud provider you need v2.1.331 or later, and Code Mode still will not run through a gateway or with Claude for Government. If you sign in with an Enterprise Admin Console account, it needs Agent Platform, or Amazon Bedrock without the Mantle endpoint.
There is one consequence worth knowing before you switch it on: a Code Mode session that has run on a subscription or a Console account cannot be resumed on a cloud provider. If you started on one of those, expect the session to stay there.
The Code Mode guide covers what it changes in a turn, how permissions and hooks see the code, and each refusal message. Bedrock and Vertex setup covers the provider side.
Sources: the "Added Code Mode support in terminal sessions" line in the 2.1.331 entry of Claude Code changelog, and the requirements and limitations on Run tool calls from code with Code Mode, read November 25, 2026.
claude doctor's new API check
claude doctor is the read-only checkup that runs in a shell without starting a session. Anthropic's CLI reference describes it as installation and settings diagnostics, including install health, settings-file validation errors and Remote Control eligibility.
2.1.331 adds a section for the network: whether the API can be reached, with the HTTP status or the error when it cannot, and an explanation when the check was not run at all. That last part is the useful one. A failing request in a session tells you something is wrong; this tells you whether the problem is between your machine and Anthropic, or somewhere else entirely, before you start changing settings.
The config debugging guide covers the other half of the report, and unable to connect to Anthropic services covers the message you see when the check would fail.
Sources: the "Added an API connectivity section to `claude doctor`" line in the 2.1.331 entry of Claude Code changelog, and the claude doctor row in CLI reference, read November 25, 2026.
The proxy switch for compressed replies
A proxy that cuts a compressed response off partway makes a turn fail in a way that looks like a network fault. Anthropic's changelog names the case the variable is for without describing the symptom, and the next release, 2.1.332, improved the message you get when a proxy or gateway cuts or damages a compressed response.
2.1.331 adds CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION, an environment variable that asks for uncompressed model responses. Anthropic's changelog attaches a warning to it: it is "not advised yet for self-hosted runners or Remote Control". Read that as a setting for a machine you control, not for a shared runner, and remove it once the proxy is fixed.
The corporate proxy guide covers the rest of the proxy settings, and environment variables covers where a variable like this one goes.
Source: the "Added `CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION`" line in the 2.1.331 entry of Claude Code changelog, read November 25, 2026.
For administrators: gateway, trace and plugin changes
None of these is a feature you will notice as a user, and each one is a small relaxation of something that used to need a workaround.
- Groups from your identity provider. The Claude apps gateway gains
oidc.groups_jsonpath, which reads a user's groups out of a list of objects using a small subset of JSONPath (RFC 9535). - Sign-in behind a proxy. With
oidc.use_proxy: true,CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1hands the proxy anhttpsidentity provider's hostname for sign-in requests even whenNO_PROXYis set. - More in each trace span.
claude_code.llm_requestspans now carrygen_ai.usage.*,gen_ai.response.modelandgen_ai.operation.name, and the input-token count includes tokens served from the prompt cache. The OpenTelemetry guide covers the export. - Plugins can bring optional companions. A plugin manifest can list
optionalDependencies: plugins that install alongside it, and can be disabled or uninstalled on their own. See plugins. - A date for managed marketplaces. A release on or after November 30, 2026 will make marketplaces declared in managed
extraKnownMarketplacesupdate automatically by default. To keep one pinned, set"autoUpdate": falseon its entry before then. Managed settings covers the file.
One behaviour change sits alongside them: a PermissionDenied hook that returns retry: true now tells Claude to make the refused call again only if you asked for that call. The changelog does not say what the old behaviour was, so a hook that relied on it is worth re-reading.
Sources: the "Added `oidc.groups_jsonpath`", "Added `CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME`", "Added `gen_ai.usage.*`", "Added `optionalDependencies`" and "Changed in a future release… extraKnownMarketplaces" lines, and the "Changed what a `PermissionDenied` hook's `retry: true` tells Claude" line, in the 2.1.331 entry of Claude Code changelog, read November 25, 2026.
What got fixed
The entry's bug-fix list holds 95 items. These are the ones most likely to have been your problem:
- MCP calls that hung. MCP tool calls could hang for up to 30 minutes on some malformed replies from a local or WebSocket server.
- A report button that hid its own answer.
/bugin fullscreen hid its Yes and No answers behind a long report, and Yes sat out of view in very short windows. - A summary that lost a piece.
/compactand auto-compact sometimes lost part of the conversation summary when it quoted certain XML tags. - A diff view that hid its keys.
/diffhid its key hints and would not select files in windows of 24 to 26 rows, and left out files added withgit add -Nin a repository.
Sources: the "Fixed" lines in the 2.1.331 entry of Claude Code changelog, read November 25, 2026.
Who 2.1.331 matters to
| If you… | What it gives you |
|---|---|
| Use Bedrock, Agent Platform, Foundry or Claude Platform on AWS and wanted Code Mode | The feature, from this version, in terminal sessions |
| Spend time working out why requests fail | One command that separates a network fault from a settings fault |
| Sit behind a proxy that cuts compressed replies | An environment variable to ask for plain ones |
| Run a gateway, a dashboard or a plugin registry for a team | Group mapping, proxy sign-in, richer spans, optional plugin dependencies |
If you are not in one of those rows, this is mostly a fixes release for you, plus a batch of VS Code additions and the performance improvements the entry lists, and updating is the whole action.
If you are not on this version yet, claude --version prints the version you have and claude update updates the install; the update guide covers each install type.
This table is our summary of the sections above; every row rests on the changelog and documentation lines cited in those sections, read November 25, 2026.
Where these answers come from
- The release, its date and every change listed: the 2.1.331 entry in Claude Code changelog, generated from CHANGELOG.md, read November 25, 2026.
- Code Mode's requirements and its cloud-provider rules: Run tool calls from code with Code Mode, read the same day.
- What
claude doctorprints: CLI reference, read the same day.
No Claude Code release was installed on this site's machine to check this page. Every claim about 2.1.331 is taken from Anthropic's changelog entry and the documentation pages named above.
Common questions
Do I still need to set CLAUDE_CODE_EXPERIMENTAL_CODE_MODE?
Yes. This release widens where Code Mode runs, not whether it runs: it is still an experimental opt-in, still off by default, and still switched on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1. On a cloud provider it also needs v2.1.331 or later.
Does Code Mode work on Bedrock now?
Yes, in terminal sessions, from 2.1.331. Anthropic's Code Mode page lists the exceptions: not through a gateway, not with Claude for Government, and with an Enterprise Admin Console sign-in it needs Agent Platform or Amazon Bedrock without the Mantle endpoint.
What does the API connectivity section in claude doctor show?
Whether the API can be reached, with the HTTP status or the error when it cannot, and a reason when the check did not run. It is part of claude doctor, which prints read-only diagnostics without starting a session.
What happens to managed plugin marketplaces on or after November 30, 2026?
2.1.331 announces that, in a release on or after November 30, marketplaces declared in managed extraKnownMarketplaces will update automatically by default. Set autoUpdate to false on an entry to keep that marketplace pinned.