DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Prefill Speed Stats — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-prefill-speed-stats

Prefill Speed Stats

直接在状态栏中显示预填充速度。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:stefanohe/dsh-prefill-speed-stats#623bf44af8a054ce6527c04e59b9c275b847c771
README兼容性版本
中文界面下的输入统计

兼容性与来源证明

Prefill Speed Stats 以 dsh-prefill-speed-stats 发布,当前版本为 0.2.0-rc.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/30

版本

0.2.0-rc.2prerelease
2026/9/30

相关插件

正在加载相关插件…

最新版
0.2.0-rc.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/9/30
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Client Ui Skill Explorer@linxin666/dsh-client-ui-skill-explorerDSH 技能中心:按来源(bundled / project / user / custom / runtime)浏览已加载的技能,在 Web GUI 面板中启用或禁用、创建和删除技能。Remote Web Ui@linxin666/dsh-remote-web-ui通过扫码配对访问 dsh Web GUI,共享一个官方界面:设置按钮旁的二维码可将手机和 PC 配对到同一个 Web GUI(手机采用竖屏触控适配层,PC 使用完整桌面界面),通过一次性令牌和 rClient Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包

README

dsh-prefill-speed-stats

by Stefano's AI Lab

dsh-prefill-speed-stats: Show prefill speed directly in the status bar. 【For: deepseek-harness-v0.2.0-rc.2】

It adds one cell left of the shipped session-statistics strip, showing the session-average prefill speed, and opens a two-row dialog with the session average and a last-N-steps window.

Prefill statistics in the English UI

Install

Two ways in. Both end with the same last step: fully restart the app — the browser bundle is snapshotted when the boot graph is composed, so a page refresh is not enough.

A. From npm — nothing to clone:

  1. Add the package to your DSH profile. DSH's plugin manager installs it by name (Settings → Plugins, or the plugin_manager agent tool), or run this inside <dsh home>/profiles/<profile>:

    pnpm add dsh-prefill-speed-stats@0.2.0-rc.2   # drop @… once a stable release exists
    
  2. Check that the package name is listed in dsh.profile.bundles in that profile's package.json (installing through the plugin manager does this for you).

  3. Restart the app.

B. From this repository — source, offline, or a version npm does not serve:

pwsh -File .\install.ps1               # Windows: link this checkout
sh ./install.sh                        # macOS / Linux
pwsh -File .\install.ps1 -From npm     # …or install the published package instead
pwsh -File .\install.ps1 -From npm -Ref 0.2.0-rc.2   # …pinned, as a prerelease-only release needs

The script performs steps 1–2 for you, backs up the manifest it edits, and prints step 3.

What it shows

RowValue
dock cellsession-average prefill speed, in tok/s
Prefill speed (session average)Σ uncached prompt tokens ÷ Σ prefill windows over the whole log
Prefill speed (last N steps)the same ratio over the last (up to 10) measured steps — the label names the count it really averaged

uncached tokens is usage.inputTokens: the part of the prompt the provider had to compute, where a prefix-cache hit costs nothing. prefill window is step/start → first visible token. Steps that never produced a visible token have no window, so they are excluded from both rows and reported as session.unmeasuredInputTokens instead.

A low reading usually means there was little new to compute, not that the model is slow. A warm step reads few uncached tokens while the fixed per-request latency (queueing, round trip, KV-cache read) stays the same, so its figure collapses toward zero; the session average amortizes that fixed part, the last-N window does not. The figure counts everything in the window, so it is a lower bound on true prefill throughput.

Files

FileRole
index.jsHost half: registers the sessionSpeed projection
lib/projection.jsThe fold, its schemas, and the two readings' operands
lib/stream.jsFirst-visible-token timing
client.jsBrowser half: the dock cell, its dialog, styles and copy
cordis.patch.ymlInserts the Host row the browser half attaches to
test/Projection tests — node --test test/projection.test.cjs
install.ps1 / install.shInstall into a DSH profile — links this checkout, or -From npm for the published package

