miao-pa-si-wutao/dsh-think-strip ↗★ 0

dsh-think-strip

Strip historical reasoning blocks and oversized tool outputs out of DeepSeek Harness context; archive the originals to disk with a searchable index and leave one-line stubs behind. Two per-session switches (thinking / tools). 适合需要精简上下文、节省Token并保留原始思考记录的用户。

パッケージ
dsh-think-strip
互換性
未検証
Harness ピア範囲
>=0.2.1-rc.1 <0.3.0
Cordis ピア範囲
^4.0.5
バージョン
0.2.1
ライセンス
MIT
最終更新
2026/10/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:miao-pa-si-wutao/dsh-think-strip

ドキュメント

README 全文を読む ↗

Configuration

Set it in the profile's cordis.patch.yml, overriding by id:

- id: dsh-think-strip
  config:
    enabled: true
    archiveDir: ''
    archive: true
    summaryMode: first-line
    summaryMaxChars: 100
    minReasoningChars: 0
    keepSummary: true
    reasoningDefault: true
    toolsDefault: true
    toolStripChars: 4000
    toolHeadChars: 1200
    toolTailChars: 400
    trace: true
FieldDefaultMeaning
enabledtrueMaster switch. Off stops processing new turns; already-committed records still apply
archiveDir''Archive root; empty means /think-archive
archivetrueWrite originals to disk. Off strips without archiving (not recommended: items that fail to archive are not projected)
summaryModefirst-linefirst-line takes the first line of the reasoning; none leaves only a [reasoning archived] stub
summaryMaxChars100Maximum summary length
minReasoningChars0Reasoning shorter than this is left alone
keepSummarytrueInsert a summary line where content was stripped
reasoningDefaulttrueDefault for sessions with no override
toolsDefaulttrueDefault for sessions with no override
toolStripChars4000Compress plain-text tool results longer than this; 0 compresses all
toolHeadChars1200Head characters kept after compressing
toolTailChars400Tail characters kept after compressing
tracetrueWrite one line per turn to plugin.log — this is how you debug "why did nothing happen"