{"repo":"yasasbanukaofficial/claude-code","free":true,"listed":false,"github":"https://github.com/yasasbanukaofficial/claude-code","clone":"git clone https://github.com/yasasbanukaofficial/claude-code.git","description":"🚀 Open source Claude Code CLI source code. Advanced AI Agent for developers. Includes TypeScript codebase for LLM tool-calling, agentic workflows, and terminal UI. Remember this is just the skeleton not the brain itself. Found by Chaofan Shou.","language":"TypeScript","stars":3960,"topics":["claude-ai","claude-code","leaked-claude-code","leaked-code"],"license":null,"category":"ai-agents","readme_excerpt":"Claude Code's Entire Source Code Got Leaked via a Sourcemap in npm, Let's Talk About It PS: This breakdown is also available on this blog with a better reading experience and UX :) Note: There's a non-zero chance this repo might be taken down. If you want to play around with it later or archive it yourself, feel free to fork it and bookmark the external blog link! --- ⚠️ Important Disclaimer I did not leak these files. I have simply provided an easy, documented way to access and study this codebase for research purposes. All files and information originate from public findings shared on Twitter/X. All credit for the discovery goes to the original source. --- Earlier today (March 31st, 2026) - Chaofan Shou (@Fried rice) discovered something that Anthropic probably didn't want the world to see: the entire source code of Claude Code, Anthropic's official AI coding CLI, was sitting in plain sight on the npm registry via a sourcemap file bundled into the published package. This repository is a backup of that leaked source, providing a full breakdown of what's in it, how the leak happened, and the internal systems that were never meant to be public. --- 🧐 How Did This Even Happen? When you publish a JavaScript/TypeScript package to npm, the build toolchain often generates source map files ( .map files). These files bridge minified production code and the original source for debugging. The catch? Source maps contain the original source code embedded as strings inside a JSON file un","default_branch":null,"files":null,"tree":[],"storefront":"/r/yasasbanukaofficial","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yasasbanukaofficial/claude-code/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}