Preface¶
When deploying multiple conversational applications locally, you often run into this problem: long-term information organized in WorkBuddy is not known when you switch to Qoder CN or DeepSeek Harness, requiring you to re-enter or re-prompt the AI to remember it. This fragmentation not only increases communication overhead but also leads to duplicated effort and inconsistent memory.
The DSH plugin dsh-unified-memory integrates a shared long-term memory and session synchronization capability across these three applications. Through a unified storage and synchronization mechanism, it allows different applications to read each other’s context, thereby reducing redundant input and maintaining information consistency.
What It Is¶
This is a plugin written for DeepSeek Harness (DSH), developed by maintainer wangpeng2015. It provides a unified long-term memory and session synchronization capability for WorkBuddy, Qoder CN, and DSH, with the core goal of enabling these three applications to share a single fact base and historical context during conversations.
Core Features¶
- Unified memory & sync: The three applications share the same long-term memory store (default path
~/.dsh/unified-memory/store.json), supporting one-click bidirectional synchronization. - Quick sync panel: Click “⇄ Unified Memory” on the right side of any chat input box to open a panel for syncing, quickly memorizing a phrase, or viewing recent entries.
- Session import: Via the “Sessions” tab, bring in historical conversations from Qoder CN and WorkBuddy into the current DSH conversation as context to continue the discussion.
- Model tool: Provides the
unified_memorymodel tool for direct use within conversations.
Installation & Enablement¶
In DSH, go to “Settings → Plugins → Add Plugin” and select this directory:
E:\selfwork\dsh-unified-memory
After installing and enabling, refresh the page. The “Unified Memory” entry will appear in the settings sidebar. On first activation, it will automatically import existing memories from WorkBuddy and Qoder.
Usage¶
- Open “Settings → Unified Memory”, click “Sync Now”, and verify the status and entry counts across all three applications.
- Or, in any chat, click “⇄ Unified Memory” to the right of the input box, go to the “Memory” tab, and click “Sync Now” to complete a bidirectional sync in one click. The button will display “✓ Synced / N new entries / Sync failed”.
- The same panel’s “Memory” tab also allows you to quickly memorize a phrase; the “Sessions” tab is used to pick up historical conversations from the other two applications.
- After that, interact with DSH as usual; when it identifies long-term valid information, it will save it on its own, and you will see these entries the next time you open the other two applications.
- To make memory entries more precise, simply say “Remember: …” in the conversation, or manually add entries in the settings page.
- The other two applications require starting a new conversation to re-read the memory file.
Session Synchronization¶
Click “⇄ Unified Memory” on the right side of the input box, switch to the “Sessions” tab, and you will see a list of recent conversations from Qoder CN and WorkBuddy (title, message count, timestamp). Click one to select it from the floating panel; it will format that history into context and fill it into the input box. After confirming, press send, and the current conversation will continue from where that session left off. If the content is too long, only the most recent 9,000 characters are retained, with a note at the beginning indicating how many entries were omitted.
- The list is sorted in descending order by update time, with the most recent conversations at the top.
- The search box at the top supports space-separated tokens and fuzzy matching (by title and project path), with “matched count / total count” displayed on the right.
- Only text messages are read; thinking, tool calls, and system prompts are excluded.
- The database and log files are opened in read-only mode; data from the other two applications will not be modified.
- The content filled into the input box is treated as a draft and can be freely edited or deleted before sending.
Use Cases & Notes¶
- Suitable for developers and users who need to maintain information consistency and reduce redundant input across multiple local conversational applications.
- The plugin runs with the current DSH process’s permissions. It is recommended to review the source code and license (MIT) before installation.
- Session import only reads the text content of historical conversations and does not modify data from the other two applications.
Summary¶
dsh-unified-memory enables WorkBuddy, Qoder CN, and DeepSeek Harness to share context through a unified memory and session synchronization mechanism. For users accustomed to switching between multiple applications, it can reduce redundant input to a certain degree and improve information consistency.
- Plugin directory: https://www.skillhub.cn/plugins/wangpeng2015/dsh-unified-memory
- GitHub: https://github.com/wangpeng2015/dsh-unified-memory