DeepSeek Harness 插件

dsh-bottom-stats

DSH web 插件:对话底部统计栏增强 —— 全宽统计行(轮/步·耗时·吞吐·缓存·输入/输出 token,不再截断)+ 上下文占用进度条(系统/工具/消息三色分段与占比)。(英文原文)

跳到安装方式

来源信息

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

检查来源文件

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

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

dsh-bottom-stats

DeepSeek Harness(DSH)Web UI 插件 · 底部统计栏增强 DeepSeek Harness (DSH) web UI plugin — enhanced bottom stats strip

[English](#english) | [中文](#zh)

<img src="./effect.png" alt="dsh-bottom-stats 效果图 / screenshot" width="738" />

---

<a id="zh"></a>

中文

这是什么

为 DSH Web 对话页输入框下方提供两行常驻信息:一条不再被截断的统计行,和一条上下文占用进度条

功能

  • 统计行:轮/步 · LLM/工具耗时 · 首 token/吞吐 · 缓存命中 · 输入/输出 token。整行占满主栏宽度并居中——对话再长、输入 token 涨到数百万,末尾的“输出 … tok”也始终完整可见(官方统计行超长时会被省略号截断)。
  • 上下文占用进度条:限定在对话内容列内居中,按 系统提示词 / 工具 / 对话消息 三色分段显示占比,右侧显示占用百分比与 已用/总量 token(如 18% 177K/1M);悬停进度条可查看完整读数与各项占比明细。
  • 数据与官方 UI 完全同源(sessionStatstokenUsagecontextPressurecontextBreakdown 投影),文案跟随系统语言(中文/English)。

安装

npx -p @deepseek-ai/dsh dsh plugin --profile web add github:318197375/dsh-bottom-stats

安装后重启 web profile(bundle 层变化需要重启,刷新页面不够)。

> 纯 JS 分发,无 prepare 构建脚本,不需要 allowBuilds 授权。

使用

安装并重启后即可生效:任意会话的输入框下方会自动出现上述两行,无需额外操作。

卸载

dsh plugin --profile web remove dsh-bottom-stats

兼容性

  • 需要 DSH Web UI(platform: web)。
  • 依赖官方 conversation.composer.dock 槽位与 sessionStats / tokenUsage / contextPressure / contextBreakdown 投影,标准 Web 组合均已提供。

许可

MIT

---

<a id="english"></a>

English

What is this

Adds two persistent rows beneath the composer in the DSH web chat: a stats line that never truncates, and a context-occupancy progress bar.

Features

  • Stats line: turns/steps · LLM/tool time · TTFT/throughput · cache hit · input/output tokens. The whole line spans and centers on the main column — no matter how long the conversation grows (input tokens in the millions), the trailing output … tok group stays fully visible (the stock line elides it with an ellipsis when it overflows).
  • Context-occupancy bar: centered within the chat content column, segmented by system prompt / tools / messages proportions, with the occupancy percent and used/total tokens on the right (e.g. 18% 177K/1M); hover the bar for the full reading and per-part breakdown.
  • All data comes from the same projections the stock UI uses (sessionStats, tokenUsage, contextPressure, contextBreakdown); labels follow the UI language (Chinese/English).

Install

npx -p @deepseek-ai/dsh dsh plugin --profile web add github:318197375/dsh-bottom-stats

Restart the web profile after installing (bundle-layer changes need a restart; refreshing the page is not enough).

> Pure-JS distribution — no prepare script, so no allowBuilds authorization is required.

Usage

Nothing to configure: after install + restart, the two rows appear under the composer of any active conversation.

Uninstall

dsh plugin --profile web remove dsh-bottom-stats

Requirements

  • DSH web UI (platform: web).
  • Uses the stock conversation.composer.dock slot and the sessionStats / tokenUsage / contextPressure / contextBreakdown projections, all present in standard web compositions.

License

MIT