[KongchangAI]
ProductClaude Code SDK

Claude Agent SDK

The Claude Agent SDK is a software development kit provided by Anthropic to help developers build custom AI agents based on the Claude Code Agent Harness framework. The SDK supports both Python and TypeScript, providing standardized interfaces and toolchains that enable developers to extend and customize AI agent behaviors and capabilities. It is applicable to scenarios such as automated task execution and workflow orchestration.

Core Facts

Timeline (last 90 days)

Oct 13

一项针对12个主流Agent框架的调查发现,没有任何一个框架在文档中提供以货币计价的工具调用预算控制(C5全部为否)

Unverified50%
Oct 12

Pexafy's official documentation lists tested configurations for the OpenAI Agents SDK, Claude Agent SDK, Google ADK, CrewAI, LlamaIndex, Mastra and Strands Agents.

Unverified50%
Oct 12

Subagents in the Claude Agent SDK cannot spawn their own subagents, so the architecture should be a flat fan-out rather than a tree structure.

Unverified50%
Oct 12

The Claude Agent SDK's PreToolUse and PostToolUse hooks, combined with matchers such as Write|Edit, can block, modify, or log tool calls.

Unverified50%
Oct 12

Pink Agentic AI Payments conducted a systematic review of the 12 most popular Agent frameworks and concluded that none of the frameworks documents a currency-denominated tool-call budget control (C5).

Unverified50%
Oct 11

Both SDKs define tools using one function paired with one decorator — Claude uses the tool decorator and OpenAI uses the function_tool decorator.

Unverified50%
Oct 11

In Claude, guards are called pre_tool_use hooks paired with a deny response; in OpenAI, the counterpart is tool_input_guardrail, which returns a rejection payload.

Unverified50%
Oct 11

Claude's sub-agents are defined via options.agents, and the background=False field is used to make the main agent wait for the sub-agent to return before the main agent composes its reply.

Unverified50%
Oct 11

Both the Claude Agent SDK and the OpenAI Agents SDK take over the Agent Loop, greatly simplifying the model invocation, tool dispatching, history maintenance, and loop control logic that previously had to be written by hand.

Unverified50%
Oct 11

The Claude Agent SDK invokes via query (with two core fields), while the OpenAI Agents SDK uses Runner.run_async with agent and query passed in.

Unverified50%

20 more timeline events

All Facts (20)

Verified

Claude Agent SDK supports multi-step reasoning, tool calls, and environment interaction, including capabilities such as code writing, file operations, and command execution.

65%
Verified

The 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%
Unverified

claude-memory-compiler采用三层自动化流水线架构:会话捕获层(Hooks机制)、知识提取层(Claude Agent SDK)和知识编译层(LLM Compiler)

90%
Unverified

该方案的所有数据和推理都在本地完成,不会外传到第三方服务器,适合对数据隐私有严格要求的企业场景

90%
Unverified

通过设置环境变量ANTHROPIC_BASE_URL指向LiteLLM Proxy的本地端口,可以将Claude Agent SDK的请求重定向到本地模型,无需修改SDK源码

90%
Unverified

2024-2025年,Anthropic Claude Agent SDK、OpenAI Agents SDK、Google ADK等Agent框架集中涌现

85%
Unverified

Claude Agent SDK提供工具注册与调用、多轮对话上下文管理、智能体间消息传递与协调机制以及结构化输出控制等能力

85%
Unverified

框架能力与推理能力解耦是AI工程领域的重要趋势,Claude Agent SDK提供Agent编排框架,实际推理可由任何兼容模型完成

75%
Unverified

该方案的整体架构分为三层:Agent Framework层(任务管理和调度)、Claude Agent SDK层(核心Worker)、LiteLLM Proxy层(请求代理转发)

60%
Unverified

The solution of connecting the Claude Agent SDK to a local large model via LiteLLM Proxy can reduce API call costs from nearly $1 per simple task to almost zero.

60%
Unverified

一项针对12个主流Agent框架的调查发现,没有任何一个框架在文档中提供以货币计价的工具调用预算控制(C5全部为否)

50%
Unverified

Pexafy's official documentation lists tested configurations for the OpenAI Agents SDK, Claude Agent SDK, Google ADK, CrewAI, LlamaIndex, Mastra and Strands Agents.

50%
Unverified

The Claude Agent SDK's PreToolUse and PostToolUse hooks, combined with matchers such as Write|Edit, can block, modify, or log tool calls.

50%
Unverified

Subagents in the Claude Agent SDK cannot spawn their own subagents, so the architecture should be a flat fan-out rather than a tree structure.

50%
Unverified

Pink Agentic AI Payments conducted a systematic review of the 12 most popular Agent frameworks and concluded that none of the frameworks documents a currency-denominated tool-call budget control (C5).

50%
Unverified

Triggering max_turns means the agent has timed out, which is an abnormal rather than a normal termination signal — Claude returns result error and OpenAI throws max turn exceeded, and neither should be treated as a normal stop answer.

50%
Unverified

Both the Claude Agent SDK and the OpenAI Agents SDK take over the Agent Loop, greatly simplifying the model invocation, tool dispatching, history maintenance, and loop control logic that previously had to be written by hand.

50%
Unverified

The Claude Agent SDK invokes via query (with two core fields), while the OpenAI Agents SDK uses Runner.run_async with agent and query passed in.

50%
Unverified

Both SDKs define tools using one function paired with one decorator — Claude uses the tool decorator and OpenAI uses the function_tool decorator.

50%
Unverified

In Claude, guards are called pre_tool_use hooks paired with a deny response; in OpenAI, the counterpart is tool_input_guardrail, which returns a rejection payload.

50%

Source Articles