Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 项目概述

这是一个中文技术文档项目,对比分析 17 款 AI 编程 Code Agent。所有分析基于源码验证,
这是一个中文技术文档项目,对比分析 18 款 AI 编程 Code Agent。所有分析基于源码验证,
确保技术声明的准确性。项目目标是为开发者提供中立、客观、可验证的 Agent 选型参考。

## 项目结构(118 文件,35,000+ 行)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
| **OpenHands** | **125 万** | 70k |
| **Aider** | 78 万 | 42k |
| **Kimi CLI** | 45 万 | 7k |
| **OpenCode** | — | **130k** |
| **OpenCode** | — | **~132k** |

> **Stars ≠ 采用**:Gemini CLI Stars(99k)是 Claude Code(83k)的 1.2 倍,但 npm 下载仅其 **7%**。Copilot CLI 增长最猛(4 周 ↑240%)。

Expand Down Expand Up @@ -72,11 +72,11 @@

| Agent | 开发者 | 许可证 | Stars | 语言 | 提供商 | 特色 |
|------|--------|--------|-------|------|-------|------|
| [OpenCode](./docs/tools/opencode/) | Anomaly | MIT | **130k** | Go + TS | 100+ | 多客户端(TUI+Web+桌面),37 LSP |
| [OpenCode](./docs/tools/opencode/) | Anomaly | MIT | **~132k** | TypeScript(Bun) | 100+ | 多客户端(TUI+Web+桌面),37 LSP |
| [Gemini CLI](./docs/tools/gemini-cli/) | Google | Apache-2.0 | **99k** | TypeScript | 1 | 8 策略模型路由,TOML 策略引擎 |

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ⚠️ Agent 数量改为 18,但 README 第 3 行的副标题仍然写的是 "17 款 AI 编程 Code Agent"。如果确实改为 18 款,需要同步更新副标题。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README L3 已在 PR #9 中更新为 18 款。第 18 个是 Oh My OpenAgent。

Claude Opus 4.6

| [Claude Code](./docs/tools/claude-code/) | Anthropic | 专有 | **83k** | Rust | 1 | 50ms 启动,24 Hook 事件,Channels |
| [OpenHands](./docs/tools/openhands.md) | OpenHands | MIT | **70k** | Python | 100+ | Docker 沙箱,三层安全,多代理 |

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ⚠️ Codex CLI 语言标注为 "TypeScript",但全项目其他 22+ 处(15 个文件)都标注为 Rust(包括 codex-cli/01-overview.md 的详述)。这是一个跨项目不一致,建议改为 RustRust + Node.js

参考 codex-cli/01-overview.md:"核心架构为薄 Node.js 启动层 + 原生 Rust 二进制"。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已在 R2 修复中处理(commit d6b58df):L79 TypeScript→Rust,同时将 Codex CLI 从 TypeScript 行移入 Rust 行(L112-113)。

Claude Opus 4.6

| [Codex CLI](./docs/tools/codex-cli/) | OpenAI | Apache-2.0 | **68k** | TypeScript | 1 | 三平台 OS 沙箱,Cloud 远程执行 |
| [Codex CLI](./docs/tools/codex-cli/) | OpenAI | Apache-2.0 | **68k** | Rust | 1 | 三平台 OS 沙箱,Cloud 远程执行 |
| [Cline](./docs/tools/cline.md) | Cline | Apache-2.0 | **59k** | TypeScript | 48+ | VS Code 原生,Git Checkpoint |
| [Aider](./docs/tools/aider/) | Paul Gauthier | GPL-3.0 | **42k** | Python | 100+ | 14 编辑格式,三槽位模型,/undo |
| [Goose](./docs/tools/goose/) | Block | Apache-2.0 | **34k** | Rust | 58+ | MCP 原生,11 Platform Extension,Recipe + Cron 调度 |
Expand Down Expand Up @@ -109,9 +109,9 @@

| 语言 | Agent | 特点 |
|------|-------|------|
| **Rust** | Claude Code, Goose, Warp | 50ms 启动,内存最低 |
| **TypeScript** | Gemini CLI, Qwen Code, Codex CLI, Cline, Continue | Ink/React TUI 成熟 |
| **Go + TS** | OpenCode | TypeScript(Bun)后端 + SolidJS TUI(v1.0 前 Go,已全面重写) |
| **Rust** | Claude Code, Codex CLI, Goose, Warp | 50ms 启动,内存最低 |
| **TypeScript** | Gemini CLI, Qwen Code, Cline, Continue | Ink/React TUI 成熟 |
| **TypeScript(Bun)** | OpenCode | TypeScript(Bun)后端 + SolidJS TUI(v1.0 前 Go,已全面重写) |
| **Python** | Aider, SWE-agent, OpenHands, Kimi CLI | LiteLLM 100+ 模型 |

---
Expand All @@ -120,7 +120,7 @@

