← 返回列表
D

dsh-token-dashboard

v0.1.0 · 0 天前发布

Token usage dashboard for DeepSeek Harness: cache, context, efficiency, per-step details, and cross-session comparison

deepseek-harnessdshdsh-plugintoken-usagedashboard

README

dsh-token-dashboard

English | 中文

DeepSeek Harness 的只读 Token 用量仪表盘。它会在 DSH Web 中新增 统计 选项卡,用于查看会话总量、缓存与上下文指标、请求效率、逐步骤明细和跨会话对比。

!dsh-token-dashboard 界面截图

功能

  • 本会话:计费输入、输出、缓存命中率、上下文占用、耗时、吞吐和逐步骤 Token 明细。

  • 全部会话:可排序的用量对比,并标记当前、运行中和子代理会话。

  • 本地只读:只读取 DSH 已有投影,不调用外部 API,不上传数据,不新增存储,也不发起模型请求。

  • 中英双语:界面语言跟随 DSH 当前语言。
  • 安装

    需要已经可以正常运行的 DSH Web,以及 Node.js 22.19 或更高版本。

    sh
    dsh plugin --profile web add dsh-token-dashboard

    安装后重启 DSH Web,统计 / Statistics 选项卡会出现在对话和轨迹选项卡旁边。

    也可以直接从 GitHub 安装:

    sh
    dsh plugin --profile web add github:tsja/deepseek-harness-token-dashboard

    卸载:

    sh
    dsh plugin --profile web remove dsh-token-dashboard

    说明

  • 持久总量覆盖完整会话日志;逐步骤明细只覆盖当前已加载窗口。

  • 缺失的
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-token-dashboard
    Repo
    git+https://github.com/tsja/deepseek-harness-token-dashboard.git
    Engines
    {"node":"^22.19.0 || >=24.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"client":{"inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"},"bundle":{"patch":"./cordis.patch.yml"}}