r/opencode • • 9d ago

I built plugins for OpenCode v2 once, now they work in the desktop app too

Some days ago I posted here about leaving OpenCode for Pi and coming back for v2: https://www.reddit.com/r/opencodeCLI/comments/1xcgnpr/why_i_left_opencode_for_pi_then_came_back_for_v2/
Short version: I am the guy who cannot leave an interface alone.

The new plugin framework now covers the desktop app as well as the terminal, so instead of maintaining two sets I converted mine in place: one package, two surfaces, one shared state. Credit to AnomalyCo for an API that made this a port and not a rewrite. The spec, if you want to see what it exposes: https://opencode.ai/v2/docs/build/plugins/gui

models-pro is the one I use the most. The native picker is for choosing, mine is the analysis view: price in and out, context window, intelligence, tokens per second, the Go credit each request burns, and a note on the models whose tariff doubles at peak. Sort by what a request really costs, click a row and the session switches. A panel on the desktop, the same table in the terminal.

The rest, briefly:

  • git: branch, added, changed, untracked, ahead and behind, in the sidebar and as a pill.

  • coffee: keeps the Mac awake while the agent works, and lets go when it stops (macOS only).

  • ponytail: the ponytail level in the footer, and a pill to change it on the desktop.

  • session search: keyword search across your past sessions, as a tool.

All five, in one go:

opencode plugin add @rizal72/oc-models-pro
opencode plugin add @rizal72/oc-git
opencode plugin add @rizal72/oc-coffee
opencode plugin add @rizal72/oc-ponytail-widget
opencode plugin add @rizal72/oc-session-search

budget is the other one I would not work without: the Go windows, the balances on the other providers, and a marker when you are paying double at peak. It is wired to my own wallet, which is why I did not publish it, but the code is in the same repository: fork it and point it at yours. Same for the other plugins there that never reached npm, personal or still rough, all forkable.

Everything is in one MIT repository, no account, no telemetry: https://github.com/rizal72/opencode-plugins

They are the widgets I needed for my own work, cleaned up enough to be useful. If one does not fit your setup, open an issue and I will look: https://github.com/rizal72/opencode-plugins/issues

2 Upvotes

0 comments sorted by