6-Chapter Guide

Inside Claude Code

A chapter-by-chapter guide to how Claude Code actually works, reverse-engineered from the v2.1.88 source code (512,000+ lines of TypeScript, 1,902 files). Not speculation — real code, real prompts, real architecture decisions.

Source exposed via npm source maps on March 31, 2026 · ~1 hour total reading

512K+

Lines of TS

1,902

Source Files

40+

Built-in Tools

v2.1.88

Analyzed

About this guide

This guide is based on analysis of the Claude Code source code that became publicly accessible through source maps in the npm distribution on March 31, 2026. All code excerpts and architecture details are from that snapshot (version 2.1.88). The original code is the property of Anthropic. This guide is educational — it explains how the system works so developers can learn from the architecture decisions.