fengxiforcy/dsh-surrogate-guard ↗★ 0

dsh-surrogate-guard

DeepSeek Harness plugin: neutralize lone UTF-16 surrogates in tool results and entering messages before the session log records them (prevents permanent 400 INVALID_REQUEST).

包名
dsh-surrogate-guard
兼容性
待验证
版本
0.1.4
许可证
MIT
最近更新
2026年10月29日

安装

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

配置

- id: surrogate-guard
  config:
    replacement: '?'      # 默认 U+FFFD
    toolResults: true     # tools/post-execute + tools/ptc-dispatch-log
    userMessages: true    # agent/pre-step
    log: true             # 只记数量,不记内容