claude_code_src  by ponponon

Claude Code CLI architecture reconstruction

Created 1 month ago
2,240 stars

Top 19.7% on SourcePulse

GitHubView on GitHub
Project Summary

This repository reconstructs the source code for @anthropic-ai/claude-code version 2.1.88, recovered from a large source map file inadvertently published to npm. It targets developers and researchers analyzing the CLI architecture, command system, and Model Context Protocol (MCP) implementation of this specific Claude Code release. The project provides access to ~700,000 lines of previously unavailable source code for in-depth study.

How It Works

The project extracts source code from the cli.js.map file associated with @anthropic-ai/claude-code@2.1.88, hosted on a Tencent cloud npm mirror. This 57MB source map contains the complete source code within its sourcesContent field. The repository unpacks and organizes this code into a structured directory, mirroring the original project's organization. Key components include CLI entry points, command system, React+Ink terminal UI, services, hooks, and utilities, enabling detailed examination of the CLI's internal design.

Quick Start & Requirements

  • Installation: npm install -g https://mirrors.cloud.tencent.com/npm/@anthropic-ai/claude-code/-/claude-code-2.1.88.tgz (via Tencent mirror).
  • Prerequisites: npm, Node.js.
  • Caveats: Version 2.1.88 removed from official npm; mirror availability uncertain.
  • Running requires substantial setup: `package
Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
72 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.