Rice Grain Guard: DeepSeek Harness Output Repetition Detection Plugin
dsh-rice-guard is a workflow plugin for DeepSeek Harness that monitors the model's thought stream and output stream, triggers alerts when repetitive content is detected, and can optionally automatically cancel the current turn. It captures repetition patterns through four rules: periodic repetition, custom phrases, numbered cycling, and repetitive line density, helping developers intervene promptly when the model begins to repeat itself and reducing manual intervention costs.
Read MoreDSH Rice Guard (dsh-rice-guard): A passive watchdog for repetitive output in assistant streams
dsh-rice-guard is an independent MIT plugin for DeepSeek Harness released by XiaoSHang05. It subscribes to the reasoning and output deltas of agent/assistant-stream and detects runaway repetitions using four rules: periodic repetition, custom phrases, sequential looping, and repetitive line density. Upon detection, it triggers a manual-close alert and optionally performs agent.cancel for turn-level mitigation. Compatible with DSH 0.2.0-rc.2 (validated in the README), it is installed via `dsh plugin --profile desktop add github:XiaoSHang05/dsh-rice-guard`, and offers a monitoring page for adjusting thresholds and session-level pausing.
Read More