← 返回列表
D

dsh-usage-insights

v0.2.0 · 0 天前发布

Local, read-only usage and performance analytics for DeepSeek Harness sessions.

deepseek-harnessdsh-pluginusage-insightsusage-analyticstoken-usagelocal-first

README

dsh-usage-insights



DeepSeek Harness 的本地只读用量面板。它从 DSH 会话事件中统计 Token、请求、Agent 活动、工具调用和性能,在“设置 > 工作活动”中提供可核对的卡片、趋势和分页明细。

当前版本为 alpha。插件不显示金额,不调用模型或服务商接口,也不修改、归档或删除会话。

界面预览



!工作活动统计面板概览

!工作活动统计面板明细

功能



  • 按已验证的 IANA 时区自然日查看今天、近 7 天、近 30 天或全部数据。

  • 同时按工作区、服务商和模型筛选。

  • 分开展示未缓存输入、缓存读取、缓存写入、输出和输出中的推理 Token。

  • 展示已计量请求、活跃工作区、活跃会话、Agent Usage、模型耗时、工具耗时、TTFT 覆盖率和缓存复用率。

  • 日趋势可在 Token 与请求数之间切换;服务商和模型明细区分 Agent 与 Compaction 请求来源。

  • 提供工作区、服务商、模型、会话和工具五种分页明细,可搜索和排序。

  • 工具事件没有精确的服务商/模型归因,因此工具维度会禁用这两项筛选,API 对该组合返回 HTTP 400。

  • 统计平均首 Token 时间、输出速度、模型耗时、工具耗时、工具失败日趋势和轮次结果。

  • -
    查看完整 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-usage-insights
    Repo
    git+https://github.com/faz4hu/dsh-usage-insights.git
    Engines
    {"node":"^22.19.0 || >=24.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-locale"]}}