Introduction¶
DeepSeek Harness (DSH) conversation context has a length limit, and long-term project conventions, preferences, and learned experiences often need to be reused across multiple conversations or after restarts. Existing approaches rely on manual organization or external notes, which are prone to omissions and inconsistencies. DSH Durable Memory provides local, cross-session persistent memory capabilities, enabling the model to automatically retrieve and reuse these memories in new sessions.
Plugin Positioning¶
This is a local-scoped long-term memory plugin that supports project-level and global scopes. It persists data through DSH’s native storage domain and provides Chinese word-segmentation-based retrieval, automatic recall, updates, and version protection. The plugin is developed by maintainer oversize-shoes, released under the MIT License, and v0.2.0 is currently a preview release.
Core Capabilities¶
- Persistent Storage: Memories are saved through DSH’s native storage domain, stored in local JSON files. The default path is
$DSH_HOME/storages/durable_memory.json(typically%USERPROFILE%/.dsh/storages/durable_memory.jsonon Windows). - Scope Separation: Project scope is bound to the current session’s working directory; global scope is shared within the same storage domain.
- Retrieval Methods: Chinese uses bigram segmentation, and English uses keyword search. No external embedding service or additional API key is required.
- Operation Tools: Provides tools for saving, updating, deleting, listing, and searching. Supports tags, pinning, TTL (time-to-live), and deduplication checks.
- Version Protection: Update operations depend on the current version number to prevent concurrent write conflicts.
- UI Panel: View, edit, and delete memories through DSH’s Memory panel. Supports filtering by project/global, keyword search, and status filtering.
Environment Requirements¶
- DSH: 0.2.1-rc.2 or 0.2.2-rc.5
- Node.js: 24.9.0 or higher
- Package Manager: The DSH installer requires pnpm to be available
- Configuration: Use a Web or custom Profile, providing agents, tools, systemPrompt, and storageDomain
It is recommended to check node --version, dsh --version, and pnpm --version before installation.
Installation and Activation¶
Install from GitHub¶
dsh plugin --profile web add "github:oversize-shoes/dsh-durable-memory#v0.2.0"
In DSH’s plugin add dialog, use the same github:oversize-shoes/dsh-durable-memory#v0.2.0 source (replace web with the actual Profile name in use). After installation, restart the backend, refresh the browser, and open a new conversation to confirm the durable_memory tool is available.
Install from Release Package¶
- Download
dsh-durable-memory-0.2.0.tgz: Release page. - In DSH, select Plugins → Add plugin, and choose the file or enter the local path.
- Restart the backend after installation is complete.
For the Web Profile, you can use the Release URL directly:
dsh plugin --profile web add "https://github.com/oversize-shoes/dsh-durable-memory/releases/download/v0.2.0/dsh-durable-memory-0.2.0.tgz"
Typical Usage¶
Save a Project Memory¶
Invoke the durable_memory tool in a conversation to save a project convention or preference. For example:
Save a project memory: this project's test phrase is "blue-whale-731". Report the saved ID.
Retrieve in a New Session¶
Create a new conversation (using the same working directory) and invoke durable_memory to search for the project memory:
Search durable_memory for this project's test phrase.
The expected result returns blue-whale-731. You can then update it to blue-whale-732, list memories, and delete the test entry. Updates and deletions require the ID and the current version number.
Verify Scope Isolation¶
- Save a memory in a Project A session, then create a Project B session with the same working directory to verify that only Project A’s memory is retrievable.
- Save a global memory in a Project A session (set
scope=global), then retrieve it in a Project B session to confirm the global memory is visible.
Configuration¶
Set the following fields in the plugin’s loader line (a restart is required after changes, per DSH’s prompt):
| Field | Default | Description |
|---|---|---|
| enabled | true | Whether to enable the plugin |
| maxEntries | 2000 | Total capacity (including expired entries) |
| maxContentChars | 2000 | Maximum character count per entry |
| recallChars | 6000 | Context budget for automatic recall (including title) |
| recallLimit | 8 | Maximum number of search/recall results |
Saving supports tags, pinned, and ttlDays (0 means never expires). When total capacity is reached, new saves will be rejected. The list command includes expired entries, which can be used for cleanup.
Notes¶
- This plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license before installation.
- Memories are stored locally only and are not shared between different DSH instances (different Profiles or different installations).
- Retrieval relies on keywords and Chinese bigram segmentation, so synonyms may not be matched.
- Do not store sensitive credentials or keys. Even with deletion and expiration mechanisms, they may still exist in history and backups.
- Updates and uninstallation do not automatically clear saved memory files. Back up before upgrading.
Summary¶
DSH Durable Memory provides DeepSeek Harness with local, cross-session memory capabilities, supporting project-level and global scopes. Through Chinese word-segmentation-based retrieval and version protection, it helps the model maintain context continuity across multiple conversations. It is suitable for scenarios that require long-term accumulation of project conventions, preferences, and lessons learned.
- Directory page: https://www.skillhub.cn/plugins/oversize-shoes/dsh-durable-memory
- GitHub: https://github.com/oversize-shoes/dsh-durable-memory