dsh-context-kit: Adjusting the DSH Auto-Compression Threshold Without Freezing the Agent Preset
dsh-context-kit (LISHUANGXI1412, workflow category) manages the automatic-compaction trigger ratio and post-compaction retention ratio for DeepSeek Harness. It reads the presets shipped with the application from app.asar and writes exclusively via insertion into the managed block of the profile's cordis.patch.yml, avoiding the pitfalls of hand-writing an entire preset that would inevitably lag behind upstream updates. It provides a Settings → Context panel, a dsh-context-kit CLI, and a preset_tuner utility; you can preview, apply, or clear overrides, and perform measured/estimated usage analysis based on local session logs. Install with `dsh plugin add dsh-context-kit`. As of 0.3.0, the context index requires a separate installation of dsh-token-trim. MIT licensed, Node ≥ 22.
Read More