Claude Code v2.1.88 — 源码分析
Description
> **免责声明**: 本仓库中所有源码版权归 **Anthropic 和 Claude** 所有。本仓库仅用于技术研究和科研爱好者交流学习参考,**严禁任何个人、机构及组织将其用于商业用途、盈利性活动、非法用途及其他未经授权的场景。** 若内容涉及侵犯您的合法权益、知识产权或存在其他侵权问题,请及时联系我们,我们将第一时间核实并予以删除处理。 > 从 npm 包 `@anthropic-ai/c
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/.
Repository README
This is the README for zhangbo2008/claude_code_annotated, shared by 2 entries
in this directory. It describes the repository, not this entry specifically.
Claude Code v2.1.88 — 源码分析
**免责声明**: 本仓库中所有源码版权归 **Anthropic 和 Claude** 所有。本仓库仅用于技术研究和科研爱好者交流学习参考,**严禁任何个人、机构及组织将其用于商业用途、盈利性活动、非法用途及其他未经授权的场景。** 若内容涉及侵犯您的合法权益、知识产权或存在其他侵权问题,请及时联系我们,我们将第一时间核实并予以删除处理。
从 npm 包 `@anthropic-ai/claude-code` **2.1.88** 版本中提取。 发布的包只有一个打包后的 `cli.js`(~12MB)。本仓库的 `src/` 目录包含从 npm 包中解包的 **TypeScript 源码**。
**语言**: [English](README.md) | **中文**
目录
- 深度分析文档 (`docs/`) — 遥测、模型代号、卧底模式、远程控制、未来路线图
- 缺失模块说明 — 108 个被 feature gate 移除的模块
- 架构概览 — 入口 → 查询引擎 → 工具/服务/状态
- 构建说明 — 为什么不能直接编译
深度分析文档 (`docs/`)
基于 v2.1.88 反编译源码的分析报告,中英双语。
docs/
├── en/ # English
│ ├── [01-telemetry-and-privacy.md] # Telemetry & Privacy — what's collected, why you can't opt out
│ ├── [02-hidden-features-and-codenames.md] # Codenames (Capybara/Tengu/Numbat), feature flags, internal vs external
│ ├── [03-undercover-mode.md] # Undercover Mode — hiding AI authorship in open-source repos
│ ├── [04-remote-control-and-killswitches.md]# Remote Control — managed settings, killswitches, model overrides
│ └── [05-future-roadmap.md] # Future Roadmap — Numbat, KAIROS, voice mode, unreleased tools
│
└── zh/ # 中文
├── [01-遥测与隐私分析.md] # 遥测与隐私 — 收集了什么,为什么无法退出
├── [02-隐藏功能与模型代号.md] # 隐藏功能 — 模型代号,feature flag,内外用户差异
├── [03-卧底模式分析.md] # 卧底模式 — 在开源项目中隐藏 AI 身份
├── [04-远程控制与紧急开关.md] # 远程控制 — 托管设置,紧急开关,模型覆盖
└── [05-未来路线图.md] # 未来路线图 — Numbat,KAIROS,语音模式,未上线工具
点击文件名即可跳转到对应报告。
| # | 主题 | 核心发现 | 链接 |
|---|---|---|---|
| 01 | 遥测与隐私 | 双层分析管道(1P→Anthropic, Datadog)。环境指纹、进程指标、每个事件携带会话/用户 ID。没有面向用户的退出开关。OTEL_LOG_TOOL_DETAILS=1 可记录完整工具输入。 |
EN · 中文 |
| 02 | 隐藏功能与代号 | 动物代号体系(Capybara v8, Tengu, Fennec→Opus 4.6, Numbat 下一代)。Feature flag 用随机词对掩盖用途。内部用户获得更好的 prompt 和验证代理。隐藏命令:/btw、/stickers。 |
EN · 中文 |
| 03 | 卧底模式 | Anthropic 员工在公开仓库自动进入卧底模式。模型指令:"不要暴露你的掩护身份" — 剥离所有 AI 归属,commit 看起来像人类写的。没有强制关闭选项。 | EN · 中文 |
| 04 | 远程控制与 Killswitch | 每小时轮询 /api/claude_code/settings。危险变更弹出阻塞对话框 — 拒绝 = 程序退出。6+ 紧急开关(绕过权限、快速模式、语音模式、分析 sink)。GrowthBook 可无同意改变任何用户行为。 |
EN · 中文 |
| 05 | 未来路线图 | Numbat 代号确认。Opus 4.7 / Sonnet 4.8 开发中。KAIROS = 完全自主代理模式,心跳 、推送通知、PR 订阅。语音模式(push-to-talk)已就绪。发现 17 个未上线工具。 |
EN · 中文 |
缺失模块说明(108 个模块)
**源码不完整。** 108 个被 `feature()` 门控的模块**未包含**在 npm 包中。 它们仅存在于 Anthropic 的内部 monorepo 中,在编译时被死代码消除。 **无法**从 `cli.js`、`sdk-tools.d.ts` 或任何已发布的制品中恢复。
Anthropi
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI