Complete TypeScript source code of Anthropic's Claude Code CLI tool (v2.1.88), leaked via npm source map on March 31, 2026.
| Directory | Content |
|---|---|
src/ |
1,884 TypeScript source files — the complete Claude Code codebase |
vendor/ |
Vendored dependencies |
node_modules/ |
npm dependencies |
claude-code-2.1.88.tgz |
Original npm package |
Anthropic accidentally shipped a cli.js.map source map file (57MB) in the npm package. The sourcesContent field contained the full original TypeScript source. Anthropic confirmed it was a "release packaging issue caused by human error."
- ~700,000 lines of code
- 1,884 TypeScript files
- 44 feature flags (unreleased features)
- Full slash commands, built-in tools, and internal system prompts
For research, learning, and architectural reference. Understanding how production AI coding tools are built helps the community build better tools.
Archived by Bo1202 — Creator of Aivy OS, a local AI agent operating system with 30+ tools, IDE workspace, persistent memory, and desktop/browser automation.