DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-tiered-compaction

Tiered Compaction

DSH layered context compression plugin: a four-stage pipeline of lossless folding → disk persistence → soft pressure → lossy summarization, with zero LLM cost for the first three stages. Takes effect immediately after installation.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-tiered-compaction@0.4.1
READMECompatibilityVersions

Compatibility and provenance

Tiered Compaction is published as dsh-tiered-compaction and currently resolves to version 0.4.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
11/4/2026

Versions

0.4.1stable
11/1/2026
0.4.0stable
11/1/2026
0.3.1stable
10/28/2026
Show 15 more versionsCollapse versions
0.4.2-beta.1beta
11/3/2026
0.4.1-beta.1beta
11/1/2026
0.4.0-beta.12beta
11/1/2026
0.4.0-beta.11beta
11/1/2026
0.4.0-beta.10beta
11/1/2026
0.4.0-beta.9beta
11/1/2026
0.4.0-beta.8beta
11/1/2026
0.4.0-beta.7beta
11/1/2026
0.4.0-beta.6beta
10/31/2026
0.4.0-beta.5beta
10/31/2026
0.4.0-beta.4beta
10/31/2026
0.4.0-beta.3beta
10/31/2026
0.4.0-beta.2beta
10/30/2026
0.3.0stable
10/28/2026
0.2.0stable
10/28/2026

Related plugins

Loading related plugins…

Latest
0.4.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
482.3 kB
Files
26
Surface
web
License
MIT
Source
npm
GitHub
★ 2
Weekly downloads
3,130
Security scan
✓ v0.4.1 scan passed
Last push
11/3/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Client Ui Git Graph@linxin666/dsh-client-ui-git-graphExternal dsh web GUI plugin: a blank-session git branch selector + Git graph, with real host-side git operations and guards, as a dsh profile bundleSsh@linxin666/dsh-sshRemote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster executiOpsdsh-opsNative file and PTC tools for DSH on Windows x64, Linux x64 and macOS arm64/x64; Windows-only optional Bash payload and host PowerShell integrationUpdate@linxin666/dsh-updateSelf-update plugin for the dsh web GUI: probes npm for newer family releases and runs the owning profile's pnpm update in place, from a sidebar trigger beside the settings seat with a release-notes panel

README

简体中文 | English

tiered-compaction

DSH 的分层上下文压缩插件。前三层不调用 LLM,只有压力真正到阈值时才做一次摘要。

悬浮窗效果

当前正式版:0.4.1

它做什么

层做法成本
1 · 折叠连续重复 3 次以上的行折叠成一行不调用 LLM
2 · 落盘超过 8 KB 的工具输出存到磁盘,上下文只留预览和路径不调用 LLM
3 · 驱逐压力到 70% 提醒收束;到 80% 移除旧的可重跑工具结果不调用 LLM
4 · 摘要压力到阈值(约 82%)时调用 LLM 摘要较早的历史1 次 LLM

被处理过的内容都能找回:落盘和摘要前的原文保存在 ~/.dsh/tiered-archive,可以用 tiered_restore 工具读回;被驱逐的工具结果重跑原命令即可恢复。

安装

dsh plugin --profile desktop add dsh-tiered-compaction

装完重启 DSH 即可,不用改配置。Web 版、命令行、TUI 把 desktop 换成 web、headless、tui。

让四层全部生效

DSH 的每个会话在创建时绑定一个预设,之后不能更换。只装插件时,所有会话都有第 1、2 层,第 3、4 层还是官方压缩。要四层全开,需要把预设换成本插件的版本:

预设怎么开启
cordis(桌面端默认)安装 tiered-cordis-preset bundle
ptc-tctools/gen-ptc-tc.ps1 -Apply
standard(Bot 和群聊使用)tools/gen-standard-tc.ps1 -Apply
官方 ptc、minimaltools/gen-standard-tc.ps1 -Preset ptc -Apply,minimal 同理

改完之后新开的会话才生效,已有会话保持原样。DSH 升级后要重跑一次生成器。

悬浮窗

  • 大号百分比是当前上下文占窗口的比例,右上角是实际 token 用量和距下次摘要还差多少。
  • 三张卡片分别是折叠/落盘、驱逐、摘要的次数和省下的 token。
  • 摘要进行中会显示「正在摘要… Ns」。
  • 会话空闲时,压缩要等你发下一条消息才会触发,悬浮窗会提示「下条消息时自动压缩」。

设置页里有同样的信息和更详细的分层统计。

更新和卸载

dsh plugin --profile desktop update dsh-tiered-compaction   # 升到最新正式版
dsh plugin --profile desktop add dsh-tiered-compaction@beta # 装尝新版
dsh plugin --profile desktop remove dsh-tiered-compaction   # 卸载,官方压缩自动恢复

更新后要完全退出 DSH 再打开。

配置

全部可选,不填就用默认值。

字段默认说明
enabledtrue是否接管压缩
autotrue是否自动压缩;false 时只能手动 /compact
archiveDir~/.dsh/tiered-archive存档目录
summaryTarget跟随会话摘要用的 provider 和 model
modelPolicies无按模型覆盖阈值和重试次数
scopeId不填预设里挂载时用,生成器会自动填

确认它在工作

在宿主日志里搜 tiered-compaction 健康:

tiered-compaction 健康 window=262144 pressure=57.3% ... status=ok

status=ok 表示正常,status=warn 后面会写明发现了什么问题。

已知限制

  • 含图片或附件的工具结果不处理。
  • 落盘预览固定 5120 字符,完整原文在存档里。
  • 按 DSH 0.2.x 的压缩接口实现,DSH 大版本升级后需要重新核对。

更多文档

  • 架构与设计理念,架构图
  • 各层细节:第 1 层、第 2 层、第 3 层、第 4 层
  • 更新记录

License

MIT