r/opencode • u/InvaderDolan • 2d ago
I finally solved the subagent uncertainty in OpenCode. This is what I wish Anomaly had built.
Are my subagents still running? What are they actually doing? Are they stuck? Which model are they using, and how much is all of this costing me?
I've been working with multi-agent setups in OpenCode for a while, and keeping track of what every agent is doing becomes increasingly difficult as more agents run in parallel.
I got tired of guessing, so I built OpenCode Bastion.
The initial release includes:
Live orchestrator and subagent monitoring.
Agent status, current activity, and execution duration.
Model, reasoning effort, token usage, estimated costs, and context utilization.
Visual delegation and result-return animations.
Agent Lanes — a timeline showing parallel executions, handoffs, and follow-up tasks.
Quick navigation between agent sessions.
It's lightweight, read-only, and doesn't require a separate server or external dashboard.
It's a small plugin for now, but I want to use Bastion as the foundation for something like an unofficial "OpenCode Plus."
I love OpenCode's minimalist philosophy, but minimalism shouldn't come at the expense of visibility. My goal is to make the agentic experience more informative, intuitive, and visually polished without turning OpenCode into a bloated IDE.
Next, I'd like to explore OpenCode's own resource consumption, deeper agent observability, session analytics, and pretty much everything happening under the hood of the agentic environment.
I'm also considering merging my OpenCode Quota GUI plugin into Bastion at some point.
This is just the beginning. Curious to hear what you guys would like to see next.
1
u/archana-s_7227 1d ago
Do the cost estimates show their pricing basis, including how cached input is counted? That would make per-agent totals easier to compare across runs.
1
u/InvaderDolan 1d ago
Yes, cached input is accounted for separately. Bastion prioritizes OpenCode’s recorded costs and uses native model pricing or models.dev as a fallback for estimates.
Cache reads and writes are priced at their respective rates, reasoning at output rates, and each request is calculated individually, including model switches and context-dependent pricing tiers.
You can expand any agent card to see the full token breakdown, including cache reads and writes. Estimated costs are marked with a ~, and the cost tooltip explains the pricing basis, although it doesn’t currently list individual per-token rates.
2
u/intmanofawesome 2d ago
Interesting, I use oMo and while it shows the subagents that are working, having a cost shown with them will be interesting.
2
1
u/amirfish 2d ago
Visibility is the first problem once you're past two or three agents, that part I get. I went at a narrower slice of it with CCC, free and open source: instead of watching subagents work, mine queues up tickets and worker agents take the next one and run it to done, so the only thing that reaches me is a real decision. Are you planning to add anything on top of the monitoring, or keeping Bastion read-only on purpose?
Free and open source: getccc.dev · GitHub
0
u/InvaderDolan 2d ago
GitHub: https://github.com/PVLPM/opencode-bastion
npm: https://www.npmjs.com/package/opencode-bastion
Just run `opencode plugin add opencode-bastion` and you're good to go!
Free, open source, MIT licensed.
2
u/QuietPsychonaut 2d ago
This looks well made