Preface¶
DeepSeek Harness (DSH) adopts a plugin architecture. In DSH conversations, the context window is limited, and new conversations typically mean a reset, with the AI often not remembering previous agreements or preferences. This plugin configures a purely local “memory notebook” for DSH, storing data in a JSON file on the local machine without relying on cloud services or API keys.
Core Features¶
- Pure local long-term memory: Data is stored in a local JSON file—no internet connection, no large model invocation, no API key required.
- Cross-conversation and cross-project memory: Supports memory retrieval across sessions and projects.
- Four tools: Provides
memory_save,memory_search,memory_list, andmemory_forget. - Settings page management: Directly view, add, edit, and delete memories on the settings page, and adjust search weights.
- Markdown import/export: Supports exporting and importing the memory repository.
Installation¶
Use the official command to install:
dsh plugin --profile desktop add github:2132774831/dsh-memory-plugin
The
--profile desktopin the installation command should be modified according to the actual profile name being used (viewable viadsh plugin list).
Typical Usage¶
The plugin provides four tools for CRUD operations on memories:
memory_save "Remember a conclusion"
memory_search "Search memories by keyword"
memory_list "List recent memories"
memory_forget "Delete a memory"
Storage & Configuration¶
Memory data is saved to ~/.dsh/dsh-local-memory.json, and the configuration file is at ~/.dsh/dsh-local-memory-config.json.
- Data storage: Plain-text JSON that can be directly opened, modified, or backed up using an editor.
- Chinese word segmentation: Chinese text is segmented by two-character combinations (e.g., “鉴权设计” is split into “鉴权”, “权设”, “设计”).
- Project tags: When writing memories, tags are automatically applied based on the project path by identifying the
.gitdirectory (searching upward level by level; if a remote is found, owner/repo is used).
Search Weights¶
Search scoring weights can be adjusted in the settings page or configuration file, including scores for text match, tag match, exact sentence match, etc., to control search accuracy.
Notes¶
- The plugin slot has additive semantics and cannot intercept the system’s native delete action.
- It cannot automatically read entire conversations to summarize (this would require invoking a large model, which contradicts this plugin’s purely local selling point).
- There is a limit on the number of memories; once exceeded, the oldest ones are automatically discarded.
Summary¶
This plugin addresses DSH’s need for cross-conversation memory while maintaining its purely local operation characteristic.
Home: https://www.skillhub.cn/plugins/2132774831/dsh-memory-plugin
GitHub: https://github.com/2132774831/dsh-memory-plugin