Agent SDK
An SDK provided by Anthropic that allows developers to invoke the Claude Code runtime programmatically. It supports tool-call loops, context persistence, and multi-step reasoning coordination, enabling the embedding of Claude Agent capabilities into custom systems and automated workflows.
Core Facts
The core interface of the Agent SDK is a query() function; passing in a prompt and configuration starts the agent loop, and key configuration items include settingSources, allowedTools and systemPrompt.
The Cursor Agent SDK allows users to define an agent as a folder containing Markdown-format prompts and TypeScript tools, and to review, test, and version-control it like code.
The evaluation framework built into the Cursor Agent SDK uses the same toolchain as its internal security review agent.
Timeline (last 90 days)
OpenAI officially recommends migrating agents to the Agent SDK, migrating evaluations to PromptFu, and moving prompts back into developers' own codebases for management.
The alpha version of OpenAI's Agent SDK explicitly recommends reconciling uncertain tool effects before resuming execution.
The Agent SDK provides a local Playground for repeatedly test-running and debugging Agent behavior before deployment.
The Agent SDK provides a GitHub Replay capability that can turn real PRs into test data, letting an Agent replay and score against historical scenarios.
Trigger channels supported by the Agent SDK include: PRs, comments and CI events on GitHub, GitLab and Bitbucket; Slack mentions and direct messages; webhooks; and time-based scheduling.
Using the Agent SDK, Agents can be created from templates, such as a security review template, where each new PR is automatically reviewed and follow-up questions continue the original conversation context.
The complete engineering loop for an Agent is "write → test → replay → deploy".
Using the Agent SDK's built-in search tool to add web access requires no crawler code or configuration of an external search service.
Cursor's Agent SDK has entered the generally available stage.
Agent SDK adds an onFailure: "block" hook callback option, which directly blocks the action when the callback fails.
40 more timeline events
All Facts (20)
The core interface of the Agent SDK is a query() function; passing in a prompt and configuration starts the agent loop, and key configuration items include settingSources, allowedTools and systemPrompt.
80%VerifiedThe Cursor Agent SDK allows users to define an agent as a folder containing Markdown-format prompts and TypeScript tools, and to review, test, and version-control it like code.
70%VerifiedThe evaluation framework built into the Cursor Agent SDK uses the same toolchain as its internal security review agent.
65%VerifiedThe Cursor Agent SDK supports both managed deployment and self-hosted deployment.
65%VerifiedThe free credit can be used for the Claude API, Agent SDK, Managed Agent and Playground.
65%VerifiedThe OpenAI Agents SDK provides a Guardrails mechanism for intercepting inputs that should not enter the model and outputs that should not be returned to the user.
65%VerifiedOpenAI's Agent SDK takes a more engineering-oriented approach, natively supporting agent-to-agent hand-off mechanisms and built-in safety guardrails.
65%VerifiedAgent SDK is a development toolkit written in TypeScript and Python, and is the core component powering the Claude Code backend
65%VerifiedThe Claude Agent SDK has built-in tools such as Web Search and Web Fetch, giving the Agent the ability to search the internet and scrape web pages.
65%VerifiedThe newly released Agent SDK allows developers to define agents in code, write prompts in Markdown, build tools in TypeScript, and choose hosted or self-hosted deployment.
75%UnverifiedAnthropic's Agent SDK supports defining an agent's action space and termination conditions, with built-in safety constraints and behavioral boundaries.
85%UnverifiedOpenHands的核心架构基于Agent SDK引擎,利用ReAct框架和Function Calling机制实现代理推理和执行
85%Unverified智能体任务的Token消耗量通常是普通对话的数十倍
75%UnverifiedDeclarative agent definition means developers describe an agent's role, available tool set, and interaction constraints with structured configuration instead of hand-writing dispatch logic, message assembly, and loop control.
70%UnverifiedAgents built with the Cursor Agent SDK can run on Cursor's hosted service or be deployed on developers' own infrastructure, and it also provides evaluation tools.
60%UnverifiedLifecycle hooks are interception and injection points reserved by the Agent framework at key execution nodes (such as before a tool call, after a model response, and at session end).
60%UnverifiedClaude Opus 5.5's ecosystem includes Claude Code, Agent SDK, Managed Agents, and it can be called on Bedrock, Google Cloud, and Microsoft Foundry.
60%UnverifiedThird-party applications such as Conductor and OpenCloud are developed based on the Claude Agent SDK
60%UnverifiedOpenAI officially recommends migrating agents to the Agent SDK, migrating evaluations to PromptFu, and moving prompts back into developers' own codebases for management.
50%UnverifiedThe alpha version of OpenAI's Agent SDK explicitly recommends reconciling uncertain tool effects before resuming execution.
50%