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

dsh-think-strip

剥离历史思考块与超大工具输出并归档至本地 适合需要精简上下文、节省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

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"