Claude Code Source Code Leak — Development skill for Claude Code
Claude Code Snapshot for Research.
How to install Claude Code Source Code Leak
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Njengah/claude-code-source-code-leak and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Source Code Leak does
Claude Code Snapshot for Research. All original source code is the property of Anthropic.
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Claudecode — Open Source ClaudeCode Leaked 1k ★
- Deep Research From Scratch — Deep research has broken out as one of the most popular agent applications 768 ★
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
ClaudeCode Leak
A comprehensive technical autopsy and archival index of the March 31, 2026 Anthropic Claude Code source leak.
Claude Code Prompt Engineering Patterns
10 production prompt engineering patterns reverse-engineered from the Claude Code source leak. Python implemen
Massive Agent Repo 1003
AGGREGATION — 1005 Claude Code subagents from 10 open-source projects. Full credit to original authors (see AT
Google Docs
Answer a question from the local Google docs knowledge base (Search/SEO, Search Console, Ads, GA4) with citati
Brain Ingest
Ingest a source (pasted text, a file, or a URL) into the second brain - save the original and update related p
Claude Code Snapshot Backup
Claude Code source snapshot backup - instructkr/claude-code mirror
Related Agents
UX A11y Reviewer
UX lens that checks a captured screen for accessibility defects using the accessibility-tree snapshot, screens
AWS Snapshot Exposure
Determine which AWS snapshots, AMIs and SSM documents are shared outside the account, whether the share is usa
Template Auditor
Use this agent whenever Pulkit wants an existing premium-template clone in the fable repo audited against its