Claude Agent SDK 0.3.317
Anthropic · SDK / library · v0.3.317 · Released
View official release notes ↗ Copy link
What's changed
- Added
onFailureto hook matchers: with"block", a hook that throws or returns invalid output blocks the action - Added a warning message in the stream when a hook callback fails
- Added a
session_writes_lostsystem message, sent after the last result when a full disk or disk quota kept the CLI from saving the session transcript or ~/.claude.json - Added
initialize_not_firsttostartup_failure_reason, for a--await-initializelaunch whose first stdin line is not the initialize request - Added
task.descriptionto the TaskCreate tool'stool_use_result: the description the task was created with - Added
lossytoreadFile()utf-8 answers:truewhen decoding replaced bytes that are not valid UTF-8 - Removed the
file_unchangedvariant ofFileReadOutputinsdk-tools.d.ts; a repeated Read now returns the file content - Fixed
setMcpServersclosing a folder's.mcp.jsonand local-scope MCP servers in sessions started withprewarm()and bound withSpareProcess.claim() - Updated to parity with Claude Code v2.1.317
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.317 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.317 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.317 # or bun add @anthropic-ai/claude-agent-sdk@0.3.317
Source: Anthropic's official Claude Agent SDK release notes at github.com. Text reproduced from the source for reference; all rights belong to Anthropic. Patchwire is not affiliated with Anthropic.
Get new Claude Agent SDK releases by email
Every AI dev-tool release, including Claude Agent SDK, in one short email each morning. Free. The digest is launching soon; join the list to get it from day one.
By subscribing you agree to our Terms and Privacy Policy. Unsubscribe anytime.
Nearby Claude Agent SDK releases
Full Claude Agent SDK changelog →
More from Anthropic
Other Anthropic changelogs: Claude Code · Claude apps · Claude API · Anthropic Python SDK · Anthropic TypeScript SDK. All Anthropic releases →