Workflow Orchestration · Python SDK harness
Programmatic Harness for Building Custom Claude Code-Style Agents
The Claude Agent SDK (formerly Claude Code SDK) exposes Anthropic's agent loop, file editing, bash execution, sub-agents, and MCP connectors as a programmable Python/TypeScript library.
What This Workflow Does
The Claude Agent SDK (formerly Claude Code SDK) exposes Anthropic's agent loop, file editing, bash execution, sub-agents, and MCP connectors as a programmable Python/TypeScript library.
Agent, Harness & Requirements
The workflow runs on Claude Agent SDK inside a Python SDK harness. You embed the agent loop in Python and own the tools, state, and deployment.
- Python 3.10+ or Node.js
- `claude-agent-sdk`
- Anthropic API key
How It Works
- Install `claude-agent-sdk`
- Configure `ClaudeAgentOptions` with allowed tools and MCP servers
- Stream messages via `query()`
- Enforce custom `PreToolUse` permission hooks.
Command or prompt pattern
"Build a compliance audit agent that reads repository configs with Read/Grep tools while blocking Write/Bash mutations."Evidence & Source
Documented The provider's own documentation describes this workflow, its requirements, and its setup steps. Zyvibe checked the linked source on 2026-11-21 and has not reproduced the workflow.
Claude Agent SDK — Anthropic Platform
Open the sourceLimitations
- Tied to Anthropic's Claude models and API billing.
This record describes what the source states. It is not a review, a benchmark, or a recommendation. If the tool has changed since the check date, report it.