Published 8 months ago • loading... • Updated 8 months ago
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.
Bloomberg Technology discuss Anthropic’s human-error exposure of Claude Code’s source code and its rapid replication online, following an earlier leaked blog post