claude-code-sourcemap  by ChinaSiro

Unofficial AI coding assistant CLI reconstruction

Created 4 days ago

New!

7,682 stars

Top 6.7% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides an unofficial reconstruction of Anthropic's Claude Code CLI (version 2.1.88) source code, derived from public npm package source maps. It is intended for technical research and learning, offering insights into the internal structure and components of the tool.

How It Works

The project reconstructs TypeScript source files by extracting the sourcesContent field from the cli.js.map file found within the @anthropic-ai/claude-code npm package. This method allows for the recovery of approximately 4756 files, including 1884 .ts/.tsx source files, and reveals the project's directory structure.

Quick Start & Requirements

This repository does not provide installation or execution instructions. It is a reconstructed source code dump, not a runnable application. Specific prerequisites are not detailed.

Highlighted Details

  • Reconstructed CLI entry point (main.tsx).
  • Includes over 30 tools (e.g., Bash, FileEdit, Grep) and 40+ commands (e.g., commit, review, config).
  • Features services for API, MCP, and analysis, alongside utility functions for git, auth, and environment management.
  • Incorporates advanced concepts like multi-agent coordination (coordinator/), assistant modes (KAIROS), AI companion UI (buddy/), remote sessions, plugins, skills, voice interaction, and Vim mode.

Maintenance & Community

No information regarding maintainers, community channels (Discord, Slack), roadmaps, or sponsorships is present in the provided README.

Licensing & Compatibility

Source code copyright is held by Anthropic. The repository is explicitly for technical research and learning and is not to be used for commercial purposes. This implies a restrictive, non-commercial license.

Limitations & Caveats

This is an unofficial, reconstructed repository for research purposes only and does not represent the original internal development structure. Commercial use is prohibited due to licensing restrictions. The reconstructed code may not be fully functional or representative of the live product.

Health Check
Last Commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
12
Star History
7,879 stars in the last 4 days

Explore Similar Projects

Feedback? Help us improve.