Source · release
Claude Code releases 2.1.302 and 2.1.303
Summary
Claude Code 2.1.302 is a large release that changes defaults for headless and SDK use.
Fork subagents are now on everywhere, the desktop app and VS Code always run subagents in
the background, and headless sessions on third-party providers start in default
permission mode. It also fixes MCP servers on the 2026-07-28 protocol that omit some
fields. 2.1.303 only lists "bug fixes and reliability improvements".
Key points
CLAUDE_CODE_AUTO_MODE_MODELpicks the model used by the client-side auto mode classifier. With the server-side classifier, a conversation too long for the safety check is now compacted instead of every checked tool call being denied.- Fork subagents (
subagent_type: "fork") are on by default inclaude -p, the Agent SDK, the desktop app, and VS Code;CLAUDE_CODE_FORK_SUBAGENT=0turns them off. claude -pand Agent SDK sessions with no permission mode start indefaultmode on third-party providers (with telemetry off or on a fresh install);--permission-mode autokeeps auto.- At most 12 prompt or agent hooks for one event run at a time.
- Fix: MCP servers that negotiate protocol 2026-07-28 but omit
resultType,ttlMs, orcacheScopeshowed no tools or failed every call. - Fix: a prompt cache miss when a tool added mid-session was reloaded through ToolSearch or after compaction. The Read tool now refuses image sources over 128 MB.
/configgains an "Idle compaction" toggle. A notice says standalone Claude Design (claude.ai/design) closes by 2026-12-14.
Why it matters
Headless and SDK runs now behave more like the terminal, which matters for unattended pipelines: check whether a script relied on auto permission mode or foreground subagents. The MCP fix shows that servers on the new spec still vary in which fields they send.