A source-grounded CLI for exploring and verifying the Claude Agent SDK Python docs.
Fetch the raw Claude Code docs index, search the Python Agent SDK reference, and extract exact symbols, examples, and citations. Novel verification and context commands help agents use the SDK without guessing.
The recommended path installs both the claude-agent-sdk-python-docs-pp-cli binary and the pp-claude-agent-sdk-python-docs agent skill (Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, and other agents supported by the upstream skills CLI) in one shot:
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docsFor CLI only (no skill):
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --cli-onlyFor skill only — installs the skill into the same agents as the default command above, but skips the CLI binary (use this to update or reinstall just the skill):
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --skill-onlyTo constrain the skill install to one or more specific agents (repeatable — agent names match the skills CLI):
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --agent claude-code
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --agent claude-code --agent codexIf npx isn't available, install the CLI directly via Go (requires Go 1.26.4 or newer):
go install github.com/mvanhorn/printing-press-library/library/developer-tools/claude-agent-sdk-python-docs/cmd/claude-agent-sdk-python-docs-pp-cli@latestThis installs the CLI only — no skill.
Download a pre-built binary for your platform from the latest release. On macOS, clear the Gatekeeper quarantine: xattr -d com.apple.quarantine <binary>. On Unix, mark it executable: chmod +x <binary>.
Install the CLI binary first. The installer writes binaries to a per-user managed bin directory by default: $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows.
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --cli-onlyThen install the focused Hermes skill.
From the Hermes CLI:
hermes skills install mvanhorn/printing-press-library/cli-skills/pp-claude-agent-sdk-python-docs --forceInside a Hermes chat session:
/skills install mvanhorn/printing-press-library/cli-skills/pp-claude-agent-sdk-python-docs --forceRestart the Hermes session or gateway if the newly installed skill is not visible immediately.
Install both the CLI binary and the focused OpenClaw skill. The installer defaults binaries to a per-user bin directory ($HOME/.local/bin on macOS/Linux, %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows):
npx -y @mvanhorn/printing-press-library install claude-agent-sdk-python-docs --agent openclawRestart the OpenClaw session or gateway if the newly installed skill is not visible immediately.
This CLI ships an MCPB bundle — Claude Desktop's standard format for one-click MCP extension installs (no JSON config required).
To install:
- Download the
.mcpbfor your platform from the latest release. - Double-click the
.mcpbfile. Claude Desktop opens and walks you through the install.
Requires Claude Desktop 1.0.0 or later. Pre-built bundles ship for macOS Apple Silicon (darwin-arm64) and Windows (amd64, arm64); for other platforms, use the manual config below.
Manual JSON config (advanced)
If you can't use the MCPB bundle (older Claude Desktop, unsupported platform), install the MCP binary and configure it manually.
go install github.com/mvanhorn/printing-press-library/library/developer-tools/claude-agent-sdk-python-docs/cmd/claude-agent-sdk-python-docs-pp-mcp@latestAdd to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"claude-agent-sdk-python-docs": {
"command": "claude-agent-sdk-python-docs-pp-mcp"
}
}
}# Verify the CLI and local configuration without network or docs writes.
claude-agent-sdk-python-docs-pp-cli doctor --dry-run
# Fetch the docs index and Python Agent SDK page through the generated docs endpoints.
claude-agent-sdk-python-docs-pp-cli sync --resources pages --full
# Find the exact docs page and section for an SDK option or type.
claude-agent-sdk-python-docs-pp-cli search "ClaudeAgentOptions" --type pages --agent --select items.title,items.url
# Read a symbol with its anchor, examples, and citations.
claude-agent-sdk-python-docs-pp-cli symbol ClaudeSDKClient --agent
# Build a compact task bundle for an agent implementing SDK custom tools.
claude-agent-sdk-python-docs-pp-cli context "custom tools" --agent --select sections.title,examples.code,citations.url
These capabilities aren't available in any other tool for this API.
-
verify— Check Python code imports and qualified names against documented Claude Agent SDK symbols.Use this before trusting generated SDK code or reviewing a PR that imports claude_agent_sdk.
claude-agent-sdk-python-docs-pp-cli verify ./src --agent
-
diff— Compare current docs entity hashes against an optional baseline file.Use this to detect whether SDK docs facts have changed against a saved baseline.
claude-agent-sdk-python-docs-pp-cli diff --since latest --agent
-
audit-links— Validate internal anchors, guide links, and section references in the fetched docs corpus.Use this before relying on context bundles or citations in generated code reviews.
claude-agent-sdk-python-docs-pp-cli audit-links --agent
-
context— Build a compact source-cited docs bundle for one SDK implementation task.Use this when an agent needs exact docs context without loading full Markdown pages.
claude-agent-sdk-python-docs-pp-cli context "custom tools" --agent --select sections.title,examples.code,citations.url -
recipe— Compose a deterministic implementation scaffold from documented snippets and exact signatures.Use this when you need a copyable starting point constrained to documented SDK patterns.
claude-agent-sdk-python-docs-pp-cli recipe "streaming ClaudeSDKClient" --agent
-
map— Map functions, classes, types, options, tools, hooks, and message blocks by entity type.Use this to discover the available SDK surface before choosing an implementation path.
claude-agent-sdk-python-docs-pp-cli map --kind classes,types,options --agent
-
coverage examples— Report which documented symbols have extracted examples and which do not.Use this to find example-backed SDK APIs and documentation coverage gaps.
claude-agent-sdk-python-docs-pp-cli coverage examples --agent
claude-agent-sdk-python-docs-pp-cli search "ClaudeAgentOptions" --type pages --agent --select items.title,items.url,items.snippetReturns only the high-signal fields an agent needs instead of the full reference page.
claude-agent-sdk-python-docs-pp-cli context "custom tools" --agent --select sections.title,examples.code,citations.urlPairs --agent with --select so downstream agents get just examples, section titles, and citations.
claude-agent-sdk-python-docs-pp-cli verify ./src --agentFlags undocumented Claude Agent SDK Python identifiers with source citations.
claude-agent-sdk-python-docs-pp-cli map --kind classes,types,options --agentShows the SDK inventory by entity type before writing code.
Run claude-agent-sdk-python-docs-pp-cli --help for the full command reference and flag list.
Fetch Claude Agent SDK documentation pages
claude-agent-sdk-python-docs-pp-cli pages custom-tools- Fetch the Agent SDK custom tools guideclaude-agent-sdk-python-docs-pp-cli pages index- Fetch the Claude Code documentation indexclaude-agent-sdk-python-docs-pp-cli pages mcp- Fetch the Agent SDK MCP guideclaude-agent-sdk-python-docs-pp-cli pages overview- Fetch the Agent SDK overviewclaude-agent-sdk-python-docs-pp-cli pages permissions- Fetch the Agent SDK permissions guideclaude-agent-sdk-python-docs-pp-cli pages python- Fetch the Python Agent SDK referenceclaude-agent-sdk-python-docs-pp-cli pages quickstart- Fetch the Agent SDK quickstartclaude-agent-sdk-python-docs-pp-cli pages sessions- Fetch the Agent SDK sessions guideclaude-agent-sdk-python-docs-pp-cli pages structured-outputs- Fetch the Agent SDK structured output guide
# Raw Markdown response (binary response; use read/search/context for structured output)
claude-agent-sdk-python-docs-pp-cli pages custom-tools
# Dry run — show the request without sending
claude-agent-sdk-python-docs-pp-cli pages custom-tools --dry-run
# Structured agent output
claude-agent-sdk-python-docs-pp-cli context "custom tools" --agent --select sections.title,examples.code,citations.urlThis CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--jsonoutput to stdout, errors to stderr - Filterable -
--select id,namereturns only fields you need - Previewable -
--dry-runshows the request without sending - Read-only by default - this CLI does not create, update, delete, publish, send, or mutate remote resources
- Agent-friendly - docs intelligence commands return structured JSON with
--agentand--select - Agent-safe by default - no colors or formatting unless
--human-friendlyis set
Exit codes: 0 success, 2 usage error, 3 not found, 5 API error, 7 rate limited, 10 config error.
The generated pages endpoints and hand-authored docs intelligence commands read the public Claude Code docs over HTTPS. The docs intelligence commands intentionally reject --data-source local; use --data-source auto or --data-source live for those commands.
For structured retrieval, prefer read, search, symbol, examples, guide, or context over raw pages binary endpoints.
claude-agent-sdk-python-docs-pp-cli doctorVerifies configuration and connectivity to the API.
Config file: ~/.config/claude-agent-sdk-python-docs-pp-cli/config.json
Static request headers can be configured under headers; per-command header overrides take precedence.
Not found errors (exit code 3)
- Check the page key or symbol spelling.
- Run
claude-agent-sdk-python-docs-pp-cli map --agentto see documented symbols.
- Search returns no results. — Try a more specific SDK symbol, such as
ClaudeSDKClientorClaudeAgentOptions. - A symbol seems missing. — Run
claude-agent-sdk-python-docs-pp-cli map --kind classes,types,options --agentto inspect the parsed docs surface. - Generated code uses an undocumented SDK name. — Run
claude-agent-sdk-python-docs-pp-cli verify ./path --agentand follow the cited replacement or docs link.