TacitSay/dsh-compact-arsenal ↗★ 0
dsh-compact-arsenal
Configurable context compaction for DeepSeek Harness: three independent sections — whole-context checkpoint, reasoning compression and tool-output pruning, each with its own switch, threshold and method, plus a left-sidebar panel.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TacitSay/dsh-compact-arsenalREADME
Read the full README ↗配置
也可以直接写 profile 的 cordis.patch.yml:
- id: compact-arsenal
name: dsh-compact-arsenal
config:
enabled: true
total:
enabled: true
pressureRatio: 0.8 # 本板块的触发阈值
retainTurns: 2 # 最近的整轮不动
maxInputChars: 60000 # 一次摘要读入的上限
provider: '' # 留空 = 当前会话模型
model: ''
reasoning:
enabled: true
pressureRatio: 0.75
mode: truncate # truncate | clear | model
keepLast: 3 # 最近 3 条助手消息不动
minTotalChars: 15000 # 总量门槛
minChars: 200 # 单项下限
headChars: 600
tailChars: 300
batchChars: 12000
maxItems: 12
model:
provider: ''
model: ''
prompt: '' # 留空 = 内置默认提示词
tools:
enabled: true
mode: truncate
thresholdChars: 8192
keepLast: 2
触发顺序
- 本板块开关打开;
- 上下文压力 ≥ 本板块的
pressureRatio; - 目标内容总量 ≥ 本板块的
minTotalChars(工具板块用thresholdChars作单项预算)。
三者都满足才会改写。