多 Claude Code 会话的「幕僚长」编排模式
The Chief of Staff pattern for orchestrating multiple Claude Code sessions
一篇在 Hacker News 上被热议的实践文章提出「幕僚长模式」:不让单个 Agent 承担长流程,而是由一个调度者 Agent 负责拆解目标、维护任务看板(task board),把子任务派发给多个 Claude Code(Anthropic 的命令行编码 Agent)会话,并在结果回传后统一合并与验收。关键设计是用文件系统与约定替代复杂的工作流引擎,让 Agent 之间只通过可检查的产物通信。。值得参考的是,这条最值得记的是「编排的成本在通信,不在算力」:多 Agent 协同的瓶颈是任务边界、状态同步与验收标准,而不是并行度。可操作的做法是先把 3 个以内的子任务做稳定,再谈横向扩展,否则并行只会放大互相等待与返工。
A widely-discussed Hacker News write-up proposes a chief-of-staff pattern: instead of one agent owning a long workflow, a dispatcher agent decomposes goals, keeps a task board, hands sub-tasks to multiple Claude Code (Anthropic's CLI coding agent) sessions, and merges and validates results. Its key design choice is using a filesystem plus conventions instead of a heavyweight workflow engine, so agents communicate only through inspectable artifacts. What to take from it: The memorable point is that orchestration cost lives in communication, not compute: the bottleneck is task boundaries, state sync and acceptance criteria, not parallelism. Get three sub-tasks stable before scaling out, or parallelism just amplifies waiting and rework.