# 2026 主流 AI Agent 技术盘点

> 生成日期：2026-10-13 · 数据来源：各官方文档 / GitHub / 行业媒体（详见文末参考链接）
> 说明：文中 Star 数为撰写时点的近似值，仅供量级参考。

## 什么是 AI Agent

一句话定义（Hugging Face smolagents）：**AI Agent 是「由 LLM 输出来驱动整条工作流」的程序。**
自主性（agency）是一个渐变的谱系，而不是一盏开关：模型选 if/else 分支是路由；选函数是工具调用；自己决定要不要继续循环才是多步 Agent；一个工作流可以启动另一个工作流就是 Multi-Agent。
所有框架共享同一个最内核循环：**保存记忆 → 向模型要下一步动作 → 执行 → 追加观察 → 重复，直到模型说停**。

---

## 一、2026 年的三大趋势

- **本地优先（Local-first / 自托管）**：隐私、成本、可控性是 OpenClaw、Hermes Agent、Aider 等爆火的根本原因——数据不出机器、可换任意模型、代码可审计。
- **大厂 Agent 平台化**：OpenAI（Codex / Dots / GPT-6）、Anthropic（Claude Code / Managed Agents）、Google（Gemini Enterprise / Agent Development Kit）全线押注「托管 Agent 运行时」，竞争焦点从模型转向**可观测、可恢复、可编排的运行时**。
- **协议层标准化**：MCP（Model Context Protocol，2026-07-28 无状态修订）与 A2A（v1.0，2026-05-28）先后纳入 Linux 基金会的 Agentic AI Foundation；MCP 已沉淀 10,000+ 服务器、A2A 有 150+ 组织。
- **文件即 Agent（File-based agents）**：`instructions.md` + `tools/` + `skills/`，一个文件夹就是一个 Agent —— Flue、Vercel Eve、Mastra 在 8 周内不约而同落地，范式级收敛。

---

## 二、即拿即用的开源 Agent

| Agent | 定位 | 关键事实 |
|---|---|---|
| **OpenClaw** | 本地个人助手，接入 WhatsApp/Telegram/Slack/微信等 20+ 渠道，带 macOS/iOS/Android 原生端 | GitHub 史上增长最快的开源项目之一；由 Peter Steinberger（PSPDFKit 创始人）发起，现由 OpenClaw Foundation（501c3 非营利）托管，MIT。曾用名 Clawdbot → Moltbot → OpenClaw |
| **Hermes Agent** | Nous Research 的自改进通用 Agent，内置「学习循环」：从经验生成技能、自我搜索历史对话、跨会话记忆 | 模型无关（Nous Portal / OpenRouter 200+ 模型 / 本地 Ollama），MIT |
| **Aider** | 终端里的开源代码 Agent（git-native，结对式改代码） | 长期高星、许可宽松、社区庞大 |
| **Cline / Aider / OpenCode** | 编辑器/终端里的编码 Agent | Cline 是 VS Code 插件，OpenCode 是 CLI 系 |
| **AutoGPT** | 目标驱动自主 Agent 的「鼻祖」 | 如今更多作为沙盒/教学用途 |
| **Gemini CLI** | Google 官方终端编码 Agent | TypeScript，~100k star |
| **Dify / 平台型** | 可视化编排 + RAG + 运行时的 Agent 平台 | Dify ~157k star，可自托管；Langflow ~155k |

大厂「即拿即用」侧：**OpenAI Codex / Dots**（可持续运行的 Agent，GPT-6 Astra 驱动）、**Anthropic Claude Code + Managed Agents**、**Google Gemini Enterprise + ADK**。

---

## 三、构建你的 Agent：主流开源框架

> 截至 2026-09-26 的 GitHub 快照（近似值）

| 框架 | 维护方 | 语言 | 核心抽象 | 最佳场景 | ~Star |
|---|---|---|---|---|---|
| **LangGraph** | LangChain | Py / TS | 节点+边的**状态图** + 检查点 | 长程、可恢复、含人工节点的复杂工作流（Klarna/Uber/LinkedIn 部署） | 42.3k |
| **CrewAI** | CrewAI Inc. | Python | 角色扮演「crew」+ 事件流 | 按角色拆分的多 Agent 流水线，入门最友好 | 59.1k |
| **OpenAI Agents SDK** | OpenAI | Py / TS | Agent + **Handoff** + Guardrail + 内置循环 | 以 OpenAI 模型为主的生产级单 Agent（100+ 模型可用） | 29.7k |
| **Google ADK** | Google | Py/TS/Go/Java/Kotlin | LlmAgent + 2.0 图工作流 | 多云、多语言团队 + GCP | 21.7k |
| **smolagents** | Hugging Face | Python | 动作**写成 Python 代码执行** | 研究、开放模型、code-first 工具调用 | 29.5k |
| **Pydantic AI** | Pydantic | Python | 类型化 `Agent[Deps, Output]` + 依赖注入 | 重类型/可恢复性的生产级 Python 服务 | 20.2k |
| **Microsoft Agent Framework** | Microsoft | .NET/Py/Go | AutoGen+Semantic Kernel 合并（GA 2026-04） | .NET 企业 + Azure | 13.8k |
| **Claude Agent SDK** | Anthropic | Py / TS | 把 Claude Code 当作可嵌入库 | Claude 系编码/文件系统 Agent | 8.2k |
| **Mastra** | Mastra(Astro 系) | TypeScript | 图形工作流 + 文件型 Agent | 「最完整的 TS Agent 框架」 | ~24k |
| **Vercel AI SDK** | Vercel | TypeScript | streaming-first 的 `useChat/useCompletion` | 给 Web 应用加 Agent 能力 | ~20k |

