# Claude Code 2.1.323 — Code Mode lets Claude call its tools from JavaScript

> Claude Code 2.1.323 adds an experimental Code Mode in which Claude writes JavaScript to call its own tools.

- Org: Anthropic
- Date: 2026-11-12
- Category: tool
- Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.323
- Canonical page: https://ai-tldr.dev/releases/anthropic-claude-code-2-1-323/

## In short

Claude Code 2.1.323 adds Code Mode, an experimental opt-in where Claude writes JavaScript to call its tools. Unknown model IDs now get a 1M-token context window by default instead of 200K.

## What it is

Code Mode is the headline of Claude Code 2.1.323: an experimental, opt-in mode in which Claude writes JavaScript to call its tools. Organizations can also turn it off for all their users.

## How it works

In Code Mode, Claude writes JavaScript code, and that code calls Claude Code's tools. Outside Code Mode, the release also lets a plugin state the Claude Code versions it supports in plugin.json, and the CLI will not install, update or load a plugin outside that range.

## Why it matters

Teams should check one default change: Claude Code now assumes a 1M-token context window for model IDs it does not recognize, up from 200K. Setting CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps the old 200K limit. The VS Code extension also now asks for trust before the first session in a new folder.

## Who it's for

Claude Code users and plugin authors

## Try it

npm i -g @anthropic-ai/claude-code@2.1.323

## Links

- [Release Notes](https://github.com/anthropics/claude-code/releases/tag/v2.1.323)
- [Repository](https://github.com/anthropics/claude-code)