Notes

  • Runs inside DeepSeek Harness.
  • Sits left of the shipped session-statistics strip; the sibling dsh-show-balance cell, when installed, sits to its left.
  • The reading updates as the session grows; there is nothing to configure.
  • Unknown events and malformed log records are ignored rather than fatal, so a future harness event can only cost accuracy, never the session.
  • Unofficial plugin; it uses only public surfaces (the sessionSpeed Host projection and the conversation.composer.dock slot).

License

MIT — see LICENSE.


dsh-prefill-speed-stats:直接在状态栏显示 prefill 速度。【适用于:deepseek-harness-v0.2.0-rc.2】

位置在内置「会话统计」左边;点开可看会话平均与最近 N 步两个读数。

中文界面下的输入统计

安装

两种方式,最后一步一样:完全重启应用——浏览器 bundle 在启动组合时快照,刷新页面不够。

A. 从 npm 安装 —— 不用 clone:

  1. 安装到 DSH profile:可以用 DSH 的插件管理器按包名安装(设置 → 插件,或 plugin_manager 工具),也可以在 <DSH 主目录>/profiles/<profile> 里执行:

    pnpm add dsh-prefill-speed-stats@0.2.0-rc.2   # 出了正式版就去掉 @… 部分
    
  2. 确认该 profile package.json 的 dsh.profile.bundles 里有这个包名(用插件管理器装的话它会替你写)。

  3. 重启应用。

B. 从本仓库安装 —— 源码 / 离线 / npm 上没有的版本:

pwsh -File .\install.ps1               # Windows:链接当前克隆
sh ./install.sh                        # macOS / Linux
pwsh -File .\install.ps1 -From npm     # 也可以直接装 npm 上的已发布版本
pwsh -File .\install.ps1 -From npm -Ref 0.2.0-rc.2   # 只有预发布版时必须钉住版本

脚本会替你做完第 1–2 步(并备份它改过的 manifest),然后提示第 3 步。

显示内容

行值
状态栏上的格子会话平均输入速度,单位 tok/s
输入速度(会话平均)整个会话的 Σ 未命中缓存 token ÷ Σ 预填充窗口
输入速度(最近 N 步)同一算法,只统计最近(最多 10)个已测量步;标题会写出它真正平均了几步

未命中缓存 token 就是 usage.inputTokens:提供方真正需要计算的那部分提示词,命中前缀缓存的部分不计。预填充窗口 是 step/start → 首个可见 token。始终没产出可见 token 的步没有窗口,因此两个读数都不统计它,其 token 记在 session.unmeasuredInputTokens 里。

读数低通常意味着「这次几乎没新东西要读」,而不是模型慢。 缓存命中的步未命中 token 很少,而每次请求的固定开销(排队、往返、读 KV 缓存)不变,数字自然被压向零;会话平均把这些固定开销摊薄了,最近 N 步没有。由于窗口里的一切都计入分母,这个数字是真实预填充吞吐的下界。

文件

文件作用
index.js宿主半边:注册 sessionSpeed 投影
lib/projection.js折叠逻辑、schema 与两个读数的算子
lib/stream.js首个可见 token 的计时
client.js浏览器半边:格子、面板、样式与文案
cordis.patch.yml插入宿主行(浏览器半边挂在它上)
test/投影测试 —— node --test test/projection.test.cjs
install.ps1 / install.sh装进 DSH profile(默认链接本地克隆,-From npm 装已发布版)

说明

  • 运行在 DeepSeek Harness 里。
  • 位置在内置「会话统计」左边;装了 dsh-show-balance 时它在更左边。
  • 读数随会话增长自动更新,没有任何需要配置的项。
  • 未知事件与畸形日志记录一律忽略而不致命,未来的 harness 事件最多损失精度,不会损坏会话。
  • 非官方插件,只使用公开接口(sessionSpeed 宿主投影与 conversation.composer.dock 槽位)。

许可

MIT,见 LICENSE。