What 512,000 Lines of Leaked Code Taught Me About Using Claude Code
When the Claude Code source leaked through that npm source map incident last week, I wrote about what was found inside — KAIROS, anti-distillation, the Undercover mode. That article was about what ...

Source: DEV Community
When the Claude Code source leaked through that npm source map incident last week, I wrote about what was found inside — KAIROS, anti-distillation, the Undercover mode. That article was about what Anthropic was hiding. This one is about what they were giving away for free, if you knew where to look. Post not found or has been removed. I spent the past several days cross-referencing the leaked TypeScript source against Anthropic's official documentation and building out configurations that actually work. The gap between "install Claude Code and start chatting" and "configure Claude Code as a programmable development platform" is enormous. Most developers are stuck on the first side. After reading 512,000 lines of source, I am firmly on the second. The Three Layers of Control Claude Code's architecture reveals a deliberate separation into three control surfaces, and understanding this separation is the key to everything that follows. The first layer is declarative. Your CLAUDE.md file —