dsh-messages-sanitizer
Run the following command in DeepSeek Harness:
dsh plugin install Leeminjing/dsh-messages-sanitizer
Paste the following prompt into your AI chat to install this plugin:
To install the dsh-messages-sanitizer plugin in DeepSeek Harness, run the command `dsh plugin install Leeminjing/dsh-messages-sanitizer`, with the full source code available at https://github.com/Leeminjing/dsh-messages-sanitizer.
About this plugin
In DeepSeek Harness, developing or loading local plugins can lead to tool dispatch crashes that leave orphaned tool_calls in the session log. These invalid entries cause all subsequent requests to fail with 400 INVALID_REQUEST errors, freezing the chat and disrupting workflow. The dsh-messages-sanitizer plugin tackles this issue head-on with a four-layer defense mechanism: it automatically synthesizes error tool results to continue conversations after crashes, prevents invalid arrays by preemptively adding missing tool responses, heals polluted logs by stripping dangling calls and folding duplicates, and provides fallback correction for all requests. This ensures the messages array remains valid, allowing chats to recover seamlessly without manual intervention.
This plugin is ideal for DeepSeek Harness developers, especially those building or debugging custom workflow plugins. It integrates smoothly into the development environment, automatically cleaning up crash artifacts so you can focus on feature implementation rather than session recovery. Whether you're a beginner or an experienced developer, if you've encountered chat freezes from tool failures, this tool offers practical relief.
Overall, dsh-messages-sanitizer enhances development stability and resilience, making tool dispatch failures less disruptive. It acts as a silent guardian, ensuring message flows stay smooth in the background and improving the overall development experience.
Use Cases
- Tool dispatch crashes during local plugin development freeze the chat
- Orphaned tool_calls in session logs cause 400 API errors
- After crashes, automatic correction of message arrays to resume sessions
Best For
- Plugin developers working on DeepSeek Harness
- Engineers building workflow tools
- Users experiencing chat crashes and seeking fixes
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.