Skip to content

docs: 新增 Subagent 系统设计实现方案总结(架构师视角)#207

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-subagent-system-design-summary
Draft

docs: 新增 Subagent 系统设计实现方案总结(架构师视角)#207
Copilot wants to merge 2 commits intomainfrom
copilot/add-subagent-system-design-summary

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 21, 2026

本 PR 针对“总结本项目 subagents 系统设计并完整沉淀到 docs、中文输出”的需求,新增一份面向系统架构视角的设计总结文档,覆盖从目标、分层到治理建议的完整链路。

  • 新增文档

    • 新增 docs/subagent-system-design-summary.md,集中沉淀 Subagent 系统设计与实现方案。
    • 以架构师视角组织内容,强调系统边界、职责划分、运行语义和可演进性。
  • 架构与实现总结范围

    • 设计目标与系统定位(轻量多代理协作、与现有工具链一致性)。
    • 分层职责映射(工具实现层 / 路由层 / 编排层 / 审批层)与配置开关(MEMO_ENABLE_COLLAB_TOOLSMEMO_SUBAGENT_COMMANDMEMO_SUBAGENT_MAX_AGENTS)。
    • 运行模型与状态机(AgentRecord、submission 生命周期、running/completed/errored/closed/not_found 语义)。
    • 五个协作工具协议:spawn_agentsend_inputwaitclose_agentresume_agent
  • 安全与治理补充

    • 明确记录 spawn(..., shell: true) + MEMO_SUBAGENT_COMMAND 的命令面风险。
    • 给出架构层治理建议:命令模板固化、状态持久化演进、双层限流(全局+会话)。
## 3. 核心运行模型
### 3.1 控制平面:Agent Record
...
## 4. 工具体系与协作协议
### 4.1 `spawn_agent`
### 4.2 `send_input`
### 4.3 `wait`
### 4.4 `close_agent` / `resume_agent`

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add summary of subagent system design implementation docs: 新增 Subagent 系统设计实现方案总结(架构师视角) Apr 21, 2026
Copilot AI requested a review from minorcell April 21, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

subagent系统设计实现方案总结

2 participants