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 local:no outbound requests、no 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 local、no outbound requests、no session writes,但它仍以當前 dsh 進程權限運行。安裝前應檢查源碼與許可證;本插件許可證爲 MIT。

成本估算基於 DeepSeek 官方定價(V4-Flash / V4-Pro,cache-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

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

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

小夜