782042369/dsh-model-compat-guard0

dsh-model-compat-guard

DSH compatibility guard: repairs auto-compaction failures for GPT/reasoning models (raises the summary token cap and lowers reasoning effort on purpose=compaction requests), strips doomed sandbox-escalation requests, and auto-fills the required tool-call 'description' argument other models often omit

AI 분석

用于优化GPT及推理模型在DSH中的兼容性。适合遇到自动压缩失败、沙箱提权报错或工具调用参数缺失的用户,能有效提升模型交互的稳定性。

패키지
dsh-model-compat-guard
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 9. 1.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:782042369/dsh-model-compat-guard

配置(可选)

~/.dsh/compat-guard.json

{
  "compactionMaxTokens": 32768,
  "compactionEffort": "auto",
  "compactionStripTools": false,
  "compactionPurposes": ["compaction"],
  "fillDescription": true,
  "stripEscalation": "redundant",
  "logFixes": true
}
  • compactionEffort"auto"(最便宜档)/ "keep"(不动)/ 具体档位 id。
  • compactionStripTools:true 时压缩请求去掉 tools 列表(防模型压缩时调工具,代价是丢前缀 KV cache)。
  • cordis 插件 config 传入的同名字段优先于该文件。