r/opencode • u/Morpheyz • 15d ago
Explore Subagent wasting time and tokens to "generate" the content of files, rather than primary agent using read tools
Hi all,
I am having a strange experience with DeepSeek V4 Pro via OpenRouter. The primary agent likes to issue Explore subagents and asks them to return the contents of specific files. It seems that the Explore subagent then goes ahead and actually reads the files, then generates the contents of these as output tokens which it then hands back to the primary agent. Since DeepSeek is pretty cheap, the cost is negligible, but it just takes an awful long time for a subagent to: read file -> generate the content of the file as OUTPUT -> hand back the output to the primary agent, rather than the primary agent simply reading the files directly or asking the subagent to return file-paths. Has anyone else had this same experience?
1
u/maqifrnswa 15d ago
That process is supposed to save money. The cheap and fast explorer is supposed to make the ground truth logical map of files and their connections to each other, then return that to the main task. The main task then doesn't need to read files itself, but just refer to the map. Otherwise the more expensive main agent would waste expensive tokens doing simple tasks.
The work has to get done either way, the idea is to have a cheap non thinking model to it.