dsh-context-cap: Trigger Compression Earlier in Long Conversations with a Tunable Context Cap
dsh-context-cap is a DSH community plugin that provides 32k–1M context limit capsules in the session input area. By rewriting the contextWindow of the routing model via settings.mutate, it causes proportion-based compression points (such as those in dsh-compaction-basic) to trigger earlier. The article covers the write path, Remote invocation methods, typical operational steps, and boundary conditions—including per-model sharing, dependency on the compression chain, and the fact that it does not intercept oversized pastes. For installation commands, refer to the official documentation; before enabling, please review the source code and MIT license.
Read More