DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Client Ui Thinking Stats — DeepSeek Harness 插件(DSH Plugin)
← Plugins
C

@six6strings/dsh-client-ui-thinking-stats

Client Ui Thinking Stats

一个轻量级插件,可在底部 Dock 和每次对话末尾添加模型思考令牌统计信息。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Six6stRINgs/dsh-client-ui-thinking-stats#14654ed7e3c4477f80653eec245238527eefd17f
README兼容性版本
thinking-token statistics

兼容性与来源证明

Client Ui Thinking Stats 以 @six6strings/dsh-client-ui-thinking-stats 发布,当前版本为 1.0.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.0.2stable
2026/9/6

相关插件

正在加载相关插件…

最新版
1.0.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

dsh-client-ui-thinking-stats

A lightweight plugin that adds model thinking token statistics to the bottom Dock and the end of each conversation. Client-only and zero-cost when idle: it reads the existing conversation snapshot and renders nothing at all when there is no thinking.

Chinese version / 中文版

thinking-token statistics

It adds two readouts, both of which render nothing when the model has produced no thinking for the relevant scope:

SurfaceSlotScope
Bottom composer dockconversation.composer.dockWhole session (cumulative)
Each assistant reply (timing row)conversation.chat.assistant-actionsThat single turn

The per-turn readout is appended to the reply's timing strip — the same hover row that shows 20:55 · 用时 11秒 · 首token 10秒 · 28 tok/s — so it reads as part of that same unit.

Each readout shows, left to right, a brain glyph, the thinking-token count, its share of all tokens, and its share of output tokens, each with one decimal place, for example:

💭 15 · 0.2% · 60.0%

Hover for the exact numbers.

How thinking tokens are counted

For every finalized assistant message, in order:

  1. Provider-reported — if usage.reasoningTokens is present (DeepSeek, OpenAI o-series, Anthropic, …), it is used as-is. This is exact.
  2. Otherwise — the reasoning blocks are priced with the harness' fixed heuristic (four characters per token), so a provider that returns reasoning text but no token count still gets a figure.
  3. Neither present → the message counts as zero thinking and contributes nothing.

The two denominators are derived from the same assistant messages, so the percentages always agree with the count on one consistent scope:

  • share of all tokens = thinking ÷ (input + output + cache reads + cache writes)
  • share of output = thinking ÷ output

Why it's lightweight

  • Client-only, zero host behavior. The node half (lib/index.js) is an empty apply that exists only so the package appears in the host Loader. All work is done in the browser.
  • Read-only. It consumes the existing conversation snapshot; it adds no service, projection, tool, or RPC.
  • Self-contained. It depends on no other plugin.
  • Zero-cost when idle. When nothing is being thought, both readouts render null — no element, no layout cost.
  • Theme-aware. Colors come from the --dsw-alias-* tokens, so it follows light/dark automatically.

Install

The plugin follows the standard dsh.bundle + dsh.client convention, so it installs like any DSH plugin. From this repository:

dsh plugin add github:Six6stRINgs/dsh-client-ui-thinking-stats

Then restart dsh web and reload the page. The readouts appear only once the model starts thinking.

Testing

test/harness.mjs stubs the browser/React environment, runs the real factory and apply, and renders both entries against sample data (provider-reported and block-estimated paths, the one-decimal formatting, and the hidden-when-empty cases). Run with:

node test/harness.mjs

Known limitations

  • Figures come from the in-window conversation snapshot. For very long, paged sessions the visible window is the counted scope; the shipped stats line and projections use whole-log folds instead.
  • The character-per-token estimate is approximate, exactly as the harness' fixed heuristic is; provider-reported reasoningTokens is always preferred.