0
332
近 7 天 332
35.5
生态多维模型
23 小时前
2026-08-19
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@yueby/opencode-subagent-sidebar@0.1.4"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@yueby/opencode-subagent-sidebar@0.1.4"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @yueby/opencode-subagent-sidebaropencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
An OpenCode TUI plugin that shows the active direct child sessions of the current session in the sidebar.
Installation
Install the public package with the OpenCode plugin command:
opencode plugin add @yueby/opencode-subagent-sidebar
Alternatively, add the package to the plugin array in your tui.json:
{
"plugin": ["@yueby/opencode-subagent-sidebar"]
}
The plugin keeps the existing OpenCode plugin ID opencode-subagent-sidebar
and registers its TUI sidebar slot automatically.
Behavior
- Only active direct child sessions of the current session are shown; nested descendants and unrelated sessions are not included.
- A green dot means a child is busy, yellow means it is retrying, and a muted dot represents an idle status (idle children are not displayed).
- Click a row to navigate directly to that child session. Each visible child
also gets an
Open subagent …command in the command palette. - The plugin reads the current session's child-session API and OpenCode events. It does not maintain global session state or claim to show every session.
Local development
bun install
bun run typecheck
bun run build
bun test
npm pack --dry-run --json
prepack runs the build automatically when creating a package tarball.