Anthropic Claude Code Source Code Leaked: What Happened, Why It Matters, and What Comes Next
The timing could not have been worse. On March 31, 2026, one of the most closely watched AI companies in the world accidentally published the source code of its most popular product, and the intern...

Source: DEV Community
The timing could not have been worse. On March 31, 2026, one of the most closely watched AI companies in the world accidentally published the source code of its most popular product, and the internet noticed within minutes. Introduction On March 31, 2026, Anthropic accidentally published the entire source code of Claude Code, its flagship AI coding agent, inside an npm package. Nobody hacked their servers. Nobody broke in. A missing .npmignore entry shipped a 59.8 MB source map containing 512,000 lines of unobfuscated TypeScript across roughly 1,900 files. Within hours, the code was mirrored, analyzed, rewritten in Python and Rust, and studied by tens of thousands of developers worldwide. GitHub repositories went up faster than Anthropic's legal team could file takedown requests. And right in the middle of all of it, Anthropic was quietly talking to Goldman Sachs, JPMorgan, and Morgan Stanley about a $60 billion IPO. This was not just an embarrassing technical mistake. It was a full-sc