Asia/Shanghai
ProjectsJune 30, 2026

opencode-metrics

opencode-metrics
一个 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

OpenCode Annotate terminal review in Dracula theme with two annotations and a reaction toolbar

OpenCode Annotate

An unofficial OpenCode plugin for annotating AI replies, documents, and webpages, with a bundled terminal reviewer and optional browser companion.
another

another

Every coding-agent session in one place: find, resume and organize them, @-mention across agents, or write one into another agent's native store to continue it instead of pasting a summary.
Clean Design

Clean Design

Use the AI tools you already have to create editable visual projects that stay on your Mac.
Codex Minus

Codex Minus

A slimmed-down Codex manager for macOS and Windows: switch providers safely, manage official and custom model catalogs, and protect OAuth and context.
JumpOTP

JumpOTP

An on-demand TOTP helper for authorized SSH and JumpServer sessions. It calls an unlocked Bitwarden CLI only after a strict prompt match, submits at most once per connection, and keeps a visible manual fallback.
Codex Doubao Pets

Codex Doubao Pets

Six Doubao desktop pets you can install straight into Codex Desktop: choose from real character art, then install with one npm command.
loop

loop

One explicit trigger, then artifact readiness chains deep-grill, deep-design and deep-build until the work reaches a confirmed spec or a verified result.
Slash Saver

Slash Saver

A native macOS tool that does one thing for the physical slash key: switch to your chosen ASCII input source before the original keypress reaches the current app.
deep-grill

deep-grill

One Agent Skill, two modes: exploration turns a raw idea into a confirmed Product Brief, audit pressure-tests a formed plan, and ordinary replies keep the current session going.
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-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

Keeps Vibe Island recognizing OpenCode sessions as OpenCode when oh-my-openagent is installed. Fixes the mislabeled source and Ghostty click-to-jump.
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

From a personal WeChat Official Account skill to a publicly installable npm package: local validation and sandbox preview first, and only a draft is created after you confirm.
SIGINT

SIGINT

An archived content-intelligence experiment that once connected Xiaohongshu and Douyin collection, AI analysis, n8n orchestration and a live dashboard into one pipeline.
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 complete MDict entries into native macOS dictionaries, with pronunciation, illustrations and Oxford dark-mode styling.