Yaing-Yan/dsh-better-status
Yaing-Yan★ 1JavaScript最后同步: 2026-08-15
DeepSeek Harness 插件:把文本形式的会话统计(轮/步、LLM/工具耗时、首 token、tok/s、缓存命中、输入/输出 token)替换为页面右侧直观醒目的图表面板。
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 的插件列表里,每次启动自动加载。 1. 找到你的 DSH profile(默认 /.dsh/profiles/ / ,本仓库作者用的是 web profile)。 2. 编辑 package.json ,把本插件加入 dependencies 与 dsh.profile.bundles : 3. 在该 profile 目录执行: 4. 重启 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,强制重渲染并重读最新投影。 - 零图表依赖 :全部用…
在 GitHub 查看完整 README →