An opencode TUI plugin that adds a /fleetview command.
Run it and opencode hands the terminal over to
fleetview, the roster TUI for
backgrounded agent sessions. Quit fleetview and you land back in opencode where
you left off.
The plugin contains no fleetview logic. It is a launcher, about 70 lines.
- opencode >= 1.18
- fleetview on your
PATH(npm i -g fleetview, needs Node >= 24)
If fleetview is not installed, /fleetview shows a toast with the install
command instead of launching anything.
opencode plugin opencode-fleetviewThat resolves the package, detects its TUI entrypoint, and adds it to the
plugin array in .opencode/tui.json (or ~/.config/opencode/tui.json with
--global). TUI plugins are configured in tui.json, not opencode.json.
To wire it up by hand:
{
"plugin": ["opencode-fleetview"]
}Type /fleetview in the opencode prompt, or find "FleetView" in the command
palette (ctrl+p).
The plugin registers one palette command through the opencode TUI plugin API.
When it runs it looks for a fleetview executable on PATH, calls
api.renderer.suspend() to release the terminal, spawns fleetview with
inherited stdio, and calls api.renderer.resume() once fleetview exits.
npm testTo load a local checkout:
opencode plugin /path/to/opencode-fleetviewISC