Files
nexus/wiki/concepts/多Agent系统.md

65 lines
1.5 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: "多Agent系统"
type: concept
tags: [multi-agent, collaboration, agent]
last_updated: 2026-04-14
---
# 多Agent系统
多个专业Agent协同工作的架构模式每个Agent有独特的角色和职责。
## 核心模式
### 分散式协调
通过共享STATE.yaml文件协调而非中央orchestrator
- Agent读写共享状态文件
- 多子Agent并行工作
- 主会话保持精简CEO模式
### STATE.yaml
项目协调文件,作为单一事实来源:
```yaml
project: website-redesign
tasks:
- id: homepage-hero
status: in_progress
owner: pm-frontend
```
### 团队配置示例
- [[Milo]]策略Lead
- [[Josh]]:商业分析
- Marketing Agent营销研究
- Dev Agent开发
## 关键优势
1. **专业化分工**每个Agent专注特定领域
2. **并行执行**:多任务同时处理
3. **可扩展性**新增Agent无需修改主逻辑
4. **共享记忆**:团队成员共享项目上下文
## 协作机制
- **Telegram路由**通过标签分配到不同Agent
- **共享内存**:项目文档、目标、决策
- **私有上下文**每个Agent独有会话历史
- **定时任务**Agent主动工作
## Race Condition处理
当多个Agent编辑同一文件时
1. AUTONOMOUS.md仅主会话编辑
2. memory/tasks-log.md仅追加子Agent只添加新行
## 使用场景
- [[多Agent专业团队]]
- [[多Agent内容工厂]]
- [[自主项目管理]]
- [[动态仪表板]]
## 相关链接
- [Anthropic: Building Effective Agents](https://www.anthropic.com/research/building-effective-agents)