curo22/dsh-wb400-guard ↗★ 2

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.

Package
dsh-wb400-guard
Compatibility
Unverified
Version
0.1.4
License
MIT
Last updated
Oct 30, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:curo22/dsh-wb400-guard

配置

cordis.patch.yml 里可调:

键默认说明
enabledtrue关掉就完全不碰 fetch
gatewayHosts["copilot.tencent.com"]要防护的 host;以 . 开头做后缀匹配。国际网关默认不在列表
mode"anchor"anchor 只改两处指纹那几句;all 把 system 里所有 @ 全换掉(内核改了措辞时兜底)
logPath""空则写 ~/.dsh/logs/dsh-wb400-guard.jsonl
dryRunfalse只记录不实际改写

产物自测 29 条:契约、改写(三个触发源场景)、host 判定、幂等、fail-open、安装卸载、配置

node --test