dsh-refuse-compaction: Handing the Timing of DSH Automatic Context Compaction Back to Developers

dsh-refuse-compaction, maintained by mizuki5101, is built for the DSH desktop profile. It wraps the compaction engine at the preset scope, intercepting automatic compaction paths such as agent pressure, model switching, and tier-policy-governed overflow recovery; manual /compact is unaffected. Four levels are provided: disabled, temporary refusal, manual confirmation, and prohibition. The in-session occupancy meter reads the dsh-compaction-policy live configuration to compute compaction points, and it can coordinate with dsh-exa-distill to defer pressure-driven compaction during the "distillation pending flush" window. Installation is fully manual: extract the tgz, patch package.json and cordis.patch, then restart dsh. Best suited for long-running tasks on local small-context-window models. The plugin runs with dsh process privileges—review the MIT-licensed source before installing.

Read More