Window Stats:DeepSeek Harness Web 的跨会话统计插件

前言

在 DSH Web 中同时运行多个会话时,单个会话界面通常只展示当前对话。若要查看哪些会话还在运行、每个会话消耗了多少 token、估算成本,以及按工具类型分析耗时,就需要一个跨会话的观察面板。

wellorbetter/dsh-plugin-window-stats 为这个需求提供一组本地只读的统计视图。

这是什么

wellorbetter/dsh-plugin-window-stats 是一个 DeepSeek Harness web plugin,由 wellorbetter 维护,许可证为 MIT。

它面向 DSH 的 web profile,把每个会话的进度、token 用量和成本放到一个视图里展示,并提供会话分析和概览抽屉。

插件声明为 100% read-only and localno outbound requestsno session writes。它会注册一个 tokenHistory projection。

核心功能

  • All-windows overview:查看所有会话的 progress、tokens 和 cost。
  • Session analysis:对当前会话做时间范围分析,支持 presets 和 custom ranges。
  • Token trend chart:查看 token 趋势。
  • Tool-type duration distribution:查看工具类型耗时分布。
  • Per-turn task summaries:查看每轮任务摘要。
  • Token heatmap:提供 token 热力图。
  • Cost estimation:基于 DeepSeek 官方定价估算成本,区分 V4-Flash / V4-Pro 以及 cache-hit / cache-miss / output 计价,支持 USD / CNY / EUR / GBP / JPY 切换。
  • Sidebar footer summary:侧栏底部持续显示 running count、total tokens 和 cost。
  • Right overview drawer:右侧抽屉展示 running sessions、top token consumers 和 recent activity,支持点击打开。
  • Toolbar:支持 sort、filter、group-by-workspace,以及 model 和 currency 选择。

安装与启用

需要 dsh CLI / DeepSeek Harness。下面命令为 GitHub 安装方式:

dsh plugin --profile web add github:wellorbetter/dsh-plugin-window-stats

安装后重启 profile:

dsh web

从 GitHub 安装会带上 pre-built JavaScript(lib/),不需要 build step 或 allowBuilds permission。

典型用法

1、重启 dsh web 后,侧栏底部会持续显示 running count、total tokens 和 cost。

2、打开任意会话,点击 窗口统计 tab,查看每个会话的 progress、tokens 和 cost;点击某一行查看 rich breakdown。

3、在 窗口统计 toolbar 中做 sort、filter、group,或切换 model 与 currency。

4、打开 会话分析 tab,对当前会话选择时间范围,查看 token trend chart、tool-type duration distribution 和 per-turn task summaries。

5、点击右侧 drawer 的 edge handle,展开 running / top-tokens / recent overview;点击任意一行打开对应会话。

适用场景与注意

适合使用 DSH web 客户端、需要快速查看多会话运行状态、token 用量和成本的人员。

虽然插件声明 100% read-only and localno outbound requestsno session writes,但它仍以当前 dsh 进程权限运行。安装前应检查源码与许可证;本插件许可证为 MIT。

成本估算基于 DeepSeek 官方定价(V4-Flash / V4-Procache-hit / cache-miss / output 分别计价),并支持 USD / CNY / EUR / GBP / JPY 切换。

结尾

wellorbetter/dsh-plugin-window-stats 将多会话进度、token 用量、成本估算和会话分析整合到 DSH Web 的本地只读视图中。

社区目录是独立站点,与 DeepSeek / 幻方无官方从属关系;可在目录中检索 wellorbetter/dsh-plugin-window-stats

GitHub:https://github.com/wellorbetter/dsh-plugin-window-stats

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