Introduction

DeepSeek Harness (DSH) uses a plugin-based architecture. When building agents that require long-term memory capabilities, extra logic development or integration with an external memory service is usually required. The runfali/dsh-mem0-plugins plugin connects to a self-hosted mem0-graph server to provide persistent memory capabilities for the DSH Web Profile: it automatically retrieves relevant memories before answering and automatically converts post-conversation content into facts for write-back.

Plugin Scope

This plugin is a memory plugin for DeepSeek Harness, maintained by user runfali, and is released under the MIT License.

Core Features

The plugin provides the following capabilities:
* Persistent memory: Stored based on the DeepSeek Harness Web Profile.
* Automatic recall: Retrieves relevant memories before answering using the mem0_search tool.
* Automatic write-back: Automatically writes conversation content into the memory store after the conversation ends.
* Toolset: Provides four tools: mem0_search, mem0_add, mem0_update, and mem0_delete.
* Tidal Coalescing: Merges short conversations before write-back to reduce server requests.
* Content sanitization: Replaces sensitive information (such as API keys) before upload.
* Feedback loop: Supports an Evolve feedback loop for assessing the effectiveness of memories.
* Forced recall: Provides a forceRecallStep configuration to ensure that a recall step is executed before every response.

Installation and Activation

To install the plugin, use the official command to add the local path to the Web Profile.

dsh plugin --profile web add /path/to/dsh-mem0-plugins

To uninstall it, use:

dsh plugin --profile web remove dsh-mem0-plugins

Typical Usage

After installation, configure the connection parameters to connect to your self-hosted mem0-graph server.

  1. Connection configuration: Set the Host address, for example http://127.0.0.1:8888.
  2. Distillation model configuration: Configure the model used for long-query distillation, for example Qwen3.5-9B.
  3. Authentication configuration: If the server has authentication enabled, configure the Distill ApiKey.
  4. Tool invocation: During conversation, the agent automatically uses the mem0_search tool for semantic search.
  5. Timeout configuration: It is recommended to configure distillTimeoutMs to prevent request stalls.

Dependencies and Considerations

  • Dependencies: The plugin depends on a self-hosted runfali/mem0-graph server and does not support Mem0 Cloud or the official mem0 OSS REST/SDK API.
  • Environment requirements: Node.js >= 22 and DeepSeek Harness versions between 0.1.2-alpha.3 and 0.1.6 are required.
  • No source modifications: The plugin does not modify DSH source code and runs as a Bundle plugin.
  • License: MIT License.

Summary

This plugin provides DSH agents with a zero manual intervention persistent memory solution. By connecting to a self-hosted mem0 service, it enables automatic recall and write-back, making it suitable for scenarios that require maintaining contextual continuity in conversations.