Anthropic's Claude Code CLI Source Code Leaked via NPM Package Error

Here's what it means for you.
The leak of Anthropic's source code could influence the competitive landscape of AI development tools.
What happened
On March 31, 2026, Anthropic's Claude Code command-line interface source code was leaked via an exposed source map file on the NPM registry.
The Context
- Human error: The leak was attributed to a failure to exclude debugging source maps during production builds, a common oversight in software development.
- Community response: Developer communities quickly analyzed the exposed code, uncovering unreleased features and creating numerous forks on GitHub.
- No security breach: Anthropic confirmed that no user data or credentials were compromised in the incident.
The Number
lines of TypeScript source code were reconstructed from the leaked map file, showcasing the scale of the exposure and its potential implications for the software development community.
Takeaway
As Anthropic implements preventive measures, the incident may lead to increased scrutiny and innovation in AI tool development.
Insights by A47 Intelligence
Consumer tech and culture with frequent AI coverage.
"Influential tech outlet covering AI products and policy."
— A47 Editor
Claude Code leak exposes a Tamagotchi-style ‘pet’ and an always-on agent
The recent update of Claude Code by Anthropic, version 2.1.88, inadvertently leaked a substantial amount of its TypeScript code, totaling over 512,000 lines, after a user on X shared the source map file. This incident raises concerns about the securi...
Tech news, reviews, and analysis of consumer electronics, science, art, and culture.
"The Verge is a technology-focused media outlet known for in-depth reporting, product reviews, and coverage of the intersection between technology and culture."
— A47 Editor
Claude Code leak exposes a Tamagotchi-style ‘pet’ and an always-on agent
The recent update of Claude Code by Anthropic, version 2.1.88, inadvertently leaked a substantial amount of its TypeScript code, totaling over 512,000 lines, after a user on X shared the source map file. This incident raises concerns about the securi...
In-depth reporting on tech, policy, and science including AI.
"Respected analysis for technically savvy readers, including AI topics."
— A47 Editor
Entire Claude Code CLI source code leaks thanks to exposed map file
The source code for Claude Code, totaling over 512,000 lines, has been leaked due to an exposed JavaScript source map file included in a recent update. This incident has raised significant concerns regarding the security and integrity of the AI tool ...
In-depth coverage of hardware, software, science, and policy.
"Ars Technica provides expert technology news, hardware reviews, and analysis for a technically savvy audience."
— A47 Editor
Entire Claude Code CLI source code leaks thanks to exposed map file
The source code for Claude Code, totaling over 512,000 lines, has been leaked due to an exposed JavaScript source map file included in a recent update. This incident has raised significant concerns regarding the security and integrity of the AI tool ...
Bridging AI and people with explainers and essays.
"Newsletter translating AI concepts for broader audiences."
— A47 Editor
Anthropic Accidentally Leaked the Secret Roadmap of Claude Code
Anthropic has confirmed that it accidentally leaked parts of the source code for its AI coding assistant, Claude Code, due to a release packaging issue attributed to human error. This leak revealed unreleased features and internal codenames, raising ...