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             # 只记数量,不记内容