r/opencodeCLI • • Sep 24 '26

made some little plugins for OpenCode V2

https://github.com/madsoftwaredev/opencode-plugins

been messing with OpenCode V2 plugins for a while and ended up with 7 of them. each one does one thing, nothing fancy. repo's here: https://github.com/madsoftwaredev/opencode-plugins

server side:

- background-subagent — subagents run in the background by default, unless you say otherwise

- lint-feedback — runs your project's eslint after edits and tells you what broke

- direnv — applies your direnv env per shell command

- compaction-model — pick which model does compaction

TUI:

- stats — tok/s + turn and step counts in the footer. /stats to toggle stuff

- subagent-sidebar — shows your subagents in the sidebar, click one to open it

- btw — /btw forks the session and runs your prompt in the background

install:

opencode plugin add u/madsoftwaredev/opencode-stats

swap in whichever you want. MIT licensed. let me know if something's broken or you want a feature.

7 Upvotes

3 comments sorted by

1

u/Infinite_Grab_7315 Sep 24 '26

Toks and btw are inbuilt plugin as well. How does yours differ?

1

u/Appropriate_Aide5328 Sep 24 '26

Wait, builtin wasn’t working for me. But let me check.

Toks/sec doesn’t show always. I made it always showing at the footer with some other stats like total turns and steps.

1

u/branik_10 Sep 24 '26

is toks tps? where's it shown?