@anthropic-ai/claude-agent-sdk
Anthropic Claude Agent SDK (TS) by Anthropic
SDK for building AI agents with Claude Code's capabilities. Programmatically interact with Claude to build autonomous agents that can understand codebases, edit files, and execute workflows.
npm install @anthropic-ai/claude-agent-sdk@0.3.310Anthropic Claude Agent SDK (TS) (@anthropic-ai/claude-agent-sdk) is currently at v0.3.310 on NPM (published 2026-10-23), with a 90-day stability score of 65/100 (C+) and HIGH schema drift risk across 78 releases in the past 90 days. 0.3.x updates query() async generator message types, CanUseTool permission callback signatures, and mcpServers stdio/SSE config structure. Production teams should pin npm install @anthropic-ai/claude-agent-sdk@0.3.310 rather than using unpinned @latest tags.
Breaking Changes & Tool Schema Drift Analysis
0.3.x updates query() async generator message types, CanUseTool permission callback signatures, and mcpServers stdio/SSE config structure.
queryCanUseToolMcpServerConfigSDKMessagefor await (const msg of query({ prompt: "fix bug", options: { allowedTools: ["Bash"] } })) {
console.log(msg);
}for await (const msg of query({
prompt: "fix bug",
options: { permissionMode: "acceptEdits", allowedTools: ["Bash", "Edit"] }
})) {
console.log(msg);
}Frequently Asked Questions: @anthropic-ai/claude-agent-sdk
What is the latest version of @anthropic-ai/claude-agent-sdk on NPM?
As of 2026-10-24, the latest stable version of @anthropic-ai/claude-agent-sdk (Anthropic Claude Agent SDK (TS) by Anthropic) on NPM is v0.3.310, published on 2026-10-23. It has shipped 78 releases in the last 90 days.
Does @anthropic-ai/claude-agent-sdk v0.3.310 have breaking changes or MCP schema drift risk?
@anthropic-ai/claude-agent-sdk currently carries a HIGH schema drift risk rating with a Stability Score of 65/100 (Grade C+). 0.3.x updates query() async generator message types, CanUseTool permission callback signatures, and mcpServers stdio/SSE config structure.
How do I safely pin @anthropic-ai/claude-agent-sdk in production?
Avoid unpinned @latest tags in production agent configs. Pin the exact verified version using `npm install @anthropic-ai/claude-agent-sdk@0.3.310` and monitor query, CanUseTool, McpServerConfig, SDKMessage for parameter or schema changes.
Get Instant Breaking-Change Alerts for @anthropic-ai/claude-agent-sdk
We poll NPM and anthropics/claude-agent-sdk-typescript every 30 minutes. Get an email with the exact diff when @anthropic-ai/claude-agent-sdk ships a breaking release beyond v0.3.310.
Recent NPM Releases
Verified release timestamps from live registry metadata.
Related in Agent SDKs
View Hub ->OpenAI Node SDK • Stability B (78)
Anthropic TypeScript SDK • Stability C+ (70)
Model Context Protocol TypeScript SDK • Stability B (78)
Vercel AI SDK Core • Stability C+ (70)
Vercel AI SDK OpenAI Provider • Stability B (78)
Vercel AI SDK Anthropic Provider • Stability B (78)