claude-code-source-code-full  by 777genius

CLI tool for interacting with Claude, with a source snapshot for exploration

Created 4 days ago

New!

274 stars

Top 94.3% on SourcePulse

GitHubView on GitHub
Project Summary

This repository offers a full, unobfuscated TypeScript source code snapshot of Anthropic's Claude Code CLI tool, reportedly exposed via published source maps. It serves as a research artifact for engineers, researchers, and power users seeking to understand the internal architecture and implementation of this proprietary AI-powered command-line interface. The project provides extensive documentation and tooling, including an MCP server, to facilitate interactive exploration of the codebase.

How It Works

The project provides a snapshot of the Claude Code CLI's TypeScript source, built with the Bun runtime and featuring a React + Ink terminal UI. It details a complex architecture comprising a Tool System (handling file I/O, search, execution, agents), a Command System (user-facing slash commands), a Service Layer (API integrations, MCP, OAuth), a Bridge System for IDE integration, and a Permission System for tool invocation control. The core novelty lies in offering direct access to the full source code, complemented by an MCP server for interactive exploration across various clients.

Quick Start & Requirements

The primary method to explore the code is via the included MCP server. Install it directly using `npx -y claude-code-explorer-mcp`. Alternatively, clone the repository, navigate to `mcp-server`, run `npm install && npm run build`, and register the server with Claude Code using `claude mcp add claude-code-explorer -- node /absolute/path/to/claude-code-source-code/mcp-server/dist/index.js`. IDE integrations for VS Code, Claude Desktop, and Cursor are also supported via configuration. Prerequisites include Bun runtime and Node.js.

Highlighted Details

  • Source Snapshot: Provides the full, unobfuscated TypeScript source code of Anthropic's Claude Code CLI, reportedly leaked via npm source maps.
  • MCP Server: Enables interactive exploration of the source code snapshot with MCP-compatible clients (Claude Code, Claude Desktop, VS Code Copilot, Cursor).
  • Extensive Tooling: Documents and allows exploration of approximately 40 agent tools (e.g., File I/O, Search, Execution) and 85 slash commands (e.g., /commit, /review).
  • Detailed Architecture: Offers a deep dive into the Tool System, Command System, Service Layer, Bridge System, Permission System, and Feature Flags.

Maintenance & Community

This repository is an archival mirror of a source snapshot. Contributions are welcomed for documentation and the MCP server tooling, but changes to the archived `src/` directory are not the default contribution path. No specific community links (Discord, Slack) or roadmap are provided for this snapshot repository itself.

Licensing & Compatibility

This repository archives a source snapshot provided for research and exploration, not as an official release. The original Claude Code source remains Anthropic's property, and no rights are granted. Users are solely responsible for assessing and complying with any legal implications of using or redistributing this material. Commercial use or linking with closed-source projects is not explicitly permitted and carries significant legal risk.

Limitations & Caveats

The repository contains a source snapshot reportedly exposed via published source maps, not an official Anthropic release. The `src/` directory represents an archived snapshot and is not intended for direct modification or contribution. Users must independently evaluate the legal ramifications of accessing or distributing this code. The project's focus is on exploration and research, not active development or feature enhancement.

Health Check
Last Commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
279 stars in the last 4 days

Explore Similar Projects

Feedback? Help us improve.