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. 8. 21.

설치

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

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.