Too much token consumed by sub agents #6663
|
i saw my sub agent consume around 40M tokens i did not even gave him long task. |
Replies: 2 comments
|
There can be something like subagent inside subagent or reading a long file of test case i encountered it few day ago. |
|
Your 40M-vs-2M gap can't be explained by the GUI counter alone — subagent sessions are separate sessions with their own logs, so their tokens don't roll into the parent's in-view total. Facts from master (c291e79), then a checklist:
Checklist to find the 40M: 1) was it fork or spawn? 2) look at the child session's log (not the parent's) and find the largest request step — its If you share the child session log, I can point at the exact step. (unverified: qwen adapter behavior — that model isn't in this repo's catalog.) |
There can be something like subagent inside subagent or reading a long file of test case i encountered it few day ago.