opencode-fleetviewLaunch fleetview, the agent roster TUI, from inside opencode with /fleetview
0
140
近 7 天 2
32.4
生态多维模型
22 天前
2026-07-29
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-fleetview@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-fleetview@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-fleetviewopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
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.
Requirements
- 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.
Install
opencode plugin opencode-fleetview
That 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"]
}
Use
Type /fleetview in the opencode prompt, or find "FleetView" in the command
palette (ctrl+p).
How it works
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.
Development
npm test
To load a local checkout:
opencode plugin /path/to/opencode-fleetview
License
ISC