# ponponon/claude_code_src

2026.3.31 claude code 意外把包含源码的文件上传到 npm 仓库，版本号是 2.1.88，其中 cli.js.map 文件有 57MB 的体积，claude code 的源码在该文件的 sourcesContent 字段里面，解压还原后有 70w 行代码

Repository: https://github.com/ponponon/claude_code_src
Canonical: https://ross.abutalabs.com/products/claude_code_src
Language: TypeScript
License Family: other
Last push: 2026-04-15T13:34:38+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 45, longevity 11
- inputs: {"age_days": 155, "days_push": 140, "days_rel": 154, "gap_med": null, "n_releases_24m": 1}
- flags: young, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2335, forks 3528 (observed 2026-08-28T04:06:38.031400+00:00)

## What it is
A reconstructed source tree of Anthropic's Claude Code CLI (version 2.1.88), recovered from the sourcesContent field of the cli.js.map source map accidentally published to npm. It preserves the original src/ layout (entrypoints, commands, components, services, hooks, utils, ink) for reading and studying the CLI's architecture.

## Use cases
- study how claude code implements its cli architecture
- read the source of claude code's command system
- learn how mcp is integrated in a real cli agent tool
- understand how react and ink build terminal uis
- explore feature flag and plugin loading patterns in a production cli
- recover claude code 2.1.88 source for archival and analysis

## When to choose
- you want to read or research the internal architecture of claude code
- you need the archived 2.1.88 source because it was pulled from npm
- you are studying terminal UI, MCP integration, or CLI command loading patterns

## When to avoid
- you want an officially supported or runnable claude code installation
- you need code you can legally redistribute or use commercially
- you expect a maintained project with a license, package., or working build

## Facets
- artifact type: learning-resource
- maturity: experimental
- function: developer-tools, cli, mcp, agent-framework, chatbot
- domain: developer-tools, artificial-intelligence, large-language-models, tutorials
- platform: cli, cross-platform
- tags: claude-code, source-recovery, source-map, reverse-engineering, typescript, ink, react, archived-source, research-only, command-line, ai-agents, nodejs

## Member repositories
- ponponon/claude_code_src (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:38.031400+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:44.598470+00:00, confidence not recorded.
  - readme: https://github.com/ponponon/claude_code_src (fetched 2026-08-28T04:06:38.031400+00:00, sha 35303faa6392)
- Data as of 2026-08-30T08:39:29.467469+00:00.
