A massive leak of Anthropic’s Claude Code has exposed internal systems, features, and engineering decisions behind one of the fastest growing AI tools.
Quick Summary – TLDR:
Over 500,000 lines of Cl...
## 正文
A massive leak of Anthropic’s Claude Code has exposed internal systems, features, and engineering decisions behind one of the fastest growing AI tools.
Quick Summary – TLDR:
Over 500,000 lines of Claude Code source code were accidentally exposed via npm.
Anthropic says it was a human error, not a breach, and no user data was compromised.
Leak reveals KAIROS background agent, memory systems, and undercover mode.
Security experts warn the leak could help attackers exploit the system.
What Happened?
Anthropic accidentally published a source map file in Claude Code version 2.1.88, making it possible for developers to reconstruct its internal codebase. The issue was quickly discovered and widely shared online, leading to rapid analysis of the system.
The company confirmed the mistake and removed the affected version, stating that the incident did not expose sensitive customer data.
Claude code source code has been leaked via a map file in their npm registry!
Code:
https://t.co/jBiMoOzt8G
pic.twitter.com/rYo5hbvEj8
— Chaofan Shou (@Fried_rice)
March 31, 2026
A Massive Code Leak With Industry Impact
The exposed file contained nearly
512,000 lines of code across around 2,000 internal files
, offering an unusually deep look into how Claude Code works behind the scenes.
Developers who examined the leak found details about:
Internal APIs and telemetry systems.
Encryption related logic and communication layer
来源:
