架构层次
五个正交关注点组合成一个完整的智能体
L1 Tools & Execution
智能体能做什么。基础层:工具赋予模型与世界交互的能力。
L2 Planning & Coordination
工作如何组织。从简单的待办事项列表到跨智能体共享的依赖感知任务板。
TodoWrite
Plan Before You Act
An agent without a plan drifts; list the steps first, then execute
Subagents
Clean Context Per Subtask
Subagents use independent messages[], keeping the main conversation clean
Skills
Load on Demand
Inject knowledge via tool_result when needed, not upfront in the system prompt
Tasks
Task Graph + Dependencies
A file-based task graph with ordering, parallelism, and dependencies -- the coordination backbone for multi-agent work
L3 Memory Management
在限制内保持上下文。压缩策略让智能体能无限工作而不失去连贯性。
L4 Concurrency
非阻塞执行。后台线程和通知总线用于并行工作。
L5 Collaboration
多智能体协调。团队、消息传递和自主思考的队友。
Agent Teams
Teammates + Mailboxes
When one agent can't finish, delegate to persistent teammates via async mailboxes
Team Protocols
Shared Communication Rules
One request-response pattern drives all team negotiation
Autonomous Agents
Scan Board, Claim Tasks
Teammates scan the board and claim tasks themselves; no need for the lead to assign each one
Worktree + Task Isolation
Isolate by Directory
Each works in its own directory; tasks manage goals, worktrees manage directories, bound by ID
