Reverse-engineer Claude Code sourcemaps to study its architecture, design choices, and reusable AI agent patterns
README
Reverse-engineering Claude Code's 512K+ lines of TypeScript β extracting the architecture, design decisions, and 11 transferable patterns that make a production AI Agent work.
Not just a code walkthrough. An architectural analysis that explains why each design choice was made, with alternatives compared.
buildTool() factory + Zod schema as prompt, 40+ tools with 18+ feature flags/simplify 3-agent parallel review| # | Topic | Core Source Files | Time |
|---|-------|-------------------|------|
| 00 | Index & Architecture Overview | β | 10min |
| 01 | Global Architecture | main.tsx, App.tsx, QueryEngine.ts | 30min |
| 02 | Tool System | Tool.ts, tools.ts, GlobTool.ts | 45min |
| 03 | Permission & Security | permissions.ts, filesystem.ts | 45min |
| [04](zh