DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

dsh-compaction-counter

Compaction Counter

在上下文指示器旁显示当前会话成功进行的上下文压缩次数。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Wepoi9/dsh-compaction-counter#eed6be4ce1e662467953bc3787c9fa0063774a67
README兼容性版本

兼容性与来源证明

Compaction Counter 以 dsh-compaction-counter 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.1.0stable
2026/10/22

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Session Titles Bundle@deepseek-ai/dsh-experimental-session-titles-bundle新的用户提示到达时刷新会话标题。Personalized Recommendations@deepseek-ai/dsh-personalized-recommendations回答下方以卡片形式提供个性化页面和内置插件推荐Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义

README

dsh-compaction-counter

A DeepSeek Harness plugin that shows how many times the current session's context has been compacted, next to the context meter under the composer.

4 turns 432 steps · 168 tok/s   74.3M tok · Cache hit 95%   30%   Compactions: 1

What it counts

One count per successful compaction of the current session.

EventCountedWhy
compaction/summaryyesAppended inside the synchronous commit step, together with the replacement body, so a failed attempt closes with compaction/end carrying an error and never produces a summary.
compaction/end with errornoA failed attempt records the error and no summary.
compaction/prunenoA tool-result prune is not a compaction of the conversation.
inherited prefix of a forked sessionnoThose compactions belong to the parent session, not the fork.

The count is a durable session projection, so it survives a reload and a reopened session: the host recomputes it from the session log.

Install

From a local checkout:

dsh plugin --profile web add "link:<absolute path to this directory>"

The plugin ships its own bundle patch, so the installation appends it to the profile's dsh.profile.bundles selection. Restart dsh web afterwards, then hard-refresh the browser.

The plugin does not touch the compaction behavior, the compaction configuration, or the platform bundle: it adds one projection unit and one composer-dock entry.

How it works

Host half (index.js) registers one projection unit, compactionCount, on ctx.sessionProjections. The unit is a pure fold over the committed session events; the client receives its whole value through the standard projection channel.

Client half (client.js) registers one entry into the platform's conversation.composer.dock slot — the same official slot the shipped activity and usage pills use. The entry reads the compactionCount projection through the session standard useProjection seat, so it renders nothing when the host half is not mounted.

Placement. The platform renders the whole dock slot before the standard context ring, so a slot entry's own order cannot place the reading on the ring's right — it always lands to the ring's left. The entry therefore also sets the CSS order: 1 on its own element. The dock is a flex row whose standard ring carries no order (the default 0), so this moves the reading past the ring while the shipped pills keep theirs. The visual order then differs from the DOM order, which is the accepted trade for a reading that is not interactive.

The copy follows the browser's language preference, picked once at load (Chinese for a zh primary subtag, English otherwise). It does not consult the DSH Language setting, and a language change takes effect on reload.

Development

npm install
npm test    # unit and host-integration tests
npm run check

tests/projection.test.mjs covers the fold in isolation. tests/host-integration.test.mjs runs the unit against the real @deepseek-ai/dsh-session and @deepseek-ai/dsh-session-projection packages, including the fork case.

zod

The plugin's own zod dependency is floored at ^4.6.6, the first release carrying the fix for CVE-2023-54404 (uncontrolled resource consumption through unbounded array validation). The plugin validates numbers and objects only, so the vulnerable array path is not reachable here, but the floor keeps a patched version in every install.

The overrides entry pins the same version for the transitive copies the DSH development dependencies bring in, so the whole tree resolves to one patched zod. It applies to this package's own install only; the DSH packages keep their own zod pins.

License

MIT