Claude Agent SDK (TypeScript) 0.3.319 release notes
Claude Agent SDK (TypeScript) 0.3.319 was released on November 6, 2026. The latest version is 0.3.332.
Release notes
What's changed
- Added MCP task support in SDK sessions (not on Bedrock, Vertex or Foundry): with
CLAUDE_AUTO_BACKGROUND_TASKS=1and streaming input, an MCP task runs in the background withtask_type"mcp_task" - Fixed the OpenTelemetry
claude_code.session.countmetric countingprewarm()processes that were never claimed; a pre-started process now counts once, whenSpareProcess.claim()succeeds - Fixed
session_writes_lostlisting the wrong session intranscript_session_idsafter/clearin a session resumed from a transcript file outside the projects folder - Improved
deleteSession()to reject withENOTEMPTYif the session's folder could not be fully deleted - Changed
session_writes_lostto be sent only when the CLI exits 0; a run that ends on an error result now gets only the stderr line - Updated to parity with Claude Code v2.1.319
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.319
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.319
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.319
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.319
Source: GitHub release v0.3.319