This repository contains the leaked source code of Anthropic's Claude Code CLI, which occurred on March 31, 2026, due to a .map file exposure in their npm registry. Claude Code is a terminal-based tool for software engineering tasks, including file editing, command execution, codebase searching, and Git workflow management.
The codebase is written in TypeScript and runs on Bun, utilizing React and Ink for its terminal UI. It features a robust tool system, command system, service layer, bridge system for IDE integration, and a permission system. The project incorporates several design patterns like parallel prefetching and lazy loading to optimize performance.