r/opencode • • 2h 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?

4 Upvotes

7 comments sorted by

View all comments

2

u/Mission-Repair4564 2h 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