Learn Claude Code Source
A hands-on guide to understanding Claude Code's architecture and implementation
Learning Path
| # | Chapter | Difficulty | Core Concepts | Status |
|---|---|---|---|---|
| 1 | Project Overview | Beginner | Architecture, modules, tech stack | ✅ |
| 2 | CLI Entrypoint | Beginner | Commander.js, startup optimization | ✅ |
| 3 | Tool System | Intermediate | Tool interface, registry, execution | ✅ |
| 4 | Command System | Intermediate | Slash commands, lazy loading | ✅ |
| 5 | Terminal UI (Ink) | Intermediate | React/Ink, layout engine | ✅ |
| 6 | Service Layer | Intermediate | API client, streaming | ✅ |
| 7 | Permission System | Intermediate | Permission modes, security | ✅ |
| 8 | MCP Integration | Advanced | MCP protocol, tool bridging | ✅ |
| 9 | Multi-Agent | Advanced | Sub-agents, team coordination | ✅ |
| 10 | Plugins & Skills | Advanced | Plugin loading, skill definitions | ✅ |
| 11 | State Management | Advanced | Context compression, memory | ✅ |
| 12 | Advanced Features | Expert | Sandbox, voice, IDE bridge | ✅ |
Quick Start
Option 1: Online Environment (Recommended)
Click the button above to get a full dev environment in 30 seconds — no local installation needed.
Option 2: Local Development
bash
git clone https://github.com/anthhub/open-claude-code.git
cd open-claude-code
bun install
# Run chapter 1 example
bun run ch1:structure
# Run the demo
cd demo && bun install && bun run main.ts