Skip to content

JacobZyy/opencode-tui-set

Repository files navigation

OpenCode TUI 插件集

一组 OpenCode 终端用户界面(TUI)侧边栏插件。可单独安装,也可全部启用。

image-20260713190705182

插件

插件 面板 用途
@jacob-z/opencode-context-usage Context 显示当前会话上下文窗口用量
@jacob-z/opencode-session-recap Recap 总结已完成工作与下一步
@jacob-z/opencode-mcp-list MCP 显示 Model Context Protocol(MCP)服务连接状态

安装

编辑 OpenCode TUI 配置:

  • 全局启用:~/.config/opencode/tui.json
  • 当前项目启用:项目根目录 tui.json

全部安装:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin_enabled": {
    "internal:sidebar-mcp": false
  },
  "plugin": [
    [
      "@jacob-z/opencode-context-usage",
      {
        "enabled": true
      }
    ],
    [
      "@jacob-z/opencode-session-recap",
      {
        "enabled": true
      }
    ],
    [
      "@jacob-z/opencode-mcp-list",
      {
        "enabled": true
      }
    ]
  ]
}

不需要哪个,删掉对应配置。使用 opencode-mcp-list 时关闭内置 internal:sidebar-mcp,避免重复显示。重启 OpenCode 后生效。

更多 TUI 配置见 OpenCode TUI 文档

配置 session recap

@jacob-z/opencode-session-recap 支持额外配置:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    [
      "@jacob-z/opencode-session-recap",
      {
        "enabled": true,
        "debounceMs": 3000,
        "contextMessages": 10
      }
    ]
  ]
}

完整选项见 session recap 文档

本地开发

bun install
bun run build
bun run typecheck
bun run lint

公共面板组件位于 packages/tui-components

About

OpenCode TUI plugin — subscription usage (token quota) in the sidebar. GLM coding plan + opencode-go.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors