dsh-auto-compact: DSH Session-level Auto Context Compression Plugin
`dsh-auto-compact` is a session-level automatic context compression plugin for DeepSeek Harness (DSH), maintained by JohnathonYe and released under the MIT license. It aims to address the excessive context pressure encountered in long sessions by monitoring session context usage. When usage exceeds a user-defined independent threshold, it automatically performs `compact` compression and injects a summary into the context to seamlessly continue the session, eliminating the need to send a "continue" message throughout the process. The plugin supports threshold adjustment ranging from 1% to 90% (default: 50%) and persists settings based on `sessionId`. It coexists with the built-in DSH `compaction-basic` (default threshold: 80%) without interference. Installation requires Node.js ≥ 20 and pnpm ≥ 10.
Read More