Skip to content

Learn Claude Code Source ​

A hands-on guide to understanding Claude Code's architecture and implementation

Learning Path ​

#ChapterDifficultyCore ConceptsStatus
1Project OverviewBeginnerArchitecture, modules, tech stack✅
2CLI EntrypointBeginnerCommander.js, startup optimization✅
3Tool SystemIntermediateTool interface, registry, execution✅
4Command SystemIntermediateSlash commands, lazy loading✅
5Terminal UI (Ink)IntermediateReact/Ink, layout engine✅
6Service LayerIntermediateAPI client, streaming✅
7Permission SystemIntermediatePermission modes, security✅
8MCP IntegrationAdvancedMCP protocol, tool bridging✅
9Multi-AgentAdvancedSub-agents, team coordination✅
10Plugins & SkillsAdvancedPlugin loading, skill definitions✅
11State ManagementAdvancedContext compression, memory✅
12Advanced FeaturesExpertSandbox, voice, IDE bridge✅

Quick Start ​

Open in GitHub Codespaces

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