(Alleged) Leaked source of Claude Code
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: emphasize leaked source and include original tweet

+18 -7
+18 -7
README.md
··· 1 - # Claude Code — Source Analysis 1 + # Claude Code — Leaked Source (2026-03-31) 2 + 3 + > **On March 31, 2026, the full source code of Anthropic's Claude Code CLI was leaked** via a `.map` file exposed in their npm registry. 4 + 5 + --- 6 + 7 + ## How It Leaked 8 + 9 + [Chaofan Shou (@Fried_rice)](https://x.com/Fried_rice) discovered the leak and posted it publicly: 2 10 3 - > An archive of [Anthropic](https://www.anthropic.com)'s official CLI tool **Claude Code** source code, for analysis and educational purposes. 11 + > **"Claude code source code has been leaked via a map file in their npm registry!"** 4 12 > 5 - > Reference: [Original tweet](https://x.com/Fried_rice/status/2038894956459290963) 13 + > — [@Fried_rice, March 31, 2026](https://x.com/Fried_rice/status/2038894956459290963) 14 + 15 + The source map file in the published npm package contained a reference to the full, unobfuscated TypeScript source, which was downloadable as a zip archive from Anthropic's R2 storage bucket. 6 16 7 17 --- 8 18 9 19 ## Overview 10 20 11 - Claude Code is a CLI tool that lets you interact with Claude directly from the terminal to perform software engineering tasks — editing files, running commands, searching codebases, managing git workflows, and more. 21 + Claude Code is Anthropic's official CLI tool that lets you interact with Claude directly from the terminal to perform software engineering tasks — editing files, running commands, searching codebases, managing git workflows, and more. 12 22 13 - This repository contains the `src/` directory extracted for study. 23 + This repository contains the leaked `src/` directory. 14 24 25 + - **Leaked on**: 2026-03-31 15 26 - **Language**: TypeScript 16 27 - **Runtime**: Bun 17 28 - **Terminal UI**: React + [Ink](https://github.com/vadimdemedes/ink) (React for CLI) ··· 241 252 242 253 --- 243 254 244 - ## License 255 + ## Disclaimer 245 256 246 - This repository is for analysis and educational purposes only. All original source code is copyrighted by [Anthropic](https://www.anthropic.com). 257 + This repository archives source code that was leaked from Anthropic's npm registry on **2026-03-31**. All original source code is the property of [Anthropic](https://www.anthropic.com).