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.

Evidence DocumentedAgent Claude Agent SDKHarness Python SDK harnessAdded 21 Nov 2026

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.

Written for Solo builders & automation engineers. Goal: Workflow Orchestration.

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

  1. Install `claude-agent-sdk`
  2. Configure `ClaudeAgentOptions` with allowed tools and MCP servers
  3. Stream messages via `query()`
  4. 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

Anthropic documentation · checked 21 Nov 2026

Open the source

Limitations

  • 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.