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

dsh-context-compression-improved

Context Compression Improved

[dsh-context-compression-selector](https://github.com/WilliamShi666/dsh-context-compression-selector) 的改进版 fork——面向 DeepSeek Harness 的可审计工具结果上下文压缩选择器,新增正交的**代码骨架压缩门**。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-compression-improved@0.10.3
README兼容性版本
Context Compression Selector settings UI

兼容性与来源证明

Context Compression Improved 以 dsh-context-compression-improved 发布,当前版本为 0.10.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.10.3stable
2026/10/30
0.10.2stable
2026/10/28
0.10.1stable
2026/10/28
查看其余 33 个版本收起版本
0.10.0stable
2026/10/23
0.9.9stable
2026/10/20
0.9.9-beta.0beta
2026/10/20
0.9.8stable
2026/10/18
0.9.7stable
2026/10/17
0.9.6stable
2026/10/17
0.9.5stable
2026/10/15
0.9.3stable
2026/10/8
0.9.0stable
2026/10/7
0.2.5stable
2026/10/2
0.5.8stable
2026/10/2
0.7.0stable
2026/10/2
0.8.0stable
2026/10/2
0.8.0-beta.7beta
2026/10/1
0.8.0-beta.6beta

相关插件

正在加载相关插件…

最新版
0.10.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
16.5 MB
文件数
265
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 9
周下载
1,808
安全扫描
✓ v0.10.3 扫描通过
最近提交
2026/10/30
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
2026/10/1
0.8.0-beta.5beta
2026/10/1
0.8.0-beta.4beta
2026/10/1
0.7.0-beta.2beta
2026/10/1
0.2.4stable
2026/10/1
0.5.7stable
2026/10/1
0.8.0-beta.3beta
2026/10/1
0.8.0-beta.2beta
2026/10/1
0.8.0-beta.1beta
2026/9/29
0.7.0-beta.1beta
2026/9/29
0.6.5stable
2026/9/29
0.6.4stable
2026/9/26
0.6.3stable
2026/9/25
0.6.2stable
2026/9/25
0.2.3stable
2026/9/25
0.6.1stable
2026/9/25
0.5.6stable
2026/9/25
0.6.0stable
2026/9/25
0.1.1stable
2026/9/15

README

dsh-context-compression-improved

An improved fork of dsh-context-compression-selector — an auditable tool-result context-compression selector for DeepSeek Harness — adding an orthogonal code-skeleton compression gate.

中文说明 · 日本語 · 한국어 · Français · Deutsch · Italiano · Русский · Español · Changelog · Installation guide

[!NOTE] What this fork adds on top of upstream 0.1.0:

  • An orthogonal code-skeleton compression gate (codeSkeleton.enabled, default off): the first exposure of an oversized fresh source-code tool result can keep a skeleton of imports and declarations — bodies elided, error lines kept — before the regular reducers run.
  • A settings toggle for that gate in the same selector settings section, independent of every compression profile.
  • An ESLint baseline wired into CI, a test:watch TDD loop, and documentation in English, Simplified Chinese, Japanese, and Korean.

[!IMPORTANT] This project supports DeepSeek models only. Lossless measurement and lossy compression depend on the bundled official DeepSeek tokenizers (deepseek-v4-flash, deepseek-v4-pro, deepseek-v4-flash-vision-exp). Everything else fails open and keeps original tool results. See the upstream README for the full safety model.

[!TIP] Recommended: connect DeepSeek with your own API key via a custom Responses API endpoint. Prefer a custom OpenAI-compatible endpoint (/v1/responses) over the official-account Messages API route: it does not go through the Anthropic-style message serialization, so requests never trip message-format issues or tool_use/tool_result pairing validation (the official route's resume-replay 400s cannot be repaired from the plugin side), and you can switch endpoint nodes over time and keep existing sessions running.

  • Supported DSH hosts: 0.1.0-rc.2 0.1.0-rc.3 0.1.0-rc.6 0.1.0-rc.7 0.1.0-rc.8 0.1.1-rc.1 0.1.1-rc.2 0.1.2-rc.1 0.1.5-rc.1 0.1.5-rc.2 0.1.5-rc.3 0.1.7-rc.1 0.1.7-rc.2 0.2.0-rc.1 0.2.0-rc.2 0.2.1-rc.1 0.2.1-rc.2 0.2.1-rc.3 0.2.1-rc.4 0.2.1-rc.5 (20 rc releases across lines 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)

What it is

Long-running agent tasks accumulate a large amount of tool output. This community plugin adds selectable, auditable policies for reducing that tool-result context without modifying DeepSeek Harness core:

  • Fresh pre-compresses a newly oversized tool-result segment before the model receives it.
  • Aggregate pre-compresses fresh material again when it still grows beyond its budget.
  • History / micro-compact replaces eligible old tool results while preserving recent working context.
  • TailTrim is an optional Custom-only tail reduction path.
  • Native preserves the Harness-style head/middle/tail trimming as one explicit profile.
  • Code skeleton (new, orthogonal gate) — see below.

Every decision is recorded: stage, reducer, trigger, skip reason, and exact token counts where available.

Code skeleton gate (new)

When the gate is enabled, an oversized fresh source-code tool result (for example a large read_file) first tries a skeleton reduction: imports and type/function/class declarations are kept, function bodies are elided with a marker, and error lines inside elided bodies are preserved. If the skeleton cannot be produced or verified, the result falls back to the original head pruning — the gate can never make context worse.

Properties:

  • Orthogonal: independent of the selected profile (balanced, savings, cache-strict, adaptive, custom, off, native). All profiles get the gate.
  • Off by default: codeSkeleton: { enabled: false } until you turn it on.
  • Measurement-gated: requires the exact DeepSeek tokenizer; without it the plugin fails open.
  • Session-frozen: like all selector settings, changes affect newly observed sessions only.
  • Strictly parsed: codeSkeleton must be exactly { enabled: boolean }; malformed values throw on the runtime side and show as unreadable in the browser UI.

Settings UI

Choose a compression profile, set the Auto Compact trigger level, and toggle code-skeleton compression in the same settings section. The toggle saves on change and shows the saved state on reload.

Context Compression Selector settings UI

Monitoring UI

While compression runs, the plugin gives you a live view of what it saves: a compression monitor panel — net/gross savings, offsets, context usage, cache-hit rate, cost estimate, and the turn-tail intent-summary state, with a per-session resume/disable override right in the panel — next to the session's context trend chart.

Compression monitor panel

Context trend for a session under compression: per-step / per-turn token composition with a timing overlay; the scissors mark where reductions landed.

Context trend chart

Stats semantics and persistence

Savings are reported in three distinct semantics — never merged:

  • Stock (currently active) — net savings still in effect on the live surface; it rises and falls as compressed content moves in and out.
  • Cumulative (across N calls) — the stock sampled at every request boundary and summed; answers "how much was saved historically" and survives host restarts.
  • Money saved — cumulative weighted by cache hit/miss at official list prices (deepseek-official official routes only; other routes show the token figure).

Stats persist in SQLite (~/.dsh/storages/dsh-context-compression/stats.sqlite) across host restarts; a missing driver or write failure degrades visibly (panel badge, in-memory fallback). Historical sessions are backfilled from on-disk behavior records (host sessionQuery service preferred, read-only session-log parsing as fallback — session files are never written). Records contain counts, sequence numbers, session identifiers, and enum component names only; original text and free-form text never enter the database. Delete the file to reset stats completely.

The /ccip command drives the panel in real time: rows stock|total|money on|off, mode compact|full, session <id|latest|off>, flush, backfill pause|resume|status.

Install

Recommended: install from npm. One version covers every supported Harness line — latest carries the full 17-rc enum (0.1.0-rc.2 → 0.2.1-rc.2); the runtime picks per-line code paths on its own.

dsh plugin --profile web add dsh-context-compression-improved@latest
dsh --profile web --dump-config

From source (alternative — the internal package names intentionally stay upstream's):

git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
cd dsh-context-compression-improved
pnpm install --frozen-lockfile
pnpm build

Then pack the selector package and add it to a Harness profile — the full walkthrough, including verification and uninstall steps, is in the installation guide.

Development

pnpm install --frozen-lockfile
pnpm lint          # ESLint baseline (also enforced in CI)
pnpm typecheck     # runtime + selector + tests tsc, plus the bundle step
pnpm test          # full vitest suite
pnpm test:watch    # TDD loop: write the failing regression first, then make it pass
pnpm build
pnpm verify:release

Contributions follow the upstream discipline: add the failing regression first, keep every production change inside this repository, and explain “triggered”, “enabled but skipped”, and fail-open evidence separately. See CONTRIBUTING.md.

Compatibility

  • Built and tested against the official DeepSeek Harness releases; peers declare the full supported-hosts enum (0.1.0-rc.2 → 0.2.1-rc.2, seven lines) and the plugin uses public plugin and profile APIs only. The supported list is generated into the managed block above by scripts/sync-hosts.mjs from scripts/hosts.mjs.
  • Requires Node ^22.19.0 || >=24 and pnpm 11.7.0.
  • The plugin uses only public Harness extension APIs and does not modify Harness core code. Unofficial community project, not affiliated with or endorsed by DeepSeek.

Credits and license

  • Upstream project and all prior work: WilliamShi666/dsh-context-compression-selector by WilliamShi666 (MIT).
  • Fork additions (code-skeleton gate, tooling, localized docs): drscrewdriver.
  • MIT — see LICENSE (upstream copyright notice retained) and THIRD_PARTY_NOTICES.md for bundled tokenizer provenance.

相关插件

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

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Plugindsh-pluginDeepSeek Harness 社区插件市场,遵循官方插件规范:无需离开应用,即可浏览、搜索并安装 10000+ 个人工精选的社区插件。· DeepSeek Harness 社区插件市场(遵循官方开发规范):10000+ 人工精选社区插件,每日更新。Cco Market@chatcode/cco-marketChatCode CLI Plugin Market — 浏览、搜索并一键安装社区插件。Rewind Plugindsh-rewind-plugin窗口内对话回溯与工作区文件恢复