Anthropic Accidentally Exposes Source Code for Claude Code
Anthropic exposed 500,000+ lines of Claude Code source via npm, risking intellectual property loss and enabling attacker exploitation, with rapid code mirroring on GitHub.
- On Tuesday, March 31, 2026, Anthropic accidentally published Claude Code's source code to the public npm registry after uploading original code instead of finished versions.
- A misconfigured JavaScript map file intended for internal debugging inadvertently exposed more than 512,000 lines of code spanning roughly 1,900 TypeScript files in a zip archive.
- Security researchers discovered internal features including 'KAIROS' autonomous daemon logic, 'Undercover Mode' for stealth contributions, and a sophisticated 'Self-Healing Memory' architecture that competitors can now study.
- The leak provides competitors a blueprint for building similar agents, potentially challenging Claude Code's $2.5 billion annualized revenue and leveling the playing field for agentic AI development.
- Anthropic stated the incident was 'human error, not a security breach,' while the leak also exposed details of the unreleased Capybara model, a planned successor to Opus.
74 Articles
74 Articles
What does Anthropic’s Claude Code leak reveal? #tech
Anthropic confirms Claude Code source code leakage Anthropic confirmed that it leaked parts of Claude Code source code, describing the problem as a packaging issue caused by human error rather than a security breach. The leak involved a portion of Claude Code’s source, and the confirmation came…
Inside Claude Code's leaked source: swarms, daemons, and 44 features Anthropic kept behind flags
On Wednesday, security researcher Chaofan Shou discovered that Anthropic had shipped version 2.1.88 of Claude Code with a 59.8MB source map file attached to the npm package. Source maps are used to connect bundled production code back to the original source files during debugging, and this one connected the internet to 512,000 lines of unobfuscated TypeScript across 1,900 files. Anthropic pulled the package within hours, confirmed it was due to …
The AI startup has put the basic code of its programming agent Claude Code on the net. The incident reveals unknown functions – and raises questions to the company.
Anthropic blunder exposes 2,000 lines of Claude Code’s internal source code: What it reveals
From a competition perspective, a source code leak is bad news for Anthropic because it could give rival AI companies and software developers rare insight into how it built the viral coding tool.
Coverage Details
Bias Distribution
- 55% of the sources are Center
Factuality
To view factuality data please Upgrade to Premium
























