dsh-text-guard: A DeepSeek Harness Plugin for Neutralizing Configured Code Point Sequences Before Session Logging
2026-10-18
DeepSeek Harness plugin
DeepSeek
DSH
dsh-text-guard
DeepSeek Harness plugin
Text security
dsh-text-guard is a DeepSeek Harness plugin that addresses the issue where certain text sequences cause the API to reject requests and block the session. By attaching to tool execution, code dispatch logging, and agent step hooks, it intercepts and replaces sensitive sequences (such as flag emojis) before the content is written to logs. It supports configuring match patterns and replacement rules in `cordis.patch.yml`, preventing disallowed content—including outputs from external tools such as web scraping—from entering the session and ensuring that session history remains replayable. Note that this plugin performs lossy text replacement and does not support hot reloading.
Read More