ClaudeCode Source Analysis — Development skill for Claude Code
Claude Code 源码解析报告 - 基于2026年3月31日npm source map泄漏事件的完整技术分析.
How to install ClaudeCode Source Analysis
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bcefghj/ClaudeCode-Source-Analysis and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ClaudeCode Source Analysis does
Claude Code 源码解析报告 - 基于2026年3月31日npm source map泄漏事件的完整技术分析.
Alternatives in Development
- Knowledge Work Plugins — Open source repository of plugins primarily intended for knowledge workers to use in Claude Cowork 9734 125 18 10.5k ★
- Llamacoder — Open source Claude Artifacts – built with Llama 3.1 405B 7.1k ★
- Notebooklm Skill — Use this skill to enable Claude Code to communicate directly with your Google NotebookLM notebooks 5.9k ★
README
Claude Code 源码解析报告
**基于 2026年3月31日 npm source map 泄漏事件的完整技术分析**
目录
- 第一章:事件背景
- 第二章:总体架构
- 第三章:查询引擎与主循环
- 第四章:系统提示词工程
- 第五章:工具系统
- 第六章:多Agent蜂群架构
- 第七章:上下文管理与压缩
- 第八章:权限与安全
- 第九章:生态系统
- 第十章:隐藏功能与彩蛋
- 第十一章:总结与启示
- 参考资源
第一章:事件背景
1.1 泄漏事件时间线
2026年3月31日凌晨,安全研究者 **Chaofan Shou** 在 X(原 Twitter)上发布了一条震惊整个 AI 开发社区的消息:
*"Claude code source code has been leaked via a map file in their npm registry!"*
Anthropic 发布到 npm 的 Claude Code 包(`@anthropic-ai/claude-code` v2.1.88)中,意外打包了一个 59.8 MB 的 source map 调试文件(`cli.js.map`),其中包含了完整的、未混淆的 TypeScript 原始源码。
timeline
title Claude Code 泄漏事件时间线
2025-02 : 首次泄漏
: Claude Code 首次上架 npm 时
: 同样打包了 source map
: 持续暴露 13 个月无人注意
2026-03-26 : CMS 配置泄漏
: Anthropic CMS 配置错误
: 暴露 Claude Mythos 模型细节
: 3000 份未发布资产泄出
2026-03-31 : npm Source Map 泄漏
: v2.1.88 包体积从 17MB 暴涨到 31MB
: 完整 512000 行 TypeScript 源码曝光
: 数小时内被多个 GitHub 仓库镜像
2026-03-31 : Anthropic 紧急响应
: 推送 npm 更新移除 source map
: 删除旧版本包
: 发起 DMCA 删除通知
: 但代码已被广泛传播
1.2 泄漏技术原理
Source map(`.map` 文件)是 JavaScript/TypeScript 构建工具链的标准产物,用于将编译/打包后的代码映射回原始源文件,方便调试时定位到真实代码行。
flowchart LR
A["TypeScript 源码
1,906 个 .ts/.tsx 文件"] -->|"Bun bundler 编译"| B["cli.js
打包后的单文件"]
A -->|"默认生成"| C["cli.js
Related Skills
Claude Code Rev
Runnable ClaudeCode source code
Claudecode
Open Source ClaudeCode Leaked. Same functionalities as Claude Code by Anthropic. Written in Rust, Ready to use
ClaudeCode Leak
A comprehensive technical autopsy and archival index of the March 31, 2026 Anthropic Claude Code source leak.
Claude Code Source Analysis
Claude Code 泄露源码深度分析 — 基于 2026-03-31 泄露的 Anthropic Claude Code CLI 完整 TypeScript 源码(~1,884 文件,512K+ 行)的逐模块架构解读
Claude Code Source Analysis Orange Book
Claude Code: Source Code Analysis · Orange Book Series · Deep dive into Claude Code architecture and implement
Siftlight
Context-efficient project search and bounded code analysis for Claude Code & Codex & Pi & OMP & kimi ....and r
Related Agents
🦀 Claw CR
Der Open-Source-Coding-Agent, in Rust gebaut. Alternative zu ClaudeCode Status Language
Claudecode Promptinjector
You are CLAUDECODEEXPLOITAGENT v11.0, the elite Claude Code exploitation specialist conducting authorized offe
JS Analyzer
JavaScript static analysis agent for client-side security review. Use for analyzing JS bundles, finding hardco