mirror of
https://github.com/shareAI-lab/learn-claude-code.git
synced 2026-05-20 09:33:20 +00:00
Merge pull request #1 from zhimin-z/copilot/fix-table-formatting-issues
Add three-way comparison table (subagent / runtime task / teammate) to s09 zh doc
This commit is contained in:
commit
6193537270
3 changed files with 191 additions and 177 deletions
|
|
@ -8,7 +8,21 @@
|
|||
|
||||
## 问题
|
||||
|
||||
Subagent (s04) 是一次性的: 生成、干活、返回摘要、消亡。没有身份, 没有跨调用的记忆。Background Tasks (s08) 能跑 shell 命令, 但做不了 LLM 引导的决策。
|
||||
Subagent (s04) 是一次性的: 生成、干活、返回摘要、消亡。没有身份, 没有跨调用的记忆。后台任务(s08,对应 Background Tasks)能跑 shell 命令, 但做不了 LLM 引导的决策。
|
||||
|
||||
这三个机制是这一组章节里最容易混的点, 可以直接记这张表:
|
||||
|
||||
| 机制 | 更像什么 | 生命周期 | 关键边界 |
|
||||
|---|---|---|---|
|
||||
| subagent | 一次性外包助手 | 干完就结束 | 重点是"隔离一小段探索性上下文" |
|
||||
| 后台任务 | 正在运行的后台执行槽位 | 任务跑完或取消就结束 | 重点是"慢任务稍后回来",不是长期身份 |
|
||||
| teammate | 长期在线队友 | 可以反复接任务 | 重点是"有名字、有邮箱、有独立循环" |
|
||||
|
||||
换成更口语的话说:
|
||||
|
||||
- subagent 适合"帮我查一下再回来汇报"
|
||||
- 后台任务 适合"这件事你后台慢慢跑,结果稍后通知我"
|
||||
- teammate 适合"你以后长期负责测试方向"
|
||||
|
||||
真正的团队协作需要三样东西: (1) 能跨多轮对话存活的持久 Agent, (2) 身份和生命周期管理, (3) Agent 之间的通信通道。
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue