DSH-context-window: Per-Conversation Context Window Configuration for DSH

The DSH auto-compact's contextWindow and thresholdRatio default to model and global configurations, causing short conversations to suffer from inflated token consumption due to long histories. dsh-context-window stores override values in the session log rather than settings.yaml, persists across switching or reopening sessions, and instantly updates both the compact trigger threshold and the UI context ring. This article introduces installation commands, the Web capsule UI, persistent events, and design boundaries to facilitate per-conversation adjustment of compression timing.

Read More
dsh-context-window: Replicating Codex's Context Window Management

`dsh-context-window` is a DSH plugin designed to address information loss caused by traditional summarization compression when the context window fills up. It replicates Codex’s context-window swapping mechanism, using context swapping instead of frequent compression and preserving details through notes and handoff checkpoints. Core functionality includes two modes: the `handoff` mode without summarization (recommended, directly writing to a handoff checkpoint) and the `seam-region` mode with traditional compression. The plugin provides `new_context` and `notes` tools for the model to invoke, and generates handoff information containing the objective, tasks, notes, and the last request when swapping context windows. Note that `handoff` mode does not emit a UI-visible compression event, and swapping is only allowed at step boundaries.

Read More