r/opencode • • 37m ago

Should i use subagents by default?

I have mostly worked with one main agent doing everything in the same context and it does fill up the 1M context window very fast.

Does the orchestrator approach work better where the agent spawns a subagent even for one scoped task?

And is this slower or faster?

2 Upvotes

5 comments sorted by

3

u/Slow-Secretary4262 33m ago

you should definitely experiment with it because experience varies a lot.

personally i tried and it doesnt work for me, i do 1 thing at the time in a new session for each task with a frontier model and i get the best result in the least time and with comparable cost than having a frontier model orchestrate cheap workers

2

u/Mission-Repair4564 17m ago

For one scoped task, with clear information (already scouted) then subagents will harm more than good.
You can always let the main agent decide whether it wants subagents or not, with some clear instructions.
Here's mine:
- Single agent: Known files, <= 3 targeted lookups, or routine single-track edits
- Subagents: Small/single-surface work (<= 10–15 files) needing 4+ unknown-file traces, 2+ subsystem scouts, or large log digs
- /swarm (antigravity swarming feature): 3+ independent slices with non-overlapping file ownership (or parallel authors + verifiers); never for read-only synthesis, shared files, or <= 2 files

1

u/burtcopaint 31m ago

Dude, it's the best.
Have subagents probe, scout etc to not fill the context window.
Have them return things in bullet points in order to do so, have them specify what they could and could not verify etc...

Think about it. It's really neat

1

u/fapmasterr69 25m ago

Yes, definitely take that approach but select your models carefully. Using an expensive model will backfire and eat up your usage allowance very fast. Currently I am only using hy4 flash and deepseek 4.1 flash. I was using GLM 5.3 when they announced $500 limit, then I also tried GLM 5.3 flash, I keep rotating my models to my convenience.

1

u/sugarw0000kie 24m ago

Subagents can create a lot of overhead for the orchestrator and they will need to re-read their bit of the repo to get oriented, then the orchestrator may need to backtrack and fix things

So like if you run it all through one strong model it will handle it better on its own usually. if the subagents are cheap models being led by a model that's good at orchestrating it can be cheaper to do it that way.

For really long tasks i like to use subagents because it's usually cheaper helps to preserve the orchestrators context.

Usually not great to run agents up to their max context if you can avoid it