Introduction¶
In long conversations, the context window is constantly filled by historical turns. Common practices are compressing summaries or lengthening the window, but coding tasks often still require the full original text; roleplay, casual chat, and raising conversations care more about “remembering the event” than “having every old sentence in front of you.” DeepSeek Harness (DSH) achieves this by combining plugin presets and toolsets; dsh-memory-preset offers a compromise: the model side retains only the most recent turn of original text, while earlier content relies on local memory bank retrieval. Below is an introduction to its positioning, capabilities, and installation methods.
What is it¶
dsh-memory-preset is a community-maintained agent preset (GitHub: Wuming1101/dsh-memory-preset, Directory page: SkillHub Plugin Page). Maintained by Wuming1101 (Author: Wen Lingwei Vera, Username: DarkSeaStarPicker), personally organized and open-sourced, not an official DSH project. Categorized as “Memory”; current repository stars: 0.
In a nutshell: It overrides a line in the factory preset (preset-memory), performs subtraction on the toolset, and works with context folding and memory retrieval to make the agent prioritize memory lookups over stuffing old original text in long sessions.
Core Features¶
Override and Folding¶
- Overrides a line in the factory preset (
preset-memory), subtracts from the toolset. - Folds away earlier turns in every round, relying on
dsh-context-window. - Explained in the persona: it is normal for old original text not to be in the context; before answering, one should first call
companion_memory_search, then answer.
Retained Tool Capabilities¶
Still retains: file read/write, file search, skills, web search/crawling, ask user, deliver.
Explicitly Unavailable Capabilities¶
Does not provide: shell, jobs, schedule, goal, plan-mode, compaction, subagent/workflow, todo.
Relationship with Memory Store¶
This preset does not write to or maintain the memory store for you; memory retrieval and injection require installing dsh-memory-store separately.
Environment and Dependencies¶
| Item | Requirement |
|---|---|
| DSH | 0.2.2-rc.1 (marked compatible in package.json) |
| Dependency Plugins | dsh-memory-store (memory tool), dsh-context-window (folding) |
| Node | >=22.12.0 |
| License | MIT |
These three need to be bundled and mounted into the profile, and after restart, select “Memory Priority” from the preset list.
Installation and Activation¶
The steps in the official README are as follows; path examples are from the author’s environment and must be changed to your local plugin directory when connecting.
- First install
dsh-memory-storeanddsh-context-window. - Add a reference to this preset in the profile’s
package.json, and adddsh.profile.bundles.
"dsh-memory-preset": "link:D:/plugins/dsh-memory-preset"
Write dsh-memory-preset into dsh.profile.bundles (along with the two dependencies listed above).
- Restart DSH, and switch the preset to “Memory Priority” in the session settings.
Note: The documentation does not provide a one-line install command in the form of dsh plugin add github:..., please refer to the profile link + bundles method.
Typical Usage and Behavior¶
After enabling via the steps above, the conversation behavior is roughly as follows:
- The model can only see the full original text of the most recent turn in every round; earlier turns are folded on the model side, but event logs and client chat records will still be retained.
- The agent should, as required by the persona, call
companion_memory_searchbefore answering when historical information is involved. - Even if the memory store is empty, chatting can still proceed normally; the preset will not proactively explain the above mechanism to the user.
- Content that needs to be remembered long-term should be explicitly written to the memory store; the preset will not automatically summarize and store all history.
Applicable Scenarios and Notes¶
More Suitable For: Long-term chatting, roleplay, etc., where “remembering the event” is more important than “keeping the full text.”
Less Suitable For: Coding or review sessions that require full context, such as long documents or long code; when only one turn of original text remains, the probability of forgetting or answering incorrectly is higher than with full context.
Boundaries of Folding: Folding happens on the model side; history is still visible to the client and logs, do not confuse this with “data being deleted.”
Memory Store and Permissions: Retrieval results come from the local memory store, and the content in the store enters the model request. The plugin runs with the permissions of the current DSH process. Before installing, please read the source code and MIT license, and ensure there are no sensitive errors written to the memory store—incorrect memories will persistently affect subsequent answers and require manual correction.
Risk Summary (Key Points from Original README): Context truncation increases the risk of distortion; not suitable for workflows that strongly rely on full text; memory errors require manual repair.
Conclusion¶
dsh-memory-preset solidifies “recent turn original text + memory store retrieval” into an optional preset, used in conjunction with dsh-memory-store and dsh-context-window. If your scenario is long-term conversation rather than full-context coding, you can select “Memory Priority” in the session after installing the dependencies.
- Directory page: https://www.skillhub.cn/plugins/Wuming1101/dsh-memory-preset
- Source code and description: https://github.com/Wuming1101/dsh-memory-preset