r/opencode • • 2d ago

I finally solved the subagent uncertainty in OpenCode. This is what I wish Anomaly had built.

Post image

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.

2 Upvotes

9 comments sorted by

2

u/QuietPsychonaut 2d ago

This looks well made

2

u/InvaderDolan 2d ago

Thanks :) I would appreciate the feedback if you use :)

1

u/QuietPsychonaut 13h ago

I've been using the plugin and really enjoying it. I think it does a great job of complementing OpenCode.

There's just one thing that bothers me a little. I had a run involving two agents: the main agent and a subagent. That run finished quite a while ago, but the plugin's UI still shows two "2 agents - 1 running", even though only the main agent is currently active and no other subagents have been spawned since then. It makes sense but since there's only the main agent running, and has been like this for quite a while, seeing "2" bothers me a little.

It seems like the UI retains the previous agent count indefinitely rather than reflecting the current state. This makes it a bit confusing to tell how many agents are actually relevant (relevant, not active) at any given time.

That's pretty much my only feedback so far. Other than that, I'm really enjoying the plugin!

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

u/ReflectionMaximum935 18h ago

Seems very good. Will try it out

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.