dsh-shake: DeepSeek Harness Manual Context Reduction Plugin

dsh-shake is a third-party plugin for DeepSeek Harness (DSH) designed to reduce excessive token consumption caused by overly long conversation history. It frees up context space by replacing long tool outputs and large code/XML blocks with short placeholders, while enabling on-demand restoration of the original text through the `shake_read` tool. The plugin includes an intelligent protection mechanism that, by default, preserves the most recent 4,000 tokens of history and only cleans up content that meets the eligibility criteria. Users can manually trigger cleanup by sending the `/shake` command, with flexible configuration to effectively balance context management and content preservation.

Read More