Claude Leaked Files
Description
Mirrored snapshot of Claude Code's source (exposed 2026-03-31) preserved for educational purposes, defensive security research, and software supply-chain analysis.
Installation
claude install-skill https://github.com/Ahmad-progr/claude-leaked-files README
Claude Code Source Snapshot (For Security Research)
This repository mirrors a publicly exposed snapshot of Claude Code’s source that became accessible on **March 31, 2026**, due to a source map exposure in the npm package.
It is preserved strictly for:
- undefined
[!CAUTION] This repository does not claim ownership of the original code and is not an official Anthropic repository.
Research Background
This repository is maintained by a university student researching:
- undefined
The archive supports:
- undefined
How the Source Became Public
On March 31, 2026, **Chaofan Shou (@Fried_rice)** reported that Claude Code source files were accessible through a `.map` file included in the npm distribution.
“Claude code source code has been leaked via a map file in their npm registry!” — **@Fried_rice**, March 31, 2026
The source map pointed to unobfuscated TypeScript source files hosted in Anthropic’s R2 storage bucket, making the entire `src/` directory publicly downloadable.
What This Repository Contains
Claude Code is Anthropic’s command-line interface for interacting with Claude to perform software engineering tasks such as:
- undefined
Snapshot details:
- undefined
Directory Structure Overview
src/
├── main.tsx # CLI entrypoint and orchestration
├── commands.ts # Slash command registry
├── tools.ts # Tool registry
├── Tool.ts # Tool type definitions
├── QueryEngine.ts # Core LLM query engine
├── context.ts # Context collection logic
├── cost-tracker.ts # Token cost tracking
│
├── commands/ # Slash command implementations (~50)
├── tools/ # Tool implementations (~40)
├── components/ # Ink UI components (~140)
├── hooks/ # React hooks
├── services/ # External service integrations
├── screens/ # Full-screen UIs (Doctor, REPL, Resume)
├── types/ # Type definitions
├── utils/ # Utilities
│
├── bridge/ # IDE and remote control bridge
├── coordinator/ # Multi-agent coordination
├── plugins/ # Plugin system
├── skills/ # Skill workflows
├── keybindings/ # Keybinding configs
├── vi
Related Skills
Defense in Depth
Implement multi-layered testing and security best practices.
Security community SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security community Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security community Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head report in `docs/maintainers/security-findings-triage-2026-03-29-refresh.md`. - Added a match
Security community Google Workspace Model Armor
Filter user-generated content for safety
Security community Google Workspace Alert Center
Manage security alerts
Security community Related Agents
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces doc/design/TOKEN-AUDIT.md and doc/design/COMPONENT-INVENTORY.md. Read-only on source — neve
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing, external input handling, hidden Unicode, YAML/Docker/workflow risks, and suspicious non-AS
Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | - | [wshobson/agents](https://github.com/wshobson/agents) |