dsh-gpt-compat
Fail-closed DSH compatibility guard for redundant GPT/Codex sandbox escalation arguments
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YaoaY/dsh-gpt-compat说明文档
阅读完整 README ↗使用效果
使用前:冗余参数导致工具调用反复失败
使用后:工具按当前沙箱策略正常执行


配置
默认 bundle 配置:
providers: ["*"]
tools: ["bash", "pwsh", "write", "edit"]
| 字段 | 类型 | 默认值 | 含义 |
|---|---|---|---|
providers | string[] | [] | 允许处理的 provider id。空数组停用插件;显式 '*' 表示所有 provider。 |
tools | string[] | ['bash', 'pwsh', 'write', 'edit'] | 允许处理的 DSH 原生提权工具名。空数组停用插件。 |
通过 profile 或 home 级 cordis.patch.yml 覆盖时,需要重述完整配置:
- id: gpt-compat
config:
providers: ["your-gpt-provider"]
tools: ["bash", "write", "edit"]