dsh-plugin-memory: DeepSeek Harness Long-Term Memory and Knowledge Graph Plugin

dsh-plugin-memory is a plugin for DeepSeek Harness (dsh) designed to address the lack of long-term memory in AI agents. It uses a persistent knowledge graph to store user preferences, facts, and coding conventions across sessions, and supports both semantic and keyword-based retrieval. The plugin offers CLI management and native integration with the Cordis framework, automatically exposing memory read/write tools to agents. Through simple commands or API calls, users can build user profiles and historical knowledge bases for agents, enabling consistent context across multi-turn conversations.

Read More
dsh-plugin-memory

`dsh-plugin-memory` is a plugin for DeepSeek Harness (DSH), designed to transform conversations into persistent knowledge through a Session Distillation mechanism. It automatically collects conversation content, distills it into structured JSON data, and persists it to a local directory, then registers it as a `memory-<slug>` skill for subsequent invocation. It supports automatic merging of similar entries and provides a `ctx.memory` service API for memory management. Installation options include installation via npm, installation via GitHub, or installation from a local tarball. Configuration options allow users to control automatic distillation, storage paths, and token limits. Note that the plugin currently lacks security policies and scope isolation, and all sessions share a single memory store.

Read More
dsh-plugin-memory: Cross-Session Long-Term Memory for DSH Agents

When developing agents using DeepSeek Harness (DSH), there is an unavoidable issue: sessions lack memory. Users' preferences, project backgrounds, and previous decisions need to be re-stated every time a new session is opened. There are two common approaches to addressing this. One is to write memory into skill files and rely on the model to load them proactively—this is a "soft guarantee"; if the model forgets to invoke it, the memory won't be loaded. The other is to perform retrieval every time a query is made—memory is always used on-demand, lacking continuous accumulation. `dsh-plugin-memory` takes a third path: forcibly injecting the memory boot block into the runtime context of the system prompt at the beginning of a session to create a "hard guarantee." The mechanism and usage of this plugin are introduced below. # What is dsh-plugin-memory

Read More