Skip to content

Commit 8e9933e

Browse files
Merge branch 'claude-code-best:main' into main
2 parents f71530a + c57e6ee commit 8e9933e

55 files changed

Lines changed: 5276 additions & 1270 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Claude Code Best V2 (CCB)
1+
# Claude Code Best V3 (CCB)
22

33
Anthropic 官方 [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI 工具的源码反编译/逆向还原项目。目标是将 Claude Code 大部分功能及工程化能力复现。虽然很难绷, 但是它叫做 CCB(踩踩背)...
44

5-
[项目解析文档在这里, 还非常初期想要](https://ccb.agent-aura.top/)
5+
[项目解析文档在这里, 支持投稿 PR](https://ccb.agent-aura.top/)
66

77
赞助商占位符
88

99
- [x] v1 会完成跑通及基本的类型检查通过;
1010
- [x] V2 会完整实现工程化配套设施;
1111
- [ ] Biome 格式化可能不会先实施, 避免代码冲突
1212
- [x] 构建流水线完成, 产物 Node/Bun 都可以运行
13-
- [ ] V3 会实现多层级解耦, 很多比如 UI 包, Agent 包都可以独立优化;
13+
- [x] V3 会写大量文档, 完善文档站点
1414
- [ ] V4 会完成大量的测试文件, 以提高稳定性
1515

16-
> 我不知道这个项目还会存在多久, fork 不好使, git clone 或者下载 .zip 包才稳健;
16+
> 我不知道这个项目还会存在多久, Star + Fork + git clone + .zip 包最稳健;
1717
>
1818
> 这个项目更新很快, 后台有 Opus 持续优化, 所以你可以提 issues, 但是 PR 暂时不会接受;
1919
>
20-
> Claude 已经烧了 300$ 以上, 如果你个人想赞助, 请随便找个机构捐款, 然后截图在 issues, 大家的力量是温暖的;
20+
> Claude 已经烧了 600$ 以上, 如果你个人想赞助, 请随便找个机构捐款, 然后截图在 issues, 大家的力量是温暖的;
2121
>
2222
> 某些模型提供商想要赞助, 那么请私发一个 1w 额度以上的账号到 <claude-code-best@proton.me>; 我们会在赞助商栏直接给你最亮的位置
2323
@@ -52,7 +52,15 @@ bun run dev
5252
bun run build
5353
```
5454

55-
构建采用 code splitting 多文件打包(`build.ts`),产物输出到 `dist/` 目录(入口 `dist/cli.js` + 约 450 个 chunk 文件)。构建出的版本 bun 和 node 都可以启动, 你 publish 到私有源可以直接启动
55+
构建采用 code splitting 多文件打包(`build.ts`),产物输出到 `dist/` 目录(入口 `dist/cli.js` + 约 450 个 chunk 文件)。
56+
57+
构建出的版本 bun 和 node 都可以启动, 你 publish 到私有源可以直接启动
58+
59+
如果遇到 bug 请直接提一个 issues, 我们优先解决
60+
61+
## 相关文档及网站
62+
63+
<https://deepwiki.com/claude-code-best/claude-code>
5664

5765
## Star History
5866

@@ -107,9 +115,14 @@ bun run build
107115
| BriefTool || 简短消息 + 附件发送 |
108116
| TaskOutputTool || 后台任务输出读取 |
109117
| TaskStopTool || 后台任务停止 |
110-
| ListMcpResourcesTool || MCP 资源列表 |
111-
| ReadMcpResourceTool || MCP 资源读取 |
112-
| SyntheticOutputTool || 非交互会话结构化输出 |
118+
| ListMcpResourcesTool | ⚠️ | MCP 资源列表(被 specialTools 过滤,特定条件下加入) |
119+
| ReadMcpResourceTool | ⚠️ | MCP 资源读取(同上) |
120+
| SyntheticOutputTool | ⚠️ | 仅在非交互会话(SDK/pipe 模式)下创建 |
121+
| CronCreateTool || 定时任务创建(已移除 AGENT_TRIGGERS gate) |
122+
| CronDeleteTool || 定时任务删除 |
123+
| CronListTool || 定时任务列表 |
124+
| EnterWorktreeTool || 进入 Git Worktree(`isWorktreeModeEnabled()` 已硬编码为 true) |
125+
| ExitWorktreeTool || 退出 Git Worktree |
113126

114127
### 工具 — 条件启用
115128

@@ -121,8 +134,6 @@ bun run build
121134
| TaskGetTool | ⚠️ | 同上 |
122135
| TaskUpdateTool | ⚠️ | 同上 |
123136
| TaskListTool | ⚠️ | 同上 |
124-
| EnterWorktreeTool | ⚠️ | `isWorktreeModeEnabled()` |
125-
| ExitWorktreeTool | ⚠️ | 同上 |
126137
| TeamCreateTool | ⚠️ | `isAgentSwarmsEnabled()` |
127138
| TeamDeleteTool | ⚠️ | 同上 |
128139
| ToolSearchTool | ⚠️ | `isToolSearchEnabledOptimistic()` |
@@ -135,7 +146,6 @@ bun run build
135146
| 工具 | Feature Flag |
136147
|------|-------------|
137148
| SleepTool | `PROACTIVE` / `KAIROS` |
138-
| CronCreate/Delete/ListTool | `AGENT_TRIGGERS` |
139149
| RemoteTriggerTool | `AGENT_TRIGGERS_REMOTE` |
140150
| MonitorTool | `MONITOR_TOOL` |
141151
| SendUserFileTool | `KAIROS` |
@@ -144,7 +154,7 @@ bun run build
144154
| WebBrowserTool | `WEB_BROWSER_TOOL` |
145155
| SnipTool | `HISTORY_SNIP` |
146156
| WorkflowTool | `WORKFLOW_SCRIPTS` |
147-
| PushNotificationTool | `KAIROS` |
157+
| PushNotificationTool | `KAIROS` / `KAIROS_PUSH_NOTIFICATION` |
148158
| SubscribePRTool | `KAIROS_GITHUB_WEBHOOKS` |
149159
| ListPeersTool | `UDS_INBOX` |
150160
| CtxInspectTool | `CONTEXT_COLLAPSE` |
@@ -186,7 +196,7 @@ bun run build
186196
| `/extra-usage` || 额外用量信息 |
187197
| `/fast` || 切换 fast 模式 |
188198
| `/feedback` || 反馈 |
189-
| `/files` || 已跟踪文件 |
199+
| `/loop` || 定时循环执行(bundled skill,可通过 `CLAUDE_CODE_DISABLE_CRON` 关闭) |
190200
| `/heapdump` || Heap dump(调试) |
191201
| `/help` || 帮助 |
192202
| `/hooks` || Hook 管理 |
@@ -240,7 +250,7 @@ bun run build
240250
| `/proactive` | `PROACTIVE` / `KAIROS` |
241251
| `/brief` | `KAIROS` / `KAIROS_BRIEF` |
242252
| `/assistant` | `KAIROS` |
243-
| `/bridge` | `BRIDGE_MODE` |
253+
| `/remote-control` (alias `rc`) | `BRIDGE_MODE` |
244254
| `/remote-control-server` | `DAEMON` + `BRIDGE_MODE` |
245255
| `/force-snip` | `HISTORY_SNIP` |
246256
| `/workflows` | `WORKFLOW_SCRIPTS` |
@@ -254,7 +264,7 @@ bun run build
254264

255265
### 斜杠命令 — ANT-ONLY(不可用)
256266

257-
`/tag` `/backfill-sessions` `/break-cache` `/bughunter` `/commit` `/commit-push-pr` `/ctx_viz` `/good-claude` `/issue` `/init-verifiers` `/mock-limits` `/bridge-kick` `/version` `/reset-limits` `/onboarding` `/share` `/summary` `/teleport` `/ant-trace` `/perf-issue` `/env` `/oauth-refresh` `/debug-tool-call` `/agents-platform` `/autofix-pr`
267+
`/files` `/tag` `/backfill-sessions` `/break-cache` `/bughunter` `/commit` `/commit-push-pr` `/ctx_viz` `/good-claude` `/issue` `/init-verifiers` `/mock-limits` `/bridge-kick` `/version` `/reset-limits` `/onboarding` `/share` `/summary` `/teleport` `/ant-trace` `/perf-issue` `/env` `/oauth-refresh` `/debug-tool-call` `/agents-platform` `/autofix-pr`
258268

259269
### CLI 子命令
260270

@@ -282,7 +292,7 @@ bun run build
282292
| 服务 | 状态 | 说明 |
283293
|------|------|------|
284294
| API 客户端 (`services/api/`) || 3400+ 行,4 个 provider |
285-
| MCP (`services/mcp/`) || 24 个文件,12000+ 行 |
295+
| MCP (`services/mcp/`) || 34 个文件,12000+ 行 |
286296
| OAuth (`services/oauth/`) || 完整 OAuth 流程 |
287297
| 插件 (`services/plugins/`) || 基础设施完整,无内置插件 |
288298
| LSP (`services/lsp/`) | ⚠️ | 实现存在,默认关闭 |
@@ -299,17 +309,17 @@ bun run build
299309

300310
|| 状态 | 说明 |
301311
|------|------|------|
302-
| `color-diff-napi` || 997 行完整 TypeScript 实现(语法高亮 diff) |
303-
| `audio-capture-napi` | | stub,`isNativeAudioAvailable()` 返回 false |
304-
| `image-processor-napi` | | stub,`getNativeModule()` 返回 null |
305-
| `modifiers-napi` | | stub,`isModifierPressed()` 返回 false |
312+
| `color-diff-napi` || 1006 行完整 TypeScript 实现(语法高亮 diff) |
313+
| `audio-capture-napi` | | 151 行完整实现(跨平台音频录制,使用 SoX/arecord) |
314+
| `image-processor-napi` | | 125 行完整实现(macOS 剪贴板图片读取,使用 osascript + sharp) |
315+
| `modifiers-napi` | | 67 行完整实现(macOS 修饰键检测,bun:ffi + CoreGraphics) |
306316
| `url-handler-napi` || stub,`waitForUrlEvent()` 返回 null |
307317
| `@ant/claude-for-chrome-mcp` || stub,`createServer()` 返回 null |
308-
| `@ant/computer-use-mcp` | | stub`buildTools()` 返回 [] |
309-
| `@ant/computer-use-input` | | stub,仅类型声明 |
310-
| `@ant/computer-use-swift` | | stub,仅类型声明 |
318+
| `@ant/computer-use-mcp` | ⚠️ | 类型安全 stub(265 行,完整类型定义但函数返回空值) |
319+
| `@ant/computer-use-input` | | 183 行完整实现(macOS 键鼠模拟,AppleScript/JXA/CGEvent) |
320+
| `@ant/computer-use-swift` | | 388 行完整实现(macOS 显示器/应用管理/截图,JXA/screencapture) |
311321

312-
### Feature Flags(30 个,全部返回 `false`
322+
### Feature Flags(31 个,全部返回 `false`
313323

314324
`ABLATION_BASELINE` `AGENT_MEMORY_SNAPSHOT` `BG_SESSIONS` `BRIDGE_MODE` `BUDDY` `CCR_MIRROR` `CCR_REMOTE_SETUP` `CHICAGO_MCP` `COORDINATOR_MODE` `DAEMON` `DIRECT_CONNECT` `EXPERIMENTAL_SKILL_SEARCH` `FORK_SUBAGENT` `HARD_FAIL` `HISTORY_SNIP` `KAIROS` `KAIROS_BRIEF` `KAIROS_CHANNELS` `KAIROS_GITHUB_WEBHOOKS` `LODESTONE` `MCP_SKILLS` `PROACTIVE` `SSH_REMOTE` `TORCH` `TRANSCRIPT_CLASSIFIER` `UDS_INBOX` `ULTRAPLAN` `UPLOAD_USER_SETTINGS` `VOICE_MODE` `WEB_BROWSER_TOOL` `WORKFLOW_SCRIPTS`
315325

RECORD.md

Lines changed: 0 additions & 218 deletions
This file was deleted.

0 commit comments

Comments
 (0)