Files
nexus/wiki/concepts/CEOPattern.md

33 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "CEO Pattern"
type: concept
tags: [multi-agent, architecture, orchestration]
sources: [autonomous-project-management]
last_updated: 2026-04-22
---
## 定义
主 Agent 仅负责策略决策strategy only所有执行操作下沉至子 Agent 的极简主控模式。其名称来源于"CEO 只做战略,不管执行"的企业管理隐喻。
## 核心原则
- **主会话越薄越好**0-2 步工具调用,响应速度与主会话的"薄度"成正比
- **只做决策**:任务分配、优先级调整、结果汇总
- **不做事**:不直接执行工具调用,不处理具体业务逻辑
- **所有执行下沉**:子 Agent 自主工作,主会话只负责协调
## 关键洞察
> "The less the main agent does, the faster it responds."
主会话的功能越少,其响应速度越快——这是去中心化协调架构的性能保障。
## 实现方式
通过 [[PM Delegation Pattern]],每个子 Agent 被赋予特定范围的任务,独立完成,主会话不干预具体执行过程。
## 与传统 Orchestrator 模式的区别
| 维度 | Orchestrator 模式 | CEO 模式 |
|------|-------------------|---------|
| 主 Agent 角色 | 交通指挥员(所有调用必经) | CEO仅决策 |
| 并行能力 | 受限(中心瓶颈) | 强(完全并行) |
| 响应速度 | 随任务数线性下降 | 稳定(子 Agent 异步执行) |
| 扩展性 | O(n) 瓶颈 | O(1) 主会话成本 |