Introducing the DeepSeek Harness Plugin: dsh-usage-guard
`dsh-usage-guard` is a runtime interceptor designed to prevent DeepSeek Harness (DSH) from corrupting session history due to malformed upstream data. The plugin modifies the projection calculation logic via monkey patching, performing cleaning, mapping (with broad alias support), and validation before token accumulation, while filtering `NaN`, negative values, and outliers. It supports immediate replay-based recovery for corrupted sessions and provides token peak clamping, diagnostic reports, a Web UI settings card, and client-side updates to ensure the integrity of token statistics.
Read More