claude-code-sourcemap README

The project's README from github.com/ChinaSiro/claude-code-sourcemap. As one markdown file: README.md.

claude-code-sourcemap

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。

来源

目录结构

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 模式

声明

claude-code-sourcemap (ChinaSiro/claude-code-sourcemap)

Searching Database…

What is this?An unofficial research repository that reconstructs the TypeScript source code of Claude Code from the published '@anthropic-ai/claude-code' npm package and its bundled source map — for study and learning, not for use.
So is this something I install, or just source code to read?Nothing to install or run here — it's a browsable snapshot of Claude Code v2.1.88: 4,756 recovered files, including 1,884 .ts/.tsx sources. To actually use Claude Code you'd install the official npm package.
Is this the official Anthropic code, then?No — it's an unofficial reconstruction based on source-map analysis of the public npm package, and it does not mirror Anthropic's original internal development repository structure.
Am I allowed to reuse this code in my own project?No license is granted: the README states the source code copyright belongs to Anthropic, the material is for technical research and learning only — commercial use is off-limits, and it will be removed on request.
How was the source code recovered?By extracting the sourcesContent field from cli.js.map — the source map shipped inside the published '@anthropic-ai/claude-code' npm package — which contained the original TypeScript sources.
What is Claude Code itself?It's Anthropic's terminal coding agent, published on npm as '@anthropic-ai/claude-code'; this repo reconstructs the TypeScript source behind one of its releases.
Why did the author publish this?Claude Code's internal source isn't public, so the author rebuilt it for technical research and learning, crediting a forum tip-off ('飘然与我同' on L站); they offer to delete it if Anthropic considers it infringing.
Creator
ChinaSiro
Size
72.1 MB
Stars
9.7K
Updated
CommitMar 31
Age
6mo
Commits · 90 Days