KAsyori/dsh-unicode-guard ↗★ 0
dsh-unicode-guard
DSH plugin that keeps the glyph which trips DeepSeek content moderation out of every model-visible surface, so a fetched page can never permanently break a session with HTTP 400 "Content Exists Risk". 适合经常抓取网页、需防止特定字符导致会话永久损坏的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KAsyori/dsh-unicode-guardConfiguration
| Key | Default | Meaning |
|---|---|---|
mode | regional | regional masks regional indicator pairs only. astral additionally replaces every non-BMP character with replacement, which destroys legitimate output - opt in deliberately. |
replacement | U+FFFD | Replacement used in astral mode only. |
toolResults | true | Scrub tool results before they are logged. |
userMessages | true | Scrub user-role messages during heal. |
assistantMessages | false | Scrub assistant messages during heal. |
request | true | Enable the llm/stream backstop. |
verbose | true | Log one line per rewrite through ctx.logger. |
Unknown keys or wrong value types fail at mount time rather than silently doing nothing.