782042369/dsh-model-compat-guard ↗★ 0
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中的兼容性。适合遇到自动压缩失败、沙箱提权报错或工具调用参数缺失的用户,能有效提升模型交互的稳定性。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:782042369/dsh-model-compat-guardドキュメント
README 全文を読む ↗配置(可选)
~/.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 传入的同名字段优先于该文件。