Skip to main content
ClaudeWave
ChinaSiro avatar
ChinaSiro

claude-code-sourcemap

View on GitHub
Tools9.4k stars14.7k forksTypeScriptUpdated 2mo ago
Editor's note

This unofficial repository contains TypeScript source code reconstructed from the public npm package `@anthropic-ai/claude-code` version 2.1.88 by extracting the `sourcesContent` field from the bundled source map file `cli.js.map`. The reconstruction yielded 4,756 files, including 1,884 TypeScript and TSX source files, organized into directories covering tools (Bash, FileEdit, Grep, MCP, and more than 30 others), commands (commit, review, config, and more than 40 others), services, a multi-agent coordinator, a plugins system, voice interaction, and a Vim mode. The material is directly tied to Claude Code, Anthropic's official CLI tool built on the Claude API. Researchers and developers studying Claude Code's internal architecture, tool dispatch patterns, or MCP integration are the primary audience. The repository carries prominent disclaimers stating it is not affiliated with Anthropic, was assembled for research purposes only, and that all copyright remains with Anthropic.

ClaudeWave Trust Score
57/100
· OK
Passed
  • Recently active
  • Healthy fork ratio
  • Documented (README)
Flags
  • !No standard license detected
  • !No description
Last scanned: 6/11/2026
Get started
Method: Clone
Terminal
git clone https://github.com/ChinaSiro/claude-code-sourcemap
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

# claude-code-sourcemap

[![linux.do](https://img.shields.io/badge/linux.do-huo0-blue?logo=linux&logoColor=white)](https://linux.do)

> [!WARNING]
> This repository is **unofficial** and is reconstructed from the public npm package and source map analysis, **for research purposes only**.
> It does **not** represent the original internal development repository structure.
>
> 本仓库为**非官方**整理版,基于公开 npm 发布包与 source map 分析还原,**仅供研究使用**。
> **不代表**官方原始内部开发仓库结构。
> 一切基于L站"飘然与我同"的情报提供

## 概述

本仓库通过 npm 发布包(`@anthropic-ai/claude-code`)内附带的 source map(`cli.js.map`)还原的 TypeScript 源码,版本为 `2.1.88`。

## 来源

- npm 包:[@anthropic-ai/claude-code](https://www.npmjs.com/package/@anthropic-ai/claude-code)
- 还原版本:`2.1.88`
- 还原文件数:**4756 个**(含 1884 个 `.ts`/`.tsx` 源文件)
- 还原方式:提取 `cli.js.map` 中的 `sourcesContent` 字段

## 目录结构

```
restored-src/src/
├── main.tsx              # CLI 入口
├── tools/                # 工具实现(Bash、FileEdit、Grep、MCP 等 30+ 个)
├── commands/             # 命令实现(commit、review、config 等 40+ 个)
├── services/             # API、MCP、分析等服务
├── utils/                # 工具函数(git、model、auth、env 等)
├── context/              # React Context
├── coordinator/          # 多 Agent 协调模式
├── assistant/            # 助手模式(KAIROS)
├── buddy/                # AI 伴侣 UI
├── remote/               # 远程会话
├── plugins/              # 插件系统
├── skills/               # 技能系统
├── voice/                # 语音交互
└── vim/                  # Vim 模式
```

## 声明

- 源码版权归 [Anthropic](https://www.anthropic.com) 所有
- 本仓库仅用于技术研究与学习,请勿用于商业用途
- 如有侵权,请联系删除

What people ask about claude-code-sourcemap

What is ChinaSiro/claude-code-sourcemap?

+

ChinaSiro/claude-code-sourcemap is tools for the Claude AI ecosystem with 9.4k GitHub stars.

How do I install claude-code-sourcemap?

+

You can install claude-code-sourcemap by cloning the repository (https://github.com/ChinaSiro/claude-code-sourcemap) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is ChinaSiro/claude-code-sourcemap safe to use?

+

Our security agent has analyzed ChinaSiro/claude-code-sourcemap and assigned a Trust Score of 57/100 (tier: OK). See the full breakdown of passed checks and flags on this page.

Who maintains ChinaSiro/claude-code-sourcemap?

+

ChinaSiro/claude-code-sourcemap is maintained by ChinaSiro. The last recorded GitHub activity is from 2mo ago, with 12 open issues.

Are there alternatives to claude-code-sourcemap?

+

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.

Deploy claude-code-sourcemap to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: ChinaSiro/claude-code-sourcemap
[![Featured on ClaudeWave](https://claudewave.com/api/badge/chinasiro-claude-code-sourcemap)](https://claudewave.com/repo/chinasiro-claude-code-sourcemap)
<a href="https://claudewave.com/repo/chinasiro-claude-code-sourcemap"><img src="https://claudewave.com/api/badge/chinasiro-claude-code-sourcemap" alt="Featured on ClaudeWave: ChinaSiro/claude-code-sourcemap" width="320" height="64" /></a>