Source · release

Claude Agent SDK (TypeScript) v0.3.335

Author
Anthropic
Published
3 December 2026
Added
3 December 2026
Original
https://github.com/anthropics/claude-agent-sdk-typescript/releases/tag/v0.3.335

Summary

Version 0.3.335 of @anthropic-ai/claude-agent-sdk (2026-12-03) matches Claude Code 2.1.335. It adds the Interrupt hook event and more precise rate-limit usage, and it changes two tool results that agents may parse.

Key points

  • Install with npm install @anthropic-ai/claude-agent-sdk@0.3.335.
  • Interrupt hook event with an InterruptHookInput type: tells your code whether a person, another session, or the system stopped the turn.
  • Usage: get_usage rate-limit windows and model_scoped rows gain utilization_precise when the server sends it.
  • Behaviour changes to check:
    • The Agent tool's tool_use_result content no longer starts with the list of tools the subagent called.
    • PDF page images from Read are now read from the tool_result (or in a PostToolUse hook that the call waits for), not from file.outputDir afterwards.

Why it matters

Code that parsed the subagent tool list or read PDF page images from disk after the call needs updating. The Interrupt hook lets hosted agents tell user aborts from system stops.