Anthropic Accidentally Leaks Full Claude Code CLI Source Code: 512K Lines of TypeScript Exposed via npm Error
Anthropic confirmed a major source code leak of its Claude Code CLI tool on April 1, 2026, caused by an npm packaging error. Approximately 512,000 lines of TypeScript, including unreleased features like KAIROS and BUDDY, were exposed. The leak was discovered by security researcher Chaofan Shou.








