subagent 算不算 Claude Code 的额度?
更新于
算。Claude Code 文档说 /usage 的计划用量分解会把计入计划限额的用量归因到 skill、subagent、插件和 MCP 服务器。每个 subagent 有自己的上下文窗口,token 叠加在主对话之上;plan mode 下的 agent team 约用 7 倍 token。简单任务设成 model: haiku 可省额度。
官方文档怎么说
/usage also shows a breakdown of what counts against your plan limits: Attribution: recent usage attributed to skills, subagents, plugins, and individual MCP servers
引自 Claude Code docs: Manage costs effectively Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions
引自 Claude Code docs: Create custom subagents Token usage scales with the number of active teammates and how long each one runs
引自 Claude Code docs: Manage costs effectively Agent teams use approximately 7x more tokens than standard sessions when teammates run in plan mode.
引自 Claude Code docs: Manage costs effectively For simple subagent tasks, specify model: haiku in your subagent configuration.
引自 Claude Code docs: Manage costs effectively
怎么算
subagent 按计划计量。成本指南说,在 Pro、Max、Team 或 Enterprise 计划上,/usage 还会显示计入计划限额的用量分解,其中的归因一项列出最近归到 skill、subagent、插件和各个 MCP 服务器的用量。
每个 subagent 是独立的上下文。subagent 文档说每个 subagent 在自己的上下文窗口里运行,有自定义系统提示、特定工具权限和独立的权限设置,所以它的 token 是加在主对话之上,不是和主对话共用。对于 agent team,token 用量随活跃队友数量和每个队友的运行时长增长;当队友在 plan mode 下运行时,agent team 用的 token 约为普通会话的 7 倍。
它们仍然能省主上下文的 token。冗长的工具输出留在 subagent 的上下文里,只有摘要回到主对话,后续回合因此更便宜。成本指南给 subagent 这一侧的省钱办法是:简单的 subagent 任务在配置里指定 model: haiku。
常见问题
subagent 是省额度还是更费额度?
两者都可能。它们的 token 计入你的计划,而且每个都在自己的上下文窗口里运行。但冗长的输出留在 subagent 的上下文里,只有摘要回到主对话,所以主线程在后续回合里更小。
agent team 会多用多少?
成本指南说,当队友在 plan mode 下运行时,agent team 用的 token 约为普通会话的 7 倍;token 用量随活跃队友数量和每个队友的运行时长增长。
在哪里看 subagent 用了多少?
在 Claude Code 里运行 /usage。Pro、Max、Team 或 Enterprise 计划上它会显示计入计划限额的用量分解,包括最近归到 skill、subagent、插件和各个 MCP 服务器的用量。
怎么让 subagent 更省?
成本指南说:简单的 subagent 任务在 subagent 配置里指定 model: haiku。把更重的模型留给真正需要的 subagent。
来源
- Claude Code docs: Manage costs effectively核实于 2026-09-17
- Claude Code docs: Create custom subagents核实于 2026-09-17