Hi Jake, thanks that is a really useful reply, but the reality continues to be a problem.
I have continued trying to get it as clean as I possibly can. I have built an automated python script which submits minimally clean prompts with as close to zero overhead as possible, and the external prompt is standalone (doesn’t pull in anything at all from a parent chat). It is currently set to Composer 2.5 non-fast mode.
This is the report back from the agent:
“We handed Cursor a 562-byte packet. Cursor reported 14,356 input tokens for that one call, about 957 tokens back. That is the agent wrapper, not the two excerpts. The run log is one line, model Composer 2.5.”
This was to do a simple test, to make a single digit change on one line of code.
Reason I need to use sub-agents:
Your linked doc says “Use subagents to break down complex tasks, do work in parallel, and preserve context in the main conversation”.
My workflow currently needs me to baby-sit it manually to say “fine, now do …”, then that returns and I say “fine, now do …”. The overall task is too big (results in errors all over the place), so I break it down into blocks. So => should be the exact use case they are talking about.
Having broken into manageable blocks, the individual tasks are small, but each one needs to go through multiple steps and the process of managing those steps is disastrous due to EITHER needing to manage it manually, OR token bloat introduced on each one
My only hope is that that 15k tokens is a fixed once-off per call, and will stay at 15k even when the main call is a more serious task. The frustration is that the overhead is entirely opaque, with no way of knowing what is in there, whether it will suddenly escalate (to the $2.50+ per individual call I have been getting) , or how to manage it more effectively.
I submitted a support request but have heard nothing back … so it’s great to have had some helpful input here, thank you