An OpenCode TUI plugin that shows agent status in the terminal tab title with an animated spinner.
Works on any terminal that supports OSC title sequences — Windows Terminal, iTerm2, WezTerm, Ghostty, Kitty, Alacritty, and more.
| State | Icon | When |
|---|---|---|
| Working | ⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏ |
Agent is processing (animated braille spinner) |
| Ready | ✓ |
Agent is idle |
| Error | ✗ |
Session error occurred |
| Waiting | ◉ |
Agent is waiting for user input (permission or question) |
The tab title also shows the current session name, e.g. ⠹ Fix auth middleware while working.
opencode plugin opencode-tui-status-indicator --globalRestart OpenCode and the spinner will appear in your terminal tab.
This plugin uses OpenCode's TUI plugin API (renderer.setTerminalTitle()) to set the terminal tab title based on session events. Unlike plugins that write OSC escape sequences directly (which get captured by the TUI), this approach goes through OpenCode's renderer and works correctly on all platforms including Windows.
MIT