总览
| 方面 | Deep Agents | OpenCode | Claude Agent SDK |
|---|---|---|---|
| 主要用例 | 以编程方式构建生产级智能体 | 终端、桌面或 IDE 中的交互式编码智能体 | 以编程方式构建生产级智能体 |
| 模型支持 | 模型无关(Anthropic、OpenAI 和其他数百个) | 75+ 提供商,包括本地模型 (Ollama) | Claude 模型 (Anthropic, Azure, Vertex AI, AWS Bedrock) |
| 许可证 | MIT | MIT | MIT (底层 Claude Code 是专有的) |
| 架构 | Python SDK, TypeScript SDK, 和 CLI | TypeScript SDK, 独立产品(基于终端的界面、桌面应用程序、IDE 扩展) | Python SDK, TypeScript SDK |
功能比较
| 功能 | Deep Agents | OpenCode | Claude Agent SDK |
|---|---|---|---|
| 核心工具 | |||
| 文件 读/写/编辑 | ✅ ls, read_file, write_file, edit_file | ✅ list, read, write, edit | ✅ Read, write, edit |
| Shell 执行 | ✅ execute | ✅ bash | ✅ bash |
| Glob/Grep | ✅ glob, grep | ✅ glob, grep | ✅ glob, grep |
| Web 搜索 | ✅ 支持 第三方 和 原生提供商 | ✅ webfetch, websearch | ✅ WebSearch, WebFetch |
| 规划/Todos | ✅ write_todos | ✅ Plan mode (只读分析) | ✅ Todo lists |
| 子智能体 | ✅ 子智能体 | ✅ General and Explore agents | ✅ Subagents |
| MCP 支持 | ✅ | ✅ MCP | ✅ MCP |
| 人在回路 | ✅ 批准/编辑/拒绝 | ✅ Allow/Ask/Deny | ✅ Permission modes |
| 技能系统 | ✅ 技能 | ✅ Skills | ✅ Skills |
| 长期记忆 | ✅ Memory Store | ✅ Rules | ✅ CLAUDE.md files |
| 流式传输 | ✅ 流式传输 | ✅ | ✅ Streaming |
| 沙盒集成 | |||
| 智能体在沙盒中运行 | ✅ Can run in sandbox | ✅ Can run in sandbox | ✅ Can run in sandbox |
| 智能体在沙盒中运行操作 | ✅ Uses sandboxes as tools | ❌ | ❌ |
| 架构 | |||
| 可组合中间件 | ✅ | Plugins | Hooks |
| 可插拔存储后端 | ✅ backends | ❌ | ❌ |
| 虚拟文件系统 | ✅ Virtual filesystem with pluggable backends | ❌ | ❌ |
| 状态管理 | |||
| 会话恢复 | ✅ | ✅ Sessions | ✅ Session management |
| 文件检查点 | ✅ Backends and checkpoints | ✅ (Git-based) | ✅ File checkpointing |
| 时间旅行(状态分支) | ✅ Full | ❌ | ✅ |
| 可观测性 | |||
| 原生追踪 | ✅ LangSmith | ❌ | ❌ |
发现错误?
我们于 2026 年 2 月 18 日起草了此比较。 如果你发现产品有错误或更改,请提交 issue。将这些文档连接 到 Claude, VSCode, 以及更多通过 MCP 获取实时答案。

