@streetturtle/opencode-context-progress
v1.0.1
Published
OpenCode TUI sidebar plugin for context usage progress
Maintainers
Readme
@streetturtle/opencode-context-progress
Compact context usage widget for the OpenCode sidebar.
What it shows
- Line 1: context progress bar + percentage used
- Line 2: consumed tokens / model context window / session cost
How it works
- Uses the latest assistant response with token data
- Token count formula:
input + output + reasoning + cache.read + cache.write - Context window is read from the active provider/model metadata
- Bar color changes with usage:
- normal:
< 70% - warning:
>= 70% - danger:
>= 90%
- normal:
Install
opencode plugin @streetturtle/opencode-context-progressGlobal install:
opencode plugin --global @streetturtle/opencode-context-progress