Preface¶
When using Mnemon to maintain USER.md and MEMORY.md in DeepSeek Harness (DSH), a common question is: whether these runtime memories enter the current session’s systemPrompt is often affected by dsh-mnemon’s lifecycle gating. If you want “as long as the files exist, every new session can read the same memory fragments,” but don’t want to modify Mnemon’s core logic, you need a patch layer that only handles injection, not maintenance.
Below we introduce the community plugin dsh-hot-memory (repository Ln1m/dsh-tool-hot-memory), maintained by Ln1m and categorized as “Memory” in the directory. It projects Mnemon’s runtime memory files into every session’s systemPrompt as lazy-loaded sections, and is decoupled from dsh-mnemon’s lifecycle gating. Note: the README states the repository was archived on 2026-09-28, and the local-machine Mnemon patch is no longer maintained; before adopting it, please evaluate yourself whether it still fits your DSH version and deployment method.
What Is This¶
dsh-hot-memory is a Cordis patch-type plugin in the DSH ecosystem (packaged via cordis.patch.yml in package.json). It does not create or rewrite memory content; it only injects the USER.md and MEMORY.md maintained by dsh-mnemon into the systemPrompt of every session.
In one sentence: given dsh-mnemon is already installed, it makes Mnemon memories appear in session system prompts in a fixed manner, without being blocked by dsh-mnemon’s lifecycle gating.
Core Features¶
Based on the repository README and package.json descriptions, the verifiable capabilities are as follows:
- Dual-file projection: systemPrompt injection targeting Mnemon’s runtime memory files
USER.mdandMEMORY.md. - Lazy-loaded sections: memories are mounted as lazy-loaded sections, rather than re-implementing Mnemon’s read/write logic on the plugin side.
- Decoupled from lifecycle gating: the injection behavior is independent of dsh-mnemon’s lifecycle gating; memory file maintenance remains entirely handled by dsh-mnemon.
- Implementation form: a patch bundle based on
@deepseek-ai/cordis(peer dependency^4.0.1), with entry pointlib/index.js.
The current package version is 0.1.0, license MIT. GitHub stars: 0 (based on directory page clues).
Installation and Activation¶
The official installation method comes from the README: add the plugin via a local path (<本仓库> refers to the repository directory you cloned or extracted locally):
dsh plugin --profile web add file:<本仓库>
After installation, restart the web instance so the patch takes effect.
Prerequisites:
- dsh-mnemon must be installed first;
USER.md/MEMORY.mdare maintained by it, and this plugin only handles injection.
The DSH community plugin directory is at skillhub.cn, which has no official affiliation with DeepSeek / High-Flyer; the installation command should follow the GitHub README—do not construct dsh plugin add github:owner/repo yourself based on the repository name.
Typical Usage¶
The README does not provide a standalone “usage example” or configuration fields; the typical usage is: first deploy dsh-mnemon and let it maintain the memory files normally, then install this plugin and restart the web instance; after that, when creating a new session, the systemPrompt should contain the memory sections projected by the plugin.
A reproducible verification path (logically):
- Confirm dsh-mnemon has written or updated
USER.md/MEMORY.md. - Install dsh-hot-memory via
file:as per the command above and restart the web instance. - Start a new session and observe whether the corresponding memory content appears in the systemPrompt (the exact presentation is determined by the Cordis patch implementation; refer to the repository’s
cordis.patch.ymlandlib/index.js).
Use Cases and Notes¶
Who it’s for
- Developers who are already using dsh-mnemon in the DSH web profile and want Mnemon memories to stably appear in every session’s systemPrompt.
- Those who accept the “separation of memory maintenance and injection”: maintenance goes to dsh-mnemon, injection goes to this plugin.
Notes
- Archived: no longer maintained since 2026-09-28; you must verify compatibility yourself after upgrading DSH, Cordis, or dsh-mnemon.
- Permissions and security: the plugin runs with the current dsh process’s permissions; before installing via
file:, please read the source code,cordis.patch.yml, and the MIT license to confirm there are no extra network or file accesses. - Not responsible for writing memories: when dsh-mnemon is not installed or the memory files are empty, this plugin has no content to project.
- Profile scope: the installation command explicitly uses
--profile web; behavior with other profiles should refer to your local DSH documentation.
Conclusion¶
dsh-hot-memory’s value lies in: given Mnemon already has USER.md / MEMORY.md, using a minimal patch to project memories into every session’s systemPrompt, while avoiding the constraint of dsh-mnemon’s lifecycle gating on injection. Since the repository is archived, it is more suitable as a reference for understanding the “memory injection patch” approach, or for short-term use in a frozen-version environment.
- Directory page: https://www.skillhub.cn/plugins/Ln1m/dsh-tool-hot-memory
- GitHub: https://github.com/Ln1m/dsh-tool-hot-memory