Multi-Agent Orchestration: Pass Artifacts and Enforce Budget Guards
A Juejin AI tutorial recommends passing artifact identifiers and original structured outputs between workers instead of Supervisor paraphrases. It provides a runnable 120-line example that isolates each worker’s context and adds maximum-step, token-budget, and repeated-action guards. The article says a benchmark attributed to the LangGraph team showed an initial Supervisor design trailing an optimized version by about 50%. In an author-reported debugging scenario, modification and review went through seven rounds, an eighth round repeated an earlier action, and token costs tripled.
The tutorial presents a practical engineering pattern for avoiding information loss, repeated work, hidden failures, and uncontrolled costs in multi-agent systems through artifact-based handoffs, isolated worker contexts, explicit budgets, and observable traces.
别再让 Agent 互相传话:多 Agent 协作的 3 个致命错误(附 120 行可运行代码)
导语:单体 Agent 跑到第十五次工具调用就开始胡说八道,拆成多 Agent 之后又开始互相甩锅。很多人以为是模型不行,其实问题出在你让它们“怎么说话”。
一、为什么你的多 Agent 越拆越乱
一个真实的排查现场:订单接口要补空值保护,需求拆给三个 Agent —— 需求分析、写代码、代码审查。流程看着很标准,跑出来的结果却是:
- 分析 Agent 说“已识别 2 条验收标准”,但审查 Agent 收到的只有一句“请检查代码质量”;
- 写代码 Agent 改完之后,审查提了 3 个问题,其中 1 个已经被改过;
- 修改和复审来回 7 轮,第 8 轮还在重复第 3 轮的动作,Token 账单翻了三倍。
这不是模型能力问题,是架构问题。LangGraph 团队曾公开过一组基准:同样是 supervisor 架构,初版比优化版差了约 50%,原因被总结成“电话游戏(telephone game)”——Supervisor 把子 Agent 的结果用自己的话转述给下一个 Agent,信息在每一次转述里掉一层。