Claude Code workflow kit

Claude Code

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.

49 stars 32 forksWorkflow kits Source

Install

From source
git clone https://github.com/yasasbanukaofficial/claude-code.git

From the README

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 under the sourcesContent key.

By forgetting to add *.map to .npmignore or failing to disable source maps in production builds (Bun's default behavior), the entire raw source was shipped to the npm registry.

🛠 What's Under the Hood?

Claude Code is not just a simple CLI. It's a massive 785KB main.tsx…
Read the full README on GitHub

Details

Language
TypeScript
Last updated
4 April 2026
Topics
claude-aiclaude-codeleaked-claude-codeleaked-code

FAQ

What is Claude Code?

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. It is a workflow kit for Claude Code, from yasasbanukaofficial/claude-code on GitHub.

How do I install Claude Code?

Clone yasasbanukaofficial/claude-code from GitHub and follow the setup steps in its README.

Is Claude Code popular?

yasasbanukaofficial/claude-code has 49 GitHub stars and 32 forks. It was last updated on 4 April 2026.

More workflow kits

Browse the most popular Claude Code mods, all workflow kits, or the skills and MCP server directories.