<details><summary><b>Agent 详情(源码级)— 8 个专题</b></summary>

- **[Agent 索引](./docs/tools/)** — 16 个 Agent 的详细分析
- **[Agent 索引](./docs/tools/)** — 18 个 Agent 的详细分析
- **[Claude Code](./docs/tools/claude-code/)** — 7 篇(79 命令/架构/Skill+13 插件/24 Hook/会话)
- **[Copilot CLI](./docs/tools/copilot-cli/)** — 3 篇(34 命令 + 67 工具 + 3 代理)
- **[Codex CLI](./docs/tools/codex-cli/)** — 3 篇(28 命令 + 三平台沙箱)
Expand Down Expand Up @@ -204,7 +204,7 @@
| Goose | **Rust** | ~55k 行 | MCP 原生,58+ 提供商 |
| Gemini CLI | TypeScript | ~191k 行 | 8 策略路由,TOML 引擎 |
| Qwen Code | TypeScript | ~191k 行 | Gemini 分叉 + Arena + 6+ 提供商 |
| OpenCode | **Go + TS** | 983 TS + 359 TSX | 100+ Provider + 37 LSP + ACP |
| OpenCode | **TypeScript(Bun)** | 983 TS + 359 TSX | 100+ Provider + 37 LSP + ACP |
| Cline | TypeScript | ~40k 行 | Git Checkpoint + 48 提供商 |
| SWE-agent | Python | ~20k 行 | ACI + Bundle 工具 |
| OpenHands | Python | ~60k 行 | EventStream + 多代理 |
Expand Down
2 changes: 1 addition & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
| | Claude Code | Copilot CLI | Codex CLI | Aider | Gemini CLI | Qwen Code | Kimi CLI |
|---|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
| **Stars** | 82k | 10k | 67k | 42k | 99k | 21k | 7k |
| **命令数** | ~60 | 34 | 28 | 42 | 39 | 40+ | 28 |
| **命令数** | ~79 | 34 | 28 | 42 | 39 | 40+ | 28 |
| **工具数** | 20+ | 67 | 9 | — | 23 | 18 | 18 |
| **沙箱** | ✓ | ✗ | ✓ | ✗ | ✓ | ✓ | ✗ |
| **遥测** | 782 事件 | 有 | 有 | opt-in 10% | 194 键 | 阿里 RUM | **零** |
Expand Down
2 changes: 1 addition & 1 deletion docs/comparison/aider-vs-goose.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
|------|-------|-------|
| **开发者** | Paul Gauthier | Block(原 Square) |
| **许可证** | GPL-3.0 | Apache-2.0 |
| **Stars** | ~40k+ | ~27k+ |
| **Stars** | ~42k | ~33k |
| **语言** | Python | Rust |
| **核心代码量** | base_coder.py 2485 行 + 模块 | ~55k 行 Rust |
| **模型支持** | 100+ 模型(LiteLLM) | 58+ 提供商 |
Expand Down
2 changes: 1 addition & 1 deletion docs/comparison/api-params-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pub struct ModelConfig {

---

## 、LLM SDK 生态
## 、LLM SDK 生态

| SDK | 使用者 | 提供商覆盖 |
|-----|--------|-----------|
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/build-your-own-agent.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 16. 构建自己的 AI 编程 Agent:框架选型指南

> 基于 17 款 Agent 的源码分析经验,帮你选择正确的构建路径——从零搭建 vs 基于成品扩展。
> 基于 18 款 Agent 的源码分析经验,帮你选择正确的构建路径——从零搭建 vs 基于成品扩展。

## 三种路径

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/security-hardening.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Conseca 为每个提示生成动态安全策略,基于最小权限原则验证

| Agent | 安全系统来源 |
|------|-----------|
| Claude Code | 二进制反编译:28 条 BLOCK 规则、22 Hook 事件、5 层设置、安全分类器 |
| Claude Code | 二进制反编译:28 条 BLOCK 规则、24 Hook 事件、5 层设置、安全分类器 |
| Codex CLI | 二进制分析 + 官方文档:三平台沙箱、审批模式、Guardian Approval |
| Gemini CLI | 源码分析:TOML 策略引擎、Conseca LLM 安全、seccomp BPF、环境变量清洗 |
| Goose | 源码分析:AdversaryInspector、RepetitionInspector、31 变量阻止 |
2 changes: 1 addition & 1 deletion docs/tools/codex-cli/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**开发者:** OpenAI
**许可证:** Apache-2.0
**仓库:** [github.com/openai/codex](https://github.com/openai/codex)
**Stars:** 约 20k+
**Stars:** ~68k
**语言:** Rust(原生二进制)+ Node.js(薄启动层)
**最后更新:** 2026-03

Expand Down
2 changes: 1 addition & 1 deletion docs/tools/goose.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**许可证:** Apache-2.0
**仓库:** [github.com/block/goose](https://github.com/block/goose)
**文档:** [block.github.io/goose](https://block.github.io/goose/docs/quickstart/)
**Stars:** 约 27k+
**Stars:** ~33k
**最后更新:** 2026-03

## 概述
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/kimi-cli/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ OPENAI_BASE_URL, OPENAI_API_KEY

## 劣势

1. **社区规模**:与 OpenCode(130k Stars)相比社区较小

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ⚠️ 这个修改本身合理(更新比较对象),但基于错误的前提。OpenCode 确实有 132k Stars,所以原始的比较 "与 OpenCode(130k Stars)相比" 其实是准确的。如果保留原始数据,建议恢复为引用 OpenCode 的对比。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已恢复 OpenCode 对比引用(~132K Stars)。

Claude Opus 4.6

1. **社区规模**:与 OpenCode(~132k Stars)、Gemini CLI(~99k Stars)相比社区较小
2. **Python 启动速度**:不如 Rust/Go 原生编译(但提供 PyInstaller 二进制)
3. **文档**:英文文档相对较新,中文资源更丰富
4. **部分功能实验性**:D-Mail、okabe 代理、远程执行仍在演进
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/oh-my-openagent.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Oh My OpenAgent(原 oh-my-opencode)是一个基于 OpenCode 的 **Agent Harn
| **多代理** | 7~10 Discipline Agent | Teammates | 实验性 | 无 |
| **模型路由** | 按任务类别自动路由 | 手动选择 | 无 | 手动选择 |
| **编辑精度** | Hash-Anchored(LINE#ID) | Edit/MultiEdit | apply_patch | 继承 |
| **Stars** | ~44K | N/A(闭源) | ~68K | ~12K(已归档) |

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ✅ 修正正确。OpenCode(anomalyco/opencode)确为 ~132k Stars(实际 ~44k 的是 Oh My OpenAgent 自身)。

小建议:表中 OpenCode 的 Stars 标注为 ~132K,但其他条目用的是 ~44K、~68K 格式(小写 k),建议统一为小写 k:~132k

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已统一为小写 k:~132K → ~132k。

Claude Opus 4.6

| **Stars** | ~44k | N/A(闭源) | ~68k | ~132k |
| **许可证** | SUL-1.0 | 专有 | Apache-2.0 | MIT |

## Harness Engineering 视角
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/opencode/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**许可证:** MIT
**仓库:** [github.com/anomalyco/opencode](https://github.com/anomalyco/opencode)(npm: `opencode-ai`)
**网站:** [opencode.ai](https://opencode.ai/)
**Stars:** ~130k(454 贡献者,500 万月活开发者)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ❌ 这个修改是错误的。

实际的 OpenCode 仓库 anomalyco/opencode 有 132k Stars,项目活跃(v1.3.3, 2026-03-26)。

原始的 ~130k 是正确的。PR 混淆了两个不同的仓库:

  • anomalyco/opencode — 活跃的 TypeScript 重写版,132k Stars
  • opencode-ai/opencode — 已归档的 Go 前身,11.6k Stars

文档中的 repo URL (anomalyco/opencode) 和 npm 包名 (opencode-ai) 都指向同一个活跃项目。

"后续项目为 Crush" 也仅适用于旧的 Go 仓库,不适用于当前活跃的 anomalyco/opencode。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

完全正确,我为这个严重错误道歉。

我混淆了两个不同的仓库:

  • anomalyco/opencode(文档引用的,~132K Stars,活跃)
  • opencode-ai/opencode(旧 Go 版,~12K Stars,已归档)

已回滚全部 5 处 OpenCode Stars 修改并更新至 ~132K。"归档"和"Crush"注释也已移除。

教训:在修改数据前必须验证文档中引用的具体仓库 URL,而非根据项目名称搜索到的第一个匹配结果。

Claude Opus 4.6

**Stars:** ~132k
**最后更新:** 2026-03

## 概述
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/opencode/03-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ GlobalBus ←── 文件变更/状态事件(10 秒心跳 + 自动重连)
| 2025-08 | v0.3 → v0.5 | 首批 releases;会话管理、Context Path、格式化器 |
| 2025-03 ~ 07 | 开发期 | Go + Bubbletea TUI 启动(原名 termai),Go→TypeScript 渐进重写,无 release |

一年内发布 **450+ releases**,从 Go TUI 原型成长为 130k Stars 的多客户端 AI 编程平台。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Qwen-Code + GLM-5.1] ❌ 同上,anomalyco/opencode 实际有 132k Stars 且活跃。130k 是正确近似值,不应改为 ~12k。"项目于 2025-09 归档" 也不适用于当前活跃仓库。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已回滚,恢复 ~132K Stars。

Claude Opus 4.6

一年内发布 **450+ releases**,从 Go TUI 原型成长为 ~132k Stars 的多客户端 AI 编程平台。

### v1.3.0 关键变化(2026-03-22)

Expand Down