DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Tool Squeeze — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
T

dsh-tool-squeeze

Tool Squeeze

面向 DeepSeek Harness 的内容感知工具输出压缩

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

npx -y @deepseek-ai/dsh plugin --profile web add github:w2829562572-dev/dsh-tool-squeeze#9baf17e7bd48ae3cc0b60162de2ad816b6197c78
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/21

版本

0.1.0stable
2026/8/21

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-tool-squeeze

Evidence-preserving tool-output compression for DeepSeek Harness.

Turn massive logs, JSON, HTML, and text into compact, model-ready evidence— before noisy tool output consumes the agent's context window.

Synthetic Maven failure fixture

Without                     With dsh-tool-squeeze
~22,998 estimated tokens    ~1,736 estimated tokens

                            ↓ 92.5%
                            Critical evidence: PASS

dsh-tool-squeeze is a deterministic, local-first DeepSeek Harness plugin. It compresses oversized log, JSON, HTML, and plain-text tool results at the public tools/post-execute lifecycle seam—before the result is repeatedly sent to the model. It uses no LLM and does not patch Harness Core.

Safety comes first. Small and mixed-media results pass through unchanged, errors and boundaries are prioritized, every omission is disclosed, and the full formatted original is retained through the official DSH spill store.

中文说明

Why agent builders use it

  • More useful context: compresses repetitive output while prioritizing errors, failed tests, stack roots, warnings, exit information, and structural samples.
  • No extra model call: deterministic local processing keeps latency, cost, and data flow predictable.
  • Evidence, not blind truncation: every omission is disclosed and the complete formatted original is retained through the official DSH spill store.
  • Safe integration: uses the public tools/post-execute lifecycle, never patches Harness Core, and fails open when retention or processing is unsafe.
  • Reproducible claims: committed fixtures, exact evidence gates, and raw benchmark results let you verify the behavior yourself.

Problem

A tool can return tens of thousands of low-information lines. Blind truncation may remove the one failure in the middle, while leaving the full result inline spends context on every later model request.

DeepSeek Harness rc.8 already has an excellent hard-size fallback: its official spill policy stores very large plain text and shows a head/tail preview. It also prunes old results during compaction. This plugin complements those features by making the first model-facing result content-aware: it preserves errors, failed tests, structured samples, document semantics, and exact omission counts before the native spill cap is applied.

Before / after

[dsh-tool-squeeze]
Output compressed: 92.5% (estimated).
Original ~22,998 tokens → ~1,736 tokens.
Some repetitive or low-information content was omitted.
Preserved: head, tail, errors, warnings, stack trace roots, exit information.
Original retained at: .../maven-original.txt
Use read with offset/limit, or grep this path.

[retained head]
...
[middle error and root cause]
...
[retained tail]

The notice is part of the model-visible content. Token and reduction numbers are explicitly estimates.

Install

The package is an ordinary DSH bundle, not a Skill. From GitHub:

dsh plugin --profile web add github:w2829562572-dev/dsh-tool-squeeze

For a local checkout:

pnpm install --ignore-scripts
pnpm build
dsh plugin --profile web add -w .
dsh --profile web --dump-config

Pin a reviewed commit for reproducible installs while DSH is in developer preview.

How it works

Tool result
  → inspect size, type, and tool name
  → threshold / exclusion decision
  → log | JSON | HTML | text processor
  → evidence and token-budget guard
  → retain original through ctx.spillStore
  → transparent notice + compressed content
  → official spill-policy hard-size fallback
  → model context

The plugin returns a content-only PostToolDecision. It never replaces the canonical tool value. See architecture and API research.

Supported output types

TypeV0.1 behavior
LogsHead/tail, error and warning windows, stack roots, failed tests, exit information, exact repeated line/block counts
JSONStructure, representative indices, error-bearing records, nested summaries, exact omitted item/key counts
HTMLRules-based readable Markdown retaining titles, headings, paragraphs, tables, lists, links, and code; removes scripts/styles/SVG/comments
TextConservative whitespace cleanup and exact line/paragraph deduplication, then evidence-aware head/tail selection if still over budget

