Skip to main content
ClaudeWave
ES, Spanish
anthropics / Subagents

claude-agent-sdk-python

  • 8.3k estrellas
  • 1.4k forks
  • 579 issues abiertos
  • Lenguaje: Python
  • Licencia: MIT
  • actualizado

Instalación

Terminal
git clone https://github.com/anthropics/claude-agent-sdk-python && cp claude-agent-sdk-python/*.md ~/.claude/agents/
  1. Clone the repository and copy the agent .md definitions into ~/.claude/agents (or .claude/agents inside a project).
  2. Start a new Claude Code session to load the agents.
  3. Delegate work to them with the Task/Agent tool or by name.

Nota editorial

The Claude Agent SDK for Python is an official Anthropic library that lets developers drive Claude Code programmatically from Python applications. The core interface is a `query()` async function that returns an `AsyncIterator` of typed response messages, including `AssistantMessage` and `TextBlock` objects, while `ClaudeSDKClient` adds support for multi-turn interactive sessions, custom tools, and hooks. Custom tools are defined with a `@tool` decorator and run as in-process MCP servers via `create_sdk_mcp_server()`, which avoids the subprocess overhead and IPC latency of traditional external MCP servers. Tool permissions are managed through `allowed_tools`, `disallowed_tools`, and a `permission_mode` option such as `acceptEdits`. Hooks let developers intercept specific points in the Claude Code agent loop for deterministic processing. The package bundles the Claude Code CLI automatically, requiring no separate installation. Python developers building autonomous coding agents, CI pipelines, or any workflow that orchestrates file reads, writes, and shell commands through Claude Code are the primary audience.

README

Resumen de Subagents

README no disponible. Visita el repo en GitHub para la documentación completa.
Preguntas frecuentes

Lo que la gente pregunta sobre claude-agent-sdk-python

¿Qué es anthropics/claude-agent-sdk-python?

anthropics/claude-agent-sdk-python es subagents para el ecosistema de Claude AI con 8.3k estrellas en GitHub.

¿Cómo se instala claude-agent-sdk-python?

Puedes instalar claude-agent-sdk-python clonando el repositorio (https://github.com/anthropics/claude-agent-sdk-python) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar anthropics/claude-agent-sdk-python?

Nuestro agente de seguridad ha analizado anthropics/claude-agent-sdk-python y le ha asignado un Trust Score de 99/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene anthropics/claude-agent-sdk-python?

anthropics/claude-agent-sdk-python es mantenido por anthropics. La última actividad registrada en GitHub es del 2026-10-22, con 579 issues abiertos.

¿Hay alternativas a claude-agent-sdk-python?

Sí. En ClaudeWave puedes explorar subagents similares en /categories/agents, ordenados por popularidad o actividad reciente.