claude-agent-sdk-for-python
Expert guidance for building autonomous AI agents using Anthropic's Claude Agent SDK (Python). Covers: agent loop patterns (GTVR: gather context, take action, verify, repeat), ClaudeSDKClient and query() APIs, streaming vs single-mode execution, custom tool design with @tool decorator, MCP server integration, hooks for runtime control, permission models, authentication (API key vs subscription OAuth, token lifecycle, environment handling), context management, subagent orchestration, and production deployment patterns. Use when: building custom agents, implementing tool pipelines, designing multi-agent systems, integrating external services via MCP, configuring authentication for SDK clients, or deploying agents to production. Not for: basic chat completion or non-agentic workflows.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Features and purpose
Expert guidance for building autonomous AI agents using Anthropic's Claude Agent SDK (Python). Covers: agent loop patterns (GTVR: gather context, take action, verify, repeat), ClaudeSDKClient and query() APIs, streaming vs single-mode execution, custom tool design with @tool decorator, MCP server integration, hooks for runtime control, permission models, authentication (API key vs subscription OAuth, token lifecycle, environment handling), context management, subagent orchestration, and production deployment patterns. Use when: building custom agents, implementing tool pipelines, designing multi-agent systems, integrating external services via MCP, configuring authentication for SDK clients, or deploying agents to production. Not for: basic chat completion or non-agentic workflows.
Quick start
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
Guides ↗Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-23
- Index updated
- 2026-01-23
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!