Claude Code Anatomy
Anatomy of Claude Code's production agent system, exposed by the 2026-03 npm sourcemap leak — execution loop, tool system, memory, and unreleased features.
About this series
A March 2026 npm sourcemap leak exposed the internals of Claude Code in full. Four-stage execution loop, seven modes, tool system, memory layers, unreleased features — production agent design has rarely been this visible.
Useful for builders creating their own agents, Claude Code power users wanting to know how it works, and analysts treating AI tool architecture as study material.
Read in order: architecture → tools → memory → hidden features. As you go, separate "what we can borrow" from "what only makes sense inside Claude" — that's how you end up with patterns transferable to your own system.
5 episodes
- 01
- 02
- 03
- 04
- 05