The Claude Code Changelog
All Episodes
Claude Code 2.1.323: Code Mode and Context Window Traps

Claude Code 2.1.323: Code Mode and Context Window Traps

0:00|0:00

A deep dive into Claude Code 2.1.323, examining experimental Code Mode and critical default shifts like the 1M context assumption for unrecognized models. We also cover crucial updates to agent-to-agent message caps, plugin validation, and sandbox symlink permissions.


Chapter 1

Claude Code 2.1.323: Code Mode and the Defaults That Changed

Lachlan Reed

This one's brought to you by Jellypod AI, and it's about Claude Code 2.1.323, which landed November 12th, 2026. The top line is Code Mode, an experimental opt-in where Claude writes JavaScript to call its tools, instead of sending every call as a separate tool call.

James Turner

Here's why that matters. Say the agent needs to read twenty files and run three checks. Today that's twenty three round trips, and each one has a model response in between. With Code Mode, it can write one small script with loops and conditions, and handle the intermediate results in a single pass. The reported benefit is fewer tokens and less waiting.

Lachlan Reed

Now, the how-to is a bit thin, mate. The changelog points to code.claude.com slash docs slash code mode for turning it on, or off for a whole organization. But one write-up, from clauding.de, fetched that page and got a 404. So the docs page looks like it's still coming. It's off by default, so you'll want to check there before you flip anything.

James Turner

And the caveat is real. Code that calls tools is harder to review than a list of calls. An allow list tells you which tools can run. It doesn't tell you what a script does with them. That's the author's interpretation, but it's why Anthropic marked it experimental and gave orgs an off switch.

Lachlan Reed

Okay, but the bits more likely to bite you this week are the defaults. First one: for a model ID Claude Code doesn't recognize, the assumed context window jumps from 200,000 tokens to one million.

James Turner

Which is nasty if you're routing a smaller third party model through a gateway. Once the session passes its real limit, it can fail on every turn until you run /clear. The fix is to set CLAUDE_CODE_DISABLE_1M_CONTEXT equals 1 in your environment, and that keeps the 200,000 assumption. Do it before you update, not after.

Lachlan Reed

Second one. The number of messages sessions on the same machine can send each other without asking you goes from roughly twenty to a hundred thousand. That applies to Claude Desktop too. If you run agents talking to each other, that old brake after twenty messages is basically gone. So set your own limits.

James Turner

Plugin authors get something useful. plugin.json now accepts engines, with the key claude-code. A plugin outside its stated version range won't be installed, updated or loaded, and install picks the newest version that fits. Also, claude plugin validate now type checks a plugin's TypeScript hooks module. Findings are warnings, and the strict flag turns them into failures, so it slots straight into CI.

Lachlan Reed

There's also CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES, available since 2.1.318. Set it to 1 and you turn off subagent progress summaries, and the extra requests that write them. If you've been watching tokens vanish while subagents run, that's your first knob to try.

James Turner

And this ties back to the recent sandbox and permission mode episodes. In the Bash sandbox, write access no longer counts when it comes through a symlink in a writable folder that leads somewhere else. git worktree add, move and remove now fail read only there. So if a worktree script suddenly errors in the sandbox, that's why.

Lachlan Reed

Two smaller ones I like. If you ask for auto mode, with the flag or defaultMode auto, and auto mode's unavailable, it now starts in Manual mode, which asks first. Before, it could land somewhere that allowed more. And the first generation MCP client is gone. If you set MCP_SDK_GENERATION to v1, you get the v2 client in a compatibility mode instead.

James Turner

So the checklist is short. Set the one million context variable if you run smaller models, cap your multi session loops yourself, and treat Code Mode as something to test on a throwaway project, once those docs appear. Don't assume it's safe just because it's fast.