dsh-statusbar
VSCode-like bottom status bar for DSH Web: conversation token usage, host CPU/memory with Linux-style colored char bars, clock, and a public API for other plugins.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Small-Miao/dsh-statusbar说明文档
阅读完整 README ↗dsh-statusbar
为 DeepSeek Harness Web 打造的 VSCode 风格底部状态条:展示当前对话用量、宿主机 CPU/内存,以及实时生成速率——每个项目都可配置。
English | 简体中文
功能
- 24px 底部状态条(
shell.overlay席位渲染);应用主框架预留底部空间,页面内容(侧栏设置、输入框)永不被遮挡。 - 内置项目(每一项都可单独配置,见配置):
DSH品牌标识(左侧)⧉ Tokens— 当前对话估算 Token(tokenMeter)7 轮 · 64 步— 会话轮数 / 步数(sessionStats)LLM 14m12s · 工具调用 48.4s— LLM / 工具调用累计耗时首 token 平均 1.3s · 129 tok/s— 首 token 平均耗时与生成速率缓存命中 97%— 提示词侧缓存命中率(tokenUsage)输入 7.4M tok · 输出 98.9K tok— 计费侧累计输入 / 输出 tokenTPS 363 tok/s— 实时生成速率(liveTokenUsage,需安装 dsh-live-stats)CPU 20% [||||||||||]— Linux 风格字符进度条(绿 → 黄 → 红渐变)MEM 55% (8.2G/14.8G) [||||||||||]— 内存占用 + 字符进度条- 宿主机时钟
- 隐藏输入框下方原有的统计行与 TPS 行(状态条已包含,避免重复)。
- 每 2 秒轮询
/dsh-statusbar/snapshot?session=。
安装
前置条件:已安装 DSH 且存在 web profile(例如 dsh web 创建的默认 web profile)。
# 从 GitHub 仓库安装
dsh plugin --profile web add https://github.com/Small-Miao/dsh-statusbar
# 或通过 SSH(本机需已配置 GitHub SSH 访问)
dsh plugin --profile web add git@github.com:Small-Miao/dsh-statusbar.git
# 或本地开发目录
dsh plugin --profile web add /path/to/dsh-statusbar
该命令会在 profile 中执行 pnpm add,把插件安装到 ~/.dsh/profiles/web/node_modules,
并自动追加到 dsh.profile.bundles。然后重启 DSH,插件随启动自动挂载,刷新页面即可看到状态条。