Claude Code Source Leak: How a Simple npm Mistake Exposed Anthropic’s Internal AI Engine
A recent incident involving Anthropic has drawn significant attention across the cybersecurity and AI communities after internal source code for its AI coding assistant, Claude Code, was unintentionally exposed online. What Happened? Anthropic confirmed that a release of Claude Code (version 2.1.88) accidentally included a source map file within its npm package. This file, typically used for debugging, allowed anyone to reconstruct the original TypeScript source code—effectively exposing the internal workings of the application. The leak consisted of roughly 500,000 lines of code spread across nearly 2,000 files, giving a detailed look into the architecture, tools, and orchestration logic behind the AI-powered coding assistant. Anthropic clarified that the incident was caused by a packaging error and human oversight, not an external breach or cyberattack. Importantly, no customer data or credentials were compromised. What the Leak Revealed The exposed codebase provided deep insig...