**怎么选（结论向）：**
- 要编排多条 Agent 流程、一个栈标准化 → **LangChain / LangGraph**
- 快速多 Agent 角色流水线 → **CrewAI**
- 生产级单 Agent（OpenAI）→ **OpenAI Agents SDK**
- 生产级单 Agent（Claude / 编码）→ **Claude Agent SDK**
- 类型安全的生产 Python → **Pydantic AI**
- 开放模型 + 研究 → **smolagents**
- Web 应用内嵌 → **Vercel AI SDK / Mastra**

---

## 四、协议层：MCP 与 A2A（2026 标准化）

| 维度 | **MCP**（2026-07-28） | **A2A**（v1.0，2026-05-28） |
|---|---|---|
| 治理 | Linux 基金会 Agentic AI Foundation | Linux 基金会 Agentic AI Foundation |
| 标准化对象 | 宿主应用如何把模型连到工具的服务器/资源/提示 | 客户端如何**发现远端 Agent** 并委派任务 |
| 线格式 | JSON-RPC 2.0 over stdio / Streamable HTTP，无状态 | JSON-RPC 2.0 over HTTP / gRPC，`a2a.proto` |
| 发现机制 | `server/discover` | Agent Card（身份/技能/端点/鉴权） |
| 工作单元 | 一次工具调用 | 一个带生命周期的 Task（submitted→working→completed/failed…） |
| 鉴权 | OAuth 2.0 + 客户端元数据文档 | OAuth 2.0（含 device flow / PKCE）、API key、mTLS |

几乎每个主流框架今天都是 MCP 客户端（CrewAI、LangGraph、Pydantic AI、ADK、OpenAI、Claude 都原生支持）；ADK / Pydantic AI 还能把 Agent 暴露成 A2A 服务。**MCP 管「工具」，A2A 管「Agent 之间」——两层都进了 Linux 基金会，是 2026 的互操作地基。**

---

## 五、2026 新范式与新动向

- **文件即 Agent**：Flue（Astro 团队，1.0 Beta 2026-06-16）、Vercel Eve（「agents 界的 Next.js」，2026-06-17）、Mastra 文件型 Agent（2026-07-03）——同一个答案被三家同时收敛，是 MCP 之后最大的一次构建方式变化。
- **托管/可观测运行时**：LangSmith Deployment、Google Agent Runtime、Microsoft Foundry、OpenAI Responses API、CrewAI AMP、Anthropic Managed Agents——**「运行时而非库」正在成为产品主体**。
- **并行 Agent 编队**：Orca 用并行 git worktree 让多个编码 Agent 同时跑、对比 diff 再合并；Sol（OpenAI）主打同等智能、更低价格。
- **安全与治理（不容忽视）**：
  - OpenClaw 被披露高危漏洞 **ClawJacked**（诱导访问恶意网页即可远控本地 Agent）→ 提醒：权限边界、供应链、人工确认是 Agent 安全的三板斧。
  - Anthropic 的 Dario Amodei 多次呼吁「放慢模型能力提升的节奏」；OpenAI 因内部 Agent 误触澳大利亚政府系统公开致歉。
  - 业界共识方向：**高风险动作 human-in-the-loop、沙箱执行、最小权限、可审计日志**。

---

## 六、参考链接

**官方 / 文档**
- OpenClaw 官网 — https://openclaw.ai
- OpenClaw 仓库 — https://github.com/openclaw/openclaw
- OpenClaw 维基 — https://en.wikipedia.org/wiki/OpenClaw
- Hermes Agent（Nous Research）— https://github.com/NousResearch/hermes-agent
- Hermes 文档 — https://hermes-agent.nousresearch.com/docs
- Claude Code — https://claude.com/product/claude-code · 文档 https://code.claude.com/docs
- Claude Agent SDK — https://github.com/anthropics/claude-agent-sdk-python
- Claude 平台 — https://platform.claude.com/docs
- OpenAI 开发者 — https://platform.openai.com/docs
- Google Gemini CLI — https://github.com/google-gemini/gemini-cli

**GitHub / 开源框架**
- LangGraph — https://github.com/langchain-ai/langgraph
- CrewAI — https://github.com/crewAIInc/crewAI
- OpenAI Agents SDK — https://github.com/openai/openai-agents-python
- Google ADK — https://github.com/google/adk-python
- smolagents — https://github.com/huggingface/smolagents
- Pydantic AI — https://github.com/pydantic/pydantic-ai
- Microsoft Agent Framework — https://github.com/microsoft/agent-framework
- Mastra — https://github.com/mastra-ai/mastra
- Vercel AI SDK — https://github.com/vercel/ai
- Aider — https://github.com/Aider-AI/aider
- Dify — https://github.com/langgenius/dify
- Langflow — https://github.com/langflow-ai/langflow

**协议**
- MCP 规范 — https://modelcontextprotocol.io
- A2A 协议 — https://a2aproject.io
- MCP GitHub — https://github.com/modelcontextprotocol
- A2A GitHub — https://github.com/a2aproject/A2A

**博客 / 资讯（趋势与深度）**
- The Agent Report — https://the-agent-report.com
- ByteByteGo · 2026 热门 AI 仓库 — https://blog.bytebytego.com/p/top-ai-github-repositories-in-2026
- ToolRadar · 最佳开源 Agent — https://toolradar.com/guides/best-open-source-ai-agents
- Stacks & Flows · 框架对比 — https://stacksandflows.com/ai-agent-frameworks
- The ToolNerd · 文件即 Agent — https://thetoolnerd.com/p/file-based-ai-agents-how-flue-vercel-mastra-building-it
- 500+ AI Agent 项目合集 — https://github.com/ashishpatel26/500-AI-Agents-Projects
- awesome-ai-agents-2026 — https://github.com/caramaschiHG/awesome-ai-agents-2026

<!-- END-OF-DOC -->