Skip to content

Instantly share code, notes, and snippets.

View omarmciver's full-sized avatar
🏠
Working from home

Omar McIver omarmciver

🏠
Working from home
View GitHub Profile

Inside the Claude Code source

Anthropic's Claude Code CLI source code leaked onto GitHub recently. All of it. About 1,900 files and a lot of TypeScript.

I read through the key modules. What follows is a breakdown of the surprising parts: how the system actually works, where Anthropic made clever engineering choices, and where their approach diverges from OpenAI's Codex in ways you wouldn't guess from using either tool.

Lifecycle of a request

Here's what happens when you type a message into Claude Code: