TLDR · PROGRAMMING, DESIGN & DATA SCIENCE

INSIDE THE CLAUDE CODE SOURCE

links.tldrnewsletter.com9 min read

Summary from the TLDR newsletter

Claude Code CLI's source code was recently leaked on GitHub. This post breaks down how the system works, where Anthropic made clever engineering choices, and where Anthropic's approach diverges from OpenAI's Codex. Claude Code is about 500,000 lines of TypeScript, with the actual API call comprising maybe 200 of them. Everything else in the harness.