DeepSeek Harness 插件

dsh-plugin-window-stats

DSH web plugin: a cross-session Window Stats view tab showing conversation progress and token usage for all sessions.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
wellorbetter/dsh-plugin-window-stats
最近更新
2026年8月14日
分类
用量与账单
GitHub stars
2
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/wellorbetter/dsh-plugin-window-stats
插件名:dsh-plugin-window-stats
作者:wellorbetter

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<h1 align="center">Window Stats</h1>

<p align="center">

<a href="README.md">English</a>&nbsp;|&nbsp;<a href="README.zh.md">中文</a>

</p>

<p align="center"> <a href="https://github.com/wellorbetter/dsh-plugin-window-stats/blob/main/LICENSE"><img alt="License MIT" src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square"></a> <a href="https://github.com/deepseek-ai/deepseek-harness"><img alt="For DeepSeek Harness" src="https://img.shields.io/badge/For-DeepSeek%20Harness-8257D0.svg?style=flat-square"></a> <a href="https://github.com/topics/dsh-plugin"><img alt="dsh-plugin" src="https://img.shields.io/badge/topic-dsh--plugin-0969da.svg?style=flat-square"></a> </p>

<p align="center"> <strong>A DeepSeek Harness web plugin that shows every session's conversation progress and token usage at a glance.</strong><br> <em>All-windows overview · session analysis · cost estimation · token heatmap.</em><br> <strong>100% read-only and local</strong> — no outbound requests, no session writes. </p>

<p align="center"><img src="assets/window-stats.png" alt="Window Stats" width="100%"></p>

<p align="center"><img src="assets/session-analytics.png" alt="Session Analysis" width="100%"></p>

<p align="center"><img src="assets/overview.png" alt="Overview panel and sidebar summary" width="100%"></p>

What this plugin provides

Installing this bundle adds a cross-session observability surface to every session of the target dsh profile. It reads the official tokenUsage / sessionStats / contextPressure / contextBreakdown projections (plus a tokenHistory projection it registers itself), so no host service or new RPC is required beyond that one projection unit.

SurfaceWhat it shows
窗口统计 view tabOne row per session: status, turns/steps, input/output tokens, cache-hit ratio, context occupancy, duration, cost, last activity — with sort / filter / group-by-workspace / model & currency selectors, and a right detail panel (token buckets, context composition, timing, heatmap).
会话分析 view tabTime-range analysis (presets + custom) of the current session: token trend chart, tool-type duration distribution (donut + bars), and per-turn task summaries.
Sidebar footer summaryAlways-visible running count, total tokens, and cost.
Right overview drawerCollapsed by default; expands to a running-sessions + top-token-consumers + recent-activity panel with click-to-open.

Data source

DisplayedSource
turns / steps / wall timessessionStats projection
input / output / cache tokenstokenUsage projection
context occupancy / compositioncontextPressure + contextBreakdown projections
per-day token history (heatmap)tokenHistory projection (registered by this plugin)
statusSessionSummary.running / pendingInteraction / completed

Cost is estimated from DeepSeek's official pricing (V4-Flash / V4-Pro, cache-hit / cache-miss / output priced separately) with USD / CNY / EUR / GBP / JPY switching.

Install

Requires the dsh CLI (install DeepSeek Harness).

# from GitHub (recommended)
dsh plugin --profile web add github:wellorbetter/dsh-plugin-window-stats

# or from a local checkout
dsh plugin --profile web add ./dsh-plugin-window-stats

Restart the profile (dsh web) after installing. The plugin is a bundle: it declares dsh.bundle.patch, so dsh plugin reconciles it into the profile's dsh.profile.bundles automatically. It ships pre-built JavaScript (lib/), so a GitHub install needs no build step or allowBuilds permission.

Use

After restarting dsh web:

  • Sidebar — the footer shows running count + total tokens + cost at all times.
  • 窗口统计 tab — open any session and click the tab to see every session's progress, tokens, and cost; click a row for a rich breakdown; use the toolbar to sort / filter / group / switch model & currency.
  • 会话分析 tab — analyze the current session over a time range, by tool type, with a token trend chart and task summaries.
  • Right drawer — click the edge handle to expand the running / top-tokens / recent overview, click any row to open it.

Development

pnpm install
pnpm verify   # typecheck + build + test

License

MIT