Chapter 04
Level 4 — Programmatic Usage
Drive Claude Code from code — headless invocations, the Python and TypeScript SDKs, and CI via GitHub Actions.
In this chapter
Sections in this chapter
- I Section→
4.1 Headless mode: --output-format, streams, exit codes
0 / 1 exercises
- II Section→
4.2 Python SDK: ClaudeSDKClient and options
0 / 1 exercises
- III Section→
4.3 TypeScript SDK: query, messages, SDK MCP
0 / 1 exercises
- IV Section→
4.4 GitHub Actions: @claude, workflows, env
0 / 1 exercises