An unofficial 46-page paper reconstructs Claude Code’s design from its TypeScript source. Its main finding: the core is a simple loop (call the model, run tools, repeat), and the real engineering is the harness around it: permissions, context management, extensions, subagents and session persistence.