This repository contains the reconstructed source code of Claude Code, Anthropic's agentic coding tool. The source was recovered from the officially published npm package using source map analysis and restoration techniques.
The code in this repository was obtained through the following process:
- Downloading the officially published
@anthropic-ai/claude-codenpm package - Extracting and analyzing the bundled source maps
- Reconstructing the original TypeScript source tree from the mapped output
No proprietary systems were accessed, and no reverse engineering of compiled binaries was performed — only publicly available artifacts (npm package + embedded source maps) were used.
src/
├── main.tsx # Application entry point
├── commands/ # Slash commands (compact, config, doctor, memory, etc.)
├── tools/ # Agent tools (Bash, FileEdit, FileRead, Grep, MCP, etc.)
├── services/ # Core services
├── hooks/ # React hooks
├── components/ # UI components (Ink-based terminal UI)
├── utils/ # Utility modules
├── context/ # Context management
├── skills/ # Skill definitions
├── tasks/ # Task management
└── ...
This project is intended solely for educational and research purposes.
It is shared to help developers and researchers:
- Understand the architecture of a modern agentic coding assistant
- Study patterns for tool-use, context management, and LLM orchestration
- Learn from real-world implementations of terminal-based AI interfaces
This repository is provided "AS IS", without warranty of any kind, express or implied.
- No Commercial Use — The contents of this repository must not be used for any commercial purpose. This includes but is not limited to: selling, sublicensing, incorporating into commercial products or services, or using it to gain competitive advantage.
- Intellectual Property — All original intellectual property rights belong to Anthropic, PBC. This repository does not claim ownership of any of the reconstructed source code.
- No Affiliation — This project is not affiliated with, endorsed by, or sponsored by Anthropic in any way.
- Legal Risk — Users who download, view, or use this code do so at their own risk. The maintainers of this repository are not responsible for any legal consequences arising from the use or misuse of this code.
- Compliance — Users are solely responsible for ensuring their use of this material complies with all applicable laws, regulations, and the terms of service of Anthropic and npm.
- Takedown — If Anthropic or any authorized party requests removal of this repository, it will be taken down promptly.
This repository has no license — meaning all rights are reserved by the original copyright holder (Anthropic, PBC). The code is shared here for research and learning purposes only under fair use principles. Do not redistribute or use commercially.