Introduction¶
Every time a new session starts in DeepSeek Harness (DSH), the context resets. This requires you to re-explain background information, project decisions, or previous agreements. dsh-keepsake solves this problem by automatically extracting conversation content and storing it locally. This allows for automatic injection in future sessions, eliminating the need for repeated explanations.
What is this?¶
dsh-keepsake is a memory plugin for DSH, maintained by axuan-1314. It is responsible for automatically extracting valid information from conversations (such as personas, project descriptions, decisions, etc.) and persisting it to disk. In subsequent conversations, it automatically injects these memories into the session, allowing the model to “remember” previous context. The plugin comes with a local “Memory Management” panel where you can view, edit, delete memories, or configure personas.
Core Features¶
Automatic Extraction & Injection¶
The plugin automatically determines at the end of each conversation turn whether there is content worth recording. If extraction is successful, the content is injected into subsequent conversations in the form of four segments: “Persona,” “Global Memory,” “Project Description,” and “Project Index.” This is typically implemented via the plugin’s dedicated user message channel.
Local Memory Management Panel¶
After installation, a “Memory” block appears in the DSH settings page. Click “Open Memory Management” to enter the panel:
* Browse & Edit: View all memory entries, with support for modifying titles, descriptions, and body text.
* CRUD Operations: Support for adding, deleting entries, and importing/exporting memories.
* Project Overview: View memory counts and status for each project organized by workspace.
Semantic Recall (Optional)¶
By configuring an embedding service, the plugin supports semantic retrieval of memories based on content. When enabled, the model can retrieve the most relevant memory entries when answering questions.
Pipeline Health & Backup¶
- Health Monitoring: The panel displays the health status of the extraction pipeline, including statistics on failure reasons and details of recent failures.
- Automatic Backup: Before resetting, importing, or clearing memories, the plugin automatically creates a full backup to support rollbacks.
Installation & Activation¶
The plugin supports three host profiles (web / headless / desktop). The installation command is as follows:
dsh plugin --profile web add https://github.com/axuan-1314/dsh-keepsake/archive/refs/tags/v0.3.1.tar.gz
After installation is complete, simply enable the memory feature via the DSH settings page to start using it.
Data & Privacy¶
- Zero Dependencies: No
npm installrequired; no runtime dependencies. - Local Storage: All data is stored locally in
~/.dsh/memory/and is not uploaded to remote servers. - Permission Isolation: The management panel and API are accessible only from the local machine.
- Logging: Extraction failures are logged to
extraction-errors.log.
Notes¶
- Manual Reinstallation Required: Automatic updates are not supported; you must manually reinstall new versions.
- Data Security: Data is stored locally only; please ensure your local environment is secure.