Yaing-Yan/dsh-better-status ↗★ 1
dsh-better-status
DeepSeek Harness 插件:把文本形式的会话统计(轮/步、LLM/工具耗时、首 token、tok/s、缓存命中、输入/输出 token)替换为页面右侧直观醒目的图表面板,每秒刷新,并显示本次花费与 DeepSeek 账户余额。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yaing-Yan/dsh-better-status说明文档
阅读完整 README ↗dsh-better-status
DeepSeek Harness 插件:把底部那行「1 轮 · 2 步 | LLM 1m38s · 工具调用 0.2s | 首 token 平均 42.4s · 8.2 tok/s | 缓存命中 0% | 输入 18.4K tok · 输出 109」文本统计,替换成页面右侧直观、醒目、每秒自动刷新的图表面板,并额外显示本次花费与 DeepSeek 账户余额。
A real (auto-loading) DeepSeek Harness plugin that replaces the plain-text session stats line with a compact, eye-catching chart panel docked to the right side of the page, refreshed every second, plus estimated cost and DeepSeek account balance.
安装(开机自动加载,出现在插件列表)
本插件是正式插件包(不是一次性动态插件):安装一次即出现在 DSH 的插件列表里,每次启动自动加载。
- 找到你的 DSH profile(默认
~/.dsh/profiles/ /,本仓库作者用的是webprofile)。 - 编辑
package.json,把本插件加入dependencies与dsh.profile.bundles:
{
"dependencies": {
"dsh-better-status": "https://github.com/Yaing-Yan/dsh-better-status/archive/refs/tags/v1.0.0.tar.gz"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-better-status"
]
}
}
}
- 在该 profile 目录执行:
pnpm install
- 重启 DSH。打开任一有会话的界面,页面右侧即出现每秒刷新的图表,并在「设置 → 插件」里看到
dsh-better-status。
余额功能需要能读到你的 API Key:在 DSH 的 Models 设置页配置
DEEPSEEK_API_KEY(或llm-deepseek设置里的apiKeyEnv)。未配置时余额显示「—」,其余图表不受影响。
效果
原来的统计是一行容易被忽略的小字,插件把它变成页面右侧的可折叠面板(右上角,position: fixed,不遮挡左侧会话与中央对话流),并每秒刷新一次:
| 指标 | 图表形式 |
|---|---|
| 轮 / 步 | 两个大数字卡片(蓝 / 紫) |
| 本次花费 / 账户余额 | 两个数字卡片(花费为估算,余额来自 DeepSeek /user/balance) |
| LLM 耗时 vs 工具耗时 | SVG 环形图(donut)+ 图例 |
| 首 token 平均、生成速度 tok/s | 渐变进度条 |
| 缓存命中 | 环形进度环(ring gauge) |
| 输入 / 输出 token | 堆叠条形图 |
| 上下文占用(附加) | 环形进度环 |
特性
- 每秒自动刷新:
timer服务驱动 1s tick,强制重渲染并重读最新投影。