Claude Code Leaks
Description
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Note: The original unmodified leaked source is preserved in the backup branch.
Claude Code - Leaked Source (2026-03-31)
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.
How It Leaked
Chaofan Shou (@Fried_rice) discovered the leak and posted it publicly:
"Claude code source code has been leaked via a map file in their npm registry!"
- @Fried_rice, March 31, 2026
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.
Overview
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.
This repository contains the leaked `src/` directory.
- Leaked on: 2026-03-31
- Language: TypeScript
- Runtime: Bun
- Terminal UI: React + Ink (React for CLI)
- Scale: ~1,900 files, 512,000+ lines of code
Directory Structure
src/
|- main.tsx # Entrypoint (Commander.js-based CLI parser)
|- commands.ts # Command registry
|- tools.ts # Tool registry
|- Tool.ts # Tool type definitions
|- QueryEngine.ts # LLM query engine (core Anthropic API caller)
|- context.ts # System/user context collection
|- cost-tracker.ts # Token cost tracking
|
|- commands/ # Slash command implementations (~50)
|- tools/ # Agent tool implementations (~40)
|- components/ # Ink UI components (~140)
|- hooks/ # React hooks
|- services/ # External service integrations
|- screens/ # Full-screen UIs (Doctor, REPL, Resume)
|- types/ # TypeScript type definitions
|- utils/ # Utility
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git