ReleaseAnthropicAnthropicpublished Jun 3, 2026seen 5d

anthropics/claude-agent-sdk-typescript v0.3.162

anthropics/claude-agent-sdk-typescript

Open original ↗

Captured source

source ↗

v0.3.162

Repository: anthropics/claude-agent-sdk-typescript

Tag: v0.3.162

Published: 2026-06-03T21:31:34Z

Prerelease: no

Release notes:

What's changed

  • Refusal error messages now carry stop_reason: "refusal" and stop_details on the assistant message and in session transcripts, so SDK consumers can detect refusals without text-matching the error content
  • Agent SDK sessions on native builds now default to fast embedded find/grep search in Bash, matching the interactive CLI, instead of always registering the dedicated Grep/Glob tools. To keep the dedicated tools (e.g. to intercept searches via canUseTool or hooks), name them in the tools option or reference them in allowedTools

Update

npm install @anthropic-ai/claude-agent-sdk@0.3.162
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.162
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.162
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.162

Notability

notability 2.0/10

Routine SDK patch release, no notable traction.