ailiteracynepal 🇳🇵

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

  1. I Section

    4.1 Headless mode: --output-format, streams, exit codes

    0 / 1 exercises

  2. II Section

    4.2 Python SDK: ClaudeSDKClient and options

    0 / 1 exercises

  3. III Section

    4.3 TypeScript SDK: query, messages, SDK MCP

    0 / 1 exercises

  4. IV Section

    4.4 GitHub Actions: @claude, workflows, env

    0 / 1 exercises