Claude Agent SDK 0.3.334 Ships, Cuts Auto-Compact to ~400K
Anthropic published version 0.3.334 of the Claude Agent SDK for TypeScript on December 1, 2026, as a tagged release in the anthropics/claude-agent-sdk-typescript repository on GitHub (GitHub). The release notes bring the SDK to parity with Claude Code v2.1.334 and list a set of incremental developer-facing changes rather than the sweeping MCP and runtime overhaul some third-party summaries have described.
For teams building on the SDK, the concrete change most likely to affect running systems is to automatic context compaction. The release notes state that auto-compact's per-model default has changed to "near 400K on most current 1M models," down from the prior 1M-token threshold, with the old behavior still reachable via `modelSettings.autoCompactWindow` (GitHub). Anyone running long-context agent sessions should check whether this rollout — described as active now with third-party providers — changes how often their agents truncate history mid-task.
What the release notes actually confirm
Beyond the compaction default, the documented changes are narrow and telemetry-focused: `duration_ms` was added to `task_notification` payloads for shell commands, so integrators can see how long a shell step ran; new `startup_failure_reason` values were added covering Consumer Terms review/acceptance and failed `--resume` targets; `old_cell_type` was added to `NotebookEdit` results for replacement and deletion operations; and `tool_use_result` was added to certain subagent and WebFetch result messages. The notes also list fixes touching `SYSTEM_PROMPT_DYNAMIC_BOUNDARY` behavior and WebSocket cleanup in the browser SDK (GitHub).
What is not confirmed
Separate aggregator coverage of this release has framed it as shipping "breaking MCP changes," updated MCP delivery, TypeScript core bundling, hooks, subagent architecture changes, and in-process MCP servers (codebumble.net). None of those items appear in the official v0.3.334 release notes reviewed for this story, and the GitHub tag does not itself state that MCP delivery or hooks were restructured. The notes also do not confirm supported platforms, licensing terms, or publication to npm, and no adoption figures accompany the release.
Why it matters
For developers maintaining agent integrations on top of this SDK, the verifiable change to act on now is the auto-compact default drop toward 400K tokens, which can alter how much conversation history survives in long-running agent sessions unless `modelSettings.autoCompactWindow` is set explicitly. Claims of broader breaking changes to MCP handling should be treated as unverified until Anthropic's own documentation states otherwise.