Mixed non-text content passes through unchanged.

Safety

The priority order is:

Safety > information preservation > compression ratio
  • Outputs below minTokens are unchanged.
  • Compression must be smaller and within maxTokens after its notice.
  • Error, warning, failure, traceback, assertion, cause, and non-zero exit evidence receives priority.
  • The full formatted original is retained by default using the official DSH spill service. If retention is unavailable or fails, the result passes through.
  • Parser or compressor exceptions are caught; a plugin failure never turns the tool call into an error.
  • excludeTools provides a durable per-tool bypass, and enabled: false is a complete bypass.

See the full safety model.

Configuration

Defaults:

enabled: true
minTokens: 4000
targetTokens: 6000
maxTokens: 12000

processors:
  log: true
  json: true
  html: true
  text: true

preserve:
  headLines: 80
  tailLines: 120
  errors: true
  warnings: true

report:
  enabled: true

excludeTools: []
retainOriginal: true

Override the installed row in your profile's cordis.patch.yml:

- id: dsh-tool-squeeze
  config:
    minTokens: 6000
    targetTokens: 5000
    excludeTools: [database_export]

Set retainOriginal: false only if losing the retrievable formatted original is acceptable. The compression notice will state that retention is disabled.

Benchmark

The committed deterministic fixtures produce:

FixtureOriginal TokensCompressedReductionCritical Evidence
Maven failure22,9981,73692.5%PASS
Gradle failure60,94312399.8%PASS
npm build44,5273,02893.2%PASS
pytest42,7322,66993.8%PASS
JSON API159,45935299.8%PASS
HTML page57,32114599.7%PASS
Generic log85,02710699.9%PASS

These are synthetic high-repetition fixtures designed to verify processor and evidence behavior, not a claim that production workloads always save 90%+. Token counts use the provider-neutral V0.1 estimator and include the notice. Reproduce them with:

pnpm benchmark

Raw results: benchmark/results.json. Method and caveats: docs/benchmarks.md.

AI and search discovery

For AI assistants, catalogues, and technical search engines, the canonical project name is dsh-tool-squeeze: a local-first, evidence-preserving tool output compressor for DeepSeek Harness / DSH. Machine-readable project facts and citation guidance are available in llms.txt and CITATION.cff.

Architecture

The host-only Cordis plugin has no Web UI bundle and no replacement tool. Its normal-order post-execute listener sits downstream of the official prepended spill listener, so content-aware compression runs first and the native spill cap remains the outer safety bound. Session stats are held in memory in V0.1; a Web dashboard and /squeeze command are intentionally deferred.

Compatibility

V0.1 is developed and integration-tested against:

  • @deepseek-ai/dsh@0.1.0-rc.8
  • @deepseek-ai/dsh-tools@0.1.0-rc.8
  • @deepseek-ai/cordis@4.0.1
  • Node.js 22.19+

The peer range deliberately pins the DSH tool lifecycle RC. Upstream states that developer-preview releases may introduce breaking changes.

Limitations

  • Compression is lossy even when the original is retrievable; exact downstream reasoning quality needs task-level evaluation, not only string evidence gates.
  • V0.1 uses an approximation instead of a provider tokenizer.
  • JSON sampling can pass through when too many unique critical records exceed the maximum budget—safety is preferred over forced compression.
  • HTML extraction is semantic and conservative, not a readability classifier.
  • Nested run_code dispatch-log copies are left to the official spill policy.
  • No command-specific parser catalog, UI dashboard, or one-call transient bypass is included yet.

Contributing

Keep changes deterministic, fail-open, and evidence-backed. Add a fixture and an exact critical-evidence gate for new processor behavior, then run:

pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm benchmark

Please do not add LLM calls or copy third-party implementations. Competitive context and licenses are documented in docs/competitive-analysis.md.

License

MIT. The only runtime libraries are DeepSeek's MIT-licensed Schemastery package and the MIT-licensed htmlparser2 parser stack. No third-party source code is vendored.