dsh-compaction-policy: Giving You Control Over DSH Context Compaction Triggers
DSH often triggers conversation compaction prematurely (before the 80% threshold) on small context window models due to a fixed 65536-token safety margin. Maintained by zyd232, dsh-compaction-policy dynamically adjusts the compaction trigger line at runtime. It supports configuring the Trigger ratio and Output reserve per provider/model without modifying preset files. This solution is suitable for local and small-window models; it only alters when compaction occurs, while the summarization strategy remains determined by DSH. A DSH restart is required after installation, and configuration is done via Settings. Verified with DSH 0.2.1-rc.2.
Read Moredsh-compaction-policy: Adjusting the Global Compaction Strategy for DeepSeek Harness
dsh-compaction-policy is a DeepSeek Harness workflow plugin (Experimental v0.2.2) maintained by huohua-dev that provides a global compaction policy for fingerprint-matched official Basic within a single Cordis runtime: a default proactive threshold of floor(W×0.9) (i.e., 90% of the window), 16% recent-context retention, a minimum selected segment of 2048 tokens, and exponential failure backoff, while retaining the Basic summarizer, the /compact command, and overflow paths. Install tag: github:huohua-dev/dsh-compaction-policy#v0.2.2; on Desktop, install via the UI and fully restart the application, and for the web profile it can be installed with: dsh plugin --profile web add. Configure the plugin by setting config.policy in compaction-policy-global, and view its status with /compaction-policy-global status.
Read More