First public release of opencode-metrics — a per-session sidebar metrics plugin for the OpenCode TUI.
Highlights
- Per-session metrics via the
sidebar_contentslot — fixes the old footer bar's serve-mode defect where it showed global totals instead of the attached session. - Collapsible section (click the header badge). Collapsed = a Speed + Session glance; expanded = full breakdown: Speed, Elapsed, TTFT, Tokens (in/out merged), Cache, Session.
- Configurable sidebar order + per-row visibility via the shared
tui-preferences.jsonc(default order 160). - Badge contrast auto-adapts to inverted-color themes.
- Completed metrics persist until the next request (Speed/Elapsed freeze at completion; Session keeps ticking).
Install
Rewrite of Icicno/opencodeBar (credited in LICENSE + README). MIT licensed.
{ "plugin": ["opencode-metrics"] }