Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.330 ·

Experimental code mode can now be opted into from SDK and headless launches

SDK launches can opt into experimental code mode through CLAUDE_CODE_EXPERIMENTAL_CODE_MODE, and refusals now arrive as JSON notifications

Group of 2 You'll notice New Features
JSON All of v2.1.330
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.330,
What probably matters to youSection of the release

Unclear Whether CLAUDE_CODE_EXPERIMENTAL_CODE_MODE alone switches code mode on for SDK launches, and what it falls back to when unset, is not stated.

What

Code mode is an experimental way of running Claude Code. Headless mode means Claude Code runs without an interactive screen, often driven by another program through the SDK (a library for building on Claude Code). The rules for using code mode this way have changed:

  • The sdk-cli, sdk-ts and sdk-py entry points can now opt into code mode through CLAUDE_CODE_EXPERIMENTAL_CODE_MODE. Before, only the cli entry point was allowed and headless use was refused.
  • A launch check can still refuse, with reasons such as unprefixed_tools, headless_provider and admin_unread.
  • A refusal in headless mode now goes through a shared warning helper. In stream-json output it is sent as a notification with the key code-mode-opt-in. Before, a "Warning:" line went to the error output unless the format was json or stream-json.
  • Interactive startup now runs a new permission check after the onboarding screens. It can change the permission mode, which sets how freely Claude may act without asking, and then reload MCP server settings.

Why

Programs built on the SDK can now try code mode. If they read stream-json output, they can see why code mode was refused instead of missing a warning.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE` alone switches code mode on for SDK launches, and what it falls back to when unset, is not…

See this entry in the whole of v2.1.330 →

Feedback