Claude Code Subagent 税 2.6 到 5.9 倍 Token 怎么控
Systima 2026 年研究:Claude Code subagent fan-out 相对 sequential 可多花 2.6×–5.9× input token,且未测到更快。本文给 fan-out 预算、Explore 配置与 9 月额度收紧下的替代做法。

HN 上常见 horror story:一次 code review 悄悄 spawn 七个 subagent,五小时 bucket 被清空;还有 report 称 fan-out 到 102 个 agent。Systima 2026 年 Subagent Tax 研究用对照实验量化:相对 sequential 完成同一任务,Claude Code fan-out 的 input token 为 2.6×–5.9×,timed 任务里没有一次更快;最大案例 513k vs 121k token(约 4.2×)。9 月 14 日 周额度下调 后,这条「税」直接从钱包体感变成硬 cap。
为什么 subagent 比主 session 更贵
每个 subagent 不是「免费小助手」,它带 自己的 system prompt + 工具 schema 子集。Systima 测 OpenCode Explore subagent 约 1,485 字符 + 5 tools;Claude Code 同路径 ~4,000 字符 + 24 tools。Fan-out N 个 = N 份 floor,再加主 session 协调 turn。
2.1.232 起 subagent fork 默认继承 cache 缓解部分 prefill,但 fan-out 宽度仍线性放大;cache miss 时单次 rewrite 可达 50k–85k token(见 Token 开销对比)。
三条 fan-out 预算规则
默认 sequential,并行需 written justification
只有子任务 无依赖 且 wall time 是瓶颈(如等 CI)才 fan-out。否则让主 Agent 读文件 A→B→C。限制宽度与深度
官方 nested subagent depth 见 depth-3 文;团队 rule 写「review 最多 3 个 Explore,禁止 40+ 扫描」。大探索拆到 Cursor 或 rg
全库 symbol 搜索用 ripgrep / IDE,Claude Code 只消化摘要,减少「spawn Explore 扫全 repo」冲动。
配置层减负
减 MCP:生产配置 118 tools 时 subagent 也继承膨胀列表。
/agents 或 custom subagent 定义里 缩小 tool allowlist;Explore 只需 Read/Grep 就别给 Bash。
CLAUDE.md 写清:禁止未经确认的 Task/subagent 批量创建。
与 9/14 撑过一周 的 MCP 减法同源。
何时 subagent 仍值得付「税」
隔离风险:让 subagent 在受限 tool 下跑不可信 script,主 session 不碰 Bash。
Fork 合并结论:2.1.232 fork 继承对话,适合并行读多目录后汇总,仍要控 N。
Teammate / 多 session 编排:与 Agent Teams 不同层;团队模式有单独限额逻辑,别和 Explore fan-out 混为一谈。
和 OpenCode / Cursor 的对比
OpenCode subagent fan-out 在 Systima 第二 study 里 未完整计量(一次 hang 终止),不能断言更省;选型见 OpenCode 值不值。
Cursor 多 Agent(Cloud / Background)按 Cursor 定价 扣池,不是 Claude Code 周 cap,混用时分开记账,见 Cursor 完整定价 2026。