Claude Code source code leaks via a source-map file in the npm package
Confirmed
The takeaway
On March 31, 2026 Anthropic accidentally published the full Claude Code source, more than 512,000 lines of TypeScript in about 1,900 files, inside npm package v2.1.88 through a 59.8 MB source-map file.
Status
- Claim
Confirmed
- Our reporting
- High confidence
- Importance
- 3 of 5
- Last verified
- 29 September 2026
Your AI and this story
- GPT-6.2 AstraIn its training data
- Claude Opus 5.5In its training data
- Gemini 4 HydrogenIn its training data
- Grok 4.7In its training data
It happened before the cutoffs of all four assistants, so it can be in their training data.
Key facts
- Date: March 31, 2026; @anthropic-ai/claude-code v2.1.88 shipped cli.js.map (59.8 MB)
- 512,000+ lines of TypeScript across 1,906 files; 44 hidden feature flags reported
- Discovered by security researcher Chaofan Shou; post reportedly drew 16–21M views
- GitHub disabled more than 8,100 mirror repositories
What happened
The root cause was reportedly a missing *.map exclusion in .npmignore. The leak revealed upcoming features and model references. Anthropic pulled the package.
Why it matters
It was a rare look at the internals of the most widely used AI coding agent. It came days after the Mythos draft leak (Mar 26) and raised questions about Anthropic’s operational security.
Sources
3 sources from 3 sites. Numbers match the chips in the text.
3 sources: 1 press, 2 reactions
Press
- InfoQ: Claude Code source leakinfoq.com, press
Reactions
- DEV Community: The great Claude Code leak of 2026dev.to, discussion
- Penligent: Claude Code source map leak — what was exposedpenligent.ai, discussion
Changes
- Filed