dsh-tool-call-guard: Neutralizing Tool Calls with Invalid JSON Parameters

`dsh-tool-call-guard` is a security plugin for DeepSeek Harness (DSH) that addresses session corruption caused by models generating invalid JSON parameters. The plugin intercepts the `llm/stream` flow and neutralizes invalid tool calls by converting them into plain-text records and rewriting the corresponding results as user messages, thereby preserving protocol balance. It offers zero configuration, zero overhead, fail-open behavior, and an MIT license, and is particularly well suited for scenarios involving interactions with strict servers such as vLLM. After installation, restart the DSH host to apply the changes.

Read More