Interactive Playbook

Understand Claude Code from real code paths

Language
Theme

Core Modules

Clickable module breakdown

Each module below is grounded in real source files and framed for learning: role, inputs, outputs, key files, and where to start reading.

Best starting point

Bootstrap + Query

If you only open two areas first, read bootstrap-runtime and query-engine.

Best differentiator

Tool runtime + permissions

Together they explain why Claude Code feels production-grade.

Advanced route

MCP + plugins + remote

These modules show the platform ambition of the project.

Keeps startup responsive while supporting many execution personalities inside one product.

Inputs

  • CLI args
  • Environment variables
  • Settings
  • Trust and policy state

Outputs

  • Selected runtime path
  • Initialized global state
  • Rendered REPL or headless loop

Why study it

  • Shows startup optimization patterns.
  • Shows trust-safe initialization sequencing.

Read first

  • src/entrypoints/cli.tsx
  • src/main.tsx

Key files

  • src/entrypoints/init.ts β€” Central initialization and shutdown wiring.
  • src/setup.ts β€” Startup setup and prewarming.