777genius/claude-code-source-code-full
Full source repository for Claude Code source code
What it solves
This repository archives a source snapshot of "Claude Code," Anthropic's official CLI tool for interacting with Claude. It provides a way for developers to inspect the internal architecture, tool systems, and implementation details of a professional-grade AI agent CLI, which was reportedly leaked via source maps in an npm package.
How it works
The project consists of a mirrored source snapshot of the TypeScript codebase (approximately 512,000 lines of code) and added tooling to facilitate exploration. It includes an MCP (Model Context Protocol) server that allows users to interactively explore the codebase using any MCP-compatible client (like Claude Desktop or Cursor) to search source files, list tools, and understand the architecture.
Who it’s for
- AI Researchers and Developers: Those interested in how complex AI agents are implemented in production.
- Security Researchers: Individuals analyzing the leaked source code for vulnerabilities or design patterns.
- TypeScript/Bun Developers: Developers looking for high-quality examples of strict TypeScript and Bun runtime usage at scale.
Highlights
- Comprehensive Tool System: Includes ~40 agent tools for file I/O, shell execution (BashTool), web search, and multi-agent orchestration.
- Extensive Command Set: Features ~85 slash commands for git workflows, memory management, and environment diagnostics.
- MCP Explorer Server: A dedicated server that lets AI assistants help you navigate the leaked source code.
- Detailed Architecture: Implements a bridge system for IDE integration, a robust permission system for tool execution, and a multi-agent coordinator for "agent swarms."
Related
- Project
- Project
- Project
- Project