w2829562572-dev/dsh-tool-squeeze1

dsh-tool-squeeze

Content-aware tool output compression for DeepSeek Harness.

AI 分析

核心用途是压缩冗长的工具输出内容。适合频繁调用工具产生大量日志/JSON/HTML,需要减少 Token 消耗并防止上下文溢出的用户。

パッケージ
dsh-tool-squeeze
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/21

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:w2829562572-dev/dsh-tool-squeeze

ドキュメント

README 全文を読む ↗

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.