Introduction¶
DeepSeek Harness (DSH) automatically compresses context when handling ultra-long sessions. This removes earlier conversations from the model’s immediate view, though the original text remains on disk. This plugin (dsh-super-memory) stores relevant content locally at the moment of context compression and subsequently feeds those specific segments back to the model only when relevant.
What It Is / Problem Solved¶
dsh-super-memory is a cross-compression memory plugin developed by kkwings. It addresses the issue where, after a single ultra-long session has undergone context compression several times, the model can synthesize answers by combining earlier queries or decisions with new conditions, rather than treating new questions as if starting from scratch.
In short: It is a vehicle, not an access card. It excels at scenarios where “there is a clear statement regarding what you asked, and it has been compressed”; it is not suited for “casual questions like chatting.”
Core Features¶
-
Automatic Archiving upon Compression
Locally stores content that is about to be compressed, including both summaries and original text. It does not rely on other memory plugins, does not access the internet, and by default, does not call any model. -
Local Retrieval and Injection
Matches relevant content via lexical scoring (BM25) when queries are made, injecting references only upon a match. Automatically injects directory-level context regarding the conversation’s history after compression. -
Optional LLM Assistance
Supports query rewriting and interpreting temporal intent (earliest/most recent/both). -
User Interaction
Provides “Open Original Text” and “Got it” buttons.
Installation and Activation¶
The plugin runtime requires Node with zstd support, requiring node >= 22.15. Installation must be configured according to official DSH documentation. Once enabled, usage modes can be selected in Panel ⑦ (No LLM calls / Call main model / Call specified model).
Typical Usage¶
- After a session has been compressed multiple times, simply say “Let’s proceed with the approach we decided earlier,” and the plugin will automatically retrieve and inject old conclusions for the model’s reference.
- Click the “✕” button below the assistant’s response to search for strongly relevant content within compressed history.
- Select the usage mode in Panel ⑦ (No LLM calls / Call main model / Call specified model).
Use Cases and Notes¶
- Restricted to cross-compression within the same session; cross-session memory is out of scope.
- Cannot send messages on behalf of the user, nor can it force the model to re-answer immediately; it can only queue materials for the next round of context.
- Does not read keys, does not connect to the network independently, does not rewrite conversations, and does not touch DSH raw session logs (read-only).
- Licensed under MIT, allowing forking, modification, and redistribution.
- On Linux/macOS, if the working directory is inside the plugin directory, tool results will be silently skipped (anti-self-inflation rule).
- Searches by “words,” not by “meaning”; it can locate “chunks” but cannot pinpoint which specific “turn” within a chunk.
Conclusion¶
This concludes the introduction to the dsh-super-memory plugin. It is primarily intended for learning and testing purposes, and the author does not guarantee continuous updates. The core code is open-source on GitHub; see SkillHub for the directory page.