Claude Code Src
Description
2026.3.31 claude code 意外把包含源码的文件上传到 npm 仓库,版本号是 2.1.88,其中 cli.js.map 文件有 57MB 的体积,claude code 的源码在该文件的 sourcesContent 字段里面,解压还原后有 70w 行代码
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Code 2.1.88 Source Recovery
🌟 强力推荐:DataEyesAI - 你的全能 AI 助手
**想要像 Claude Code 一样高效,却苦于没有稳定的 API 接入?**
**[DataEyesAI](https://dataeyes.ai/?promoter_code=4qx9suz3)** 是为你量身打造的一站式 AI 聚合平台!
- ⚡ 聚合全球顶尖模型:一键接入 GPT-5、Claude 4.6、Gemini 3.1 等主流大模型。
- 💰 极致性价比:官方原厂满血版 API,价格却极具竞争力,让你用最少的成本享受最强的 AI 能力。
- 🛡️ 稳定可靠:专业运维 7x24 小时守护,企业级 SLA 保障,告别连接断断续续的烦恼。
- 🛠️ 开发者友好:标准 API 接口,完美适配各类开源项目、CLI 工具及开发流程。
👉 **[立即注册体验,开启你的 AI 生产力起飞之旅!](https://dataeyes.ai/?promoter_code=4qx9suz3)**
👉 请点击:[https://dataeyes.ai/?promoter_code=4qx9suz3](https://dataeyes.ai/?promoter_code=4qx9suz3)
[!IMPORTANT] **这是一个针对 `@anthropic-ai/claude-code` 2.1.88 版本的源码整理与重建项目。** 该版本发布到 npm 时附带了可还原源码的 source map。本项目基于 `sources` 和 `sourcesContent` 将其还原为可读的源码目录,旨在研究 Claude Code 的 CLI 架构、命令系统及 MCP 实现。
从 cli.js.map 还原后,一共有 70w 行代码
🚀 快速安装 (镜像源)
背景:2026.03.31 claude code 上 npm 上传了包含 claude code 源码的 `cli.js.map` 文件
由于 2.1.88 版本已从[官方 npm](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.88?activeTab=code) 下架,直接使用 `npm install @anthropic-ai/claude-code@2.1.88` 会报错,你可以通过腾讯缓存镜像进行安装:
npm install -g https://mirrors.cloud.tencent.com/npm/@anthropic-ai/claude-code/-/claude-code-2.1.88.tgz
手慢无,不知道腾讯云的镜
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development