Claude Leaked Files banner
Ahmad-progr Ahmad-progr

Claude Leaked Files

Security community intermediate

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

Terminal
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