提防子代理缓存过期
Watch out for subagent cache expiry
要点
- 子代理的提示缓存只有 5 分钟,主代理是 1 小时。
- 子代理闲置等待编排者指令超过 5 分钟后,下一次输入会带上完整对话历史,按约 25 倍的价格重算,可能高达 100 万 token。
- 长时间、多子代理并行的编排任务要留意用量,作者一个会话不到 24 小时就用掉 76% 的周额度。
- 作者后续的解法:明确要求编排者改用 claude agents 启动后台线程并与之通信,而不是子代理。
- 子代理只用于快速、一次性的探索任务,不要让它执行可能超过 5 分钟的耗时工具调用。
原帖开头
I used up 76% of my weekly Claude limit in less than 24 hours, all in one session. I finally figured out what happened, so this might help anyone going through something similar. It turns out that session was orchestrating subagents for a larger project. But that shouldn't be a …






