DeepSeek Harness 插件

dsh-live-stats

Live token estimates and generation throughput for DSH Web(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Proton1917/dsh-live-stats
最近更新
2026年8月17日
分类
工具与能力
GitHub stars
1
载体类型
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/Proton1917/dsh-live-stats
插件名:dsh-live-stats
作者:Proton1917

检查来源文件

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

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

DSH Live Stats

External plugin for DSH Web. It owns the composer's stats slot cell, renders the complete session status row with live input, output, and unabridged total token counts, and adds a second row for generation throughput:

Input ~7.9K tok · Output ~12 tok · Total ~7,912 tok
TPS 31.4 tok/s

~ marks a value that still includes the current request's input estimate. Streamed DeepSeek output is counted with the official tokenizer; provider usage replaces all provisional values when it arrives. Exact cache accounting continues to come from DSH's durable token-usage projection. A retry replaces the prior estimate for that step, and an aborted turn removes its unsettled estimate.

TPS is the number of tokens added after the first output sample divided by the elapsed time between the first and latest token-bearing stream events. Final usage, block-end, and assistant-message events correct counts but do not extend that interval. A one-sample response therefore has no TPS value instead of an artificial terminal-event rate.

The plugin replaces the built-in conversation.composer.dock entry through the slot registry's documented same-id priority mechanism. It reads public sessionStats and tokenUsage projections, owns liveTokenUsage, and leaves the Harness checkout untouched. A Harness update therefore no longer needs to replay a StatsLine source patch.

The package is a profile bundle and mounts itself without a separate home-level patch:

- insert:
    - id: live-stats
      name: '@proton1917/dsh-live-stats'

The bundled tokenizer comes from DeepSeek's official tokenizer download. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for its source, checksums, and license references.

Requirements

  • DeepSeek Harness 0.1.0-rc.7 or later.
  • A local checkout when developing through link:, or a GitHub/npm package spec for a managed installation.
  • Node.js and pnpm versions accepted by the harness repository.

Build and test

pnpm install
pnpm run typecheck
pnpm test
pnpm run build

Load in DSH Web

Build the plugin and add its bundle to the Web profile once:

dsh plugin --profile web add @proton1917/dsh-live-stats@link:$HOME/Projects/dsh-live-stats
dsh web

The profile records the bundle in dsh.profile.bundles; normal Harness installations and upgrades keep the profile and its plugin dependency outside the Harness source checkout.

For client and server hot updates, run the Web app in development mode and keep the plugin watcher in a second terminal:

dsh web --dev
cd ~/Projects/dsh-live-stats
pnpm run dev

The plugin watcher rebuilds lib/index.js and lib/client.js; DSH Web reloads the client contribution through HMR without replacing the page.

Compatibility updates

The repository builds against published DSH release packages rather than relative links into one Harness checkout. Dependabot groups new @deepseek-ai/* releases into one compatibility pull request, and GitHub Actions runs typecheck, unit tests, and both client and host builds on every update. A new Harness release therefore produces a concrete compatibility result without relying on a manual reminder.

For a locally linked checkout, merge the generated compatibility pull request, fast-forward this checkout, and rebuild it. The Web profile keeps the same link and bundle registration.

License

BSD-3-Clause. See [LICENSE](LICENSE).