Claude Code Clone — AI skill for Claude Code
On March 31, 2026, Anthropic accidentally published the entire source code of Claude Code - its flagship AI coding agent - inside an npm package.
How to install Claude Code Clone
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sagar-jaixwal/claude-code-clone and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Clone does
On March 31, 2026, Anthropic accidentally published the entire source code of Claude Code - its flagship AI coding agent - inside an npm package. No hack. No reverse engineering. A missing .npmignore entry shipped a 59.8 MB source map containing 512,000 lines of unobfuscated TypeScript across roughly 1,900 files.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Autoskills — One command. Your entire AI skill stack 6.8k ★
- Welcome — AI Research Skills — You now have access to 86 production-ready skills covering the entire AI research lifecycle: literature survey 5.4k ★
README
Claude Code Source Snapshot for Security Research
This repository mirrors a **publicly exposed Claude Code source snapshot** that became accessible on **March 31, 2026** through a source map exposure in the npm distribution. It is maintained for **educational, defensive security research, and software supply-chain analysis**.
Research Context
This repository is maintained by a **university student** studying:
- software supply-chain exposure and build artifact leaks
- secure software engineering practices
- agentic developer tooling architecture
- defensive analysis of real-world CLI systems
This archive is intended to support:
- educational study
- security research practice
- architecture review
- discussion of packaging and release-process failures
It does **not** claim ownership of the original code, and it should not be interpreted as an official Anthropic repository.
How the Public Snapshot Became Accessible
[Chaofan Shou (@Fried_rice)](https://x.com/Fried_rice) publicly noted that Claude Code source material was reachable through a `.map` file exposed in the npm package:
**"Claude code source code has been leaked via a map file in their npm registry!"**
— [@Fried_rice, March 31, 2026](https://x.com/Fried_rice/status/2038894956459290963)
The published source map referenced unobfuscated TypeScript sources hosted in Anthropic's R2 storage bucket, which made the `src/` snapshot publicly downloadable.
Repository Scope
Claude Code is Anthropic's CLI for interacting with Claude from the terminal to perform software engineering tasks such as editing files, running commands, searching codebases, and coordinating workflows.
This repository contains a mirrored `src/` snapshot for research and analysis.
- Public exposure identified on: 2026-03-31
- Language: TypeScript
- Runtime: Bun
- Terminal UI: React + Ink
- Scale: ~1,900 files, 512,000+ lines of code
Related Skills
Claude Code 2.1.88
Source code of @anthropic-ai/claude-code v2.1.88, extracted from the npm package's source map (cli.js.map). 1,
Coding Standards Skill
A cross-language engineering coding standard packaged as an AI skill (17 languages). Install via the coding-st
Development Tasks — Agent-skill-manager
Source: prd.md Generated: 2026-03-19 Strategy: "npm for AI skills" — become the package manager standard ---
Auto Re Agent
Open-source AI reverse-engineering agent using Ghidra and LLMs to reconstruct and validate C/C++ functions fro
AI Research SKILLs
Comprehensive open-source library of AI research and engineering skills for any AI model. Package the skills a
Claude AI Research Skills
Comprehensive open-source library of AI research and engineering skills for any AI model. Package the skills a
Related Agents
Web Agent
Edits the Vite page KMP_template_web, which uses the shared JS package. Works only inside that directory and v
Cs Patch Generator
description: Implements the fix for one finding inside a scratch workspace clone, staged for review and delive
Dependency Drift
Verifies that code — generated by @zanix/cli, or cited/claimed by a skill's own examples — still compiles agai