Asia/Shanghai
ProjectsJune 30, 2026

opencode-metrics

image
一个 OpenCode TUI 侧边栏插件,把每一次请求的指标按会话渲染在侧边栏里:速度、TTFT、token 数、缓存、本次请求计时、整段会话计时。 旧的底部状态栏只保留一份请求视图。在 opencode serve 多会话模式下,多个 attach 的会话会同时运行,状态栏因此显示汇总或错会话的数字。opencode-metrics 按 sessionID 记录每个请求,并从 OpenCode 的 sidebar_content slot 读取当前 session_id,所以你永远看到的是自己这个会话的数据。
  • 分会话指标 —— 指标存在以 sessionID 为键的 map 里,侧边栏只渲染当前 attach 的会话。
  • 点击折叠 —— 点击标题徽标切换。展开显示完整明细(Speed / Elapsed / TTFT / Tokens / Cache / Session),折叠保留紧凑的 Speed + Session 速览,折叠状态持久化。
  • 可配置 —— 侧边栏顺序、各行可见性、折叠记忆、置顶都写在共享的 tui-preferences.jsonc(默认 order 160),与 Magic Context 共存。
  • 空闲保留 —— 上一次请求的数字保留到下一次请求开始;Speed 和 Elapsed 在完成时冻结,Session 继续计时。
  • 反色适配 —— 徽标对比度自动适配反色 / 暗色主题。
opencode-metrics 加进 OpenCode TUI 的 plugin 列表并重启:
Jsonc
{
  "plugin": ["opencode-metrics"]
}
opencode-metrics 改写自 Icicno/opencodeBar(一个 OpenCode TUI 底部状态栏插件),重做成分会话侧边栏插件。MIT 许可,感谢上游作者的原始构想。

Related projects

Clean Design

Clean Design

A local-first visual creation studio for Apple Silicon Macs, powered by the AI tools you already use.
Codex Minus

Codex Minus

面向 macOS 与 Windows 的精简 Codex 管理工具:安全切换供应商,管理官方与自定义模型目录,并保护 OAuth 与 Context。
JumpOTP

JumpOTP

面向授权 SSH/JumpServer 会话的按需 TOTP 助手。仅在严格匹配提示后调用已解锁的 Bitwarden CLI,每条连接最多自动提交一次,并保留可见手输回退。
Codex Doubao Pets

Codex Doubao Pets

六个可以直接安装到 Codex Desktop 的豆包桌宠。用真实角色图完成选择,用一条 npm 命令完成安装。
loop

loop

一次显式触发,按产物就绪状态自动连接 deep-grill、deep-design 和 deep-build,持续推进到已确认规格或可验证结果。
Slash Saver

Slash Saver

一个只为物理斜杠键做一件事的原生 macOS 工具:在原始按键进入当前应用前,切到用户指定的 ASCII 输入源。
deep-grill

deep-grill

同一个 Agent Skill,用探索模式把原始想法变成已确认 Product Brief,用审查模式压力测试成形方案,并在普通回复中持续当前会话。
Mingjian AI Services

Mingjian AI Services

A focused collaboration entry for teams moving from AI ideas to working products, Agent systems, and operable business workflows.
opencode-sub2api-haiku-fix

opencode-sub2api-haiku-fix

A focused OpenCode plugin that fixes Claude Haiku extra-usage failures through Sub2API while preserving thinking and leaving Sub2API, OpenCode, and OMO untouched.
opencode-plugin-fixes

opencode-plugin-fixes

Archived OpenCode guardrail experiment. The final source tree covers four narrow tool-call repairs; no npm package was ever published.
opencode-vibe-island-plugin

opencode-vibe-island-plugin

让 Vibe Island 在装了 oh-my-openagent 时仍然把 OpenCode 会话当成 OpenCode。修好 source 误标和 Ghostty 点击跳转。
OpenCode Themes

OpenCode Themes

Terminal-inspired dark themes for Obsidian, Typora, and Ghostty, all synced to the official OpenCode TUI palette.
wechat-mp-publisher

wechat-mp-publisher

从个人公众号 Skill 到可公开安装的 npm 包:本地校验与沙箱预览在前,用户确认后只创建草稿。
SIGINT

SIGINT

已归档的内容情报实验:曾把小红书/抖音采集、AI 分析、n8n 编排与实时仪表盘接成一条完整链路。
MdictLive

MdictLive

Modern web reader for MDict dictionaries with React 19 SPA, dark mode, and faithful rendering.
SiliconLM

SiliconLM

Local LLM dashboard for Apple Silicon Macs, currently preserved without an active local deployment.
mdx2apple

mdx2apple

Convert MDict (.mdx/.mdd) dictionaries to macOS Apple Dictionary format with one command.