dsh-wb400-guard
Fixes the WorkBuddy China gateway 400 (code 11128) when using DeepSeek Harness with a domestic WorkBuddy reverse proxy. One command, zero runtime dependencies.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:curo22/dsh-wb400-guard說明文件
閱讀完整 README ↗配置
cordis.patch.yml 里可调:
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 关掉就完全不碰 fetch |
gatewayHosts | ["copilot.tencent.com"] | 要防护的 host;以 . 开头做后缀匹配。国际网关默认不在列表 |
mode | "anchor" | anchor 只改两处指纹那几句;all 把 system 里所有 @ 全换掉(内核改了措辞时兜底) |
logPath | "" | 空则写 ~/.dsh/logs/dsh-wb400-guard.jsonl |
dryRun | false | 只记录不实际改写 |
产物自测 29 条:契约、改写(三个触发源场景)、host 判定、幂等、fail-open、安装卸载、配置
node --test