TLDR Dev · ARTICLES & TUTORIALS

DIVING INTO CLAUDE CODE'S SOURCE CODE LEAK

read.engineerscodex.com15 min read

Summary from the TLDR Dev newsletter

On March 31, Anthropic accidentally leaked the full source code for Claude Code via a .map sourcemap file in an npm update, which was quickly mirrored and analyzed. This led to rapid "clean-room" rewrites in other languages to prevent legal troubles. The leak revealed unannounced features like KAIROS, a proactive 24/7 autonomous agent, Claude Code's memory architecture, and anti-distillation mechanisms designed to poison competitor training data.