AI Agent Hub
Back to plugins
🧠

dsh-agent-memory

Memory Updated 2026.09.16

Run the following command in DeepSeek Harness:

dsh plugin install BPTumbleweed/dsh-agent-memory

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install BPTumbleweed/dsh-agent-memory in your terminal to install the plugin; the full source code is available at https://github.com/BPTumbleweed/dsh-agent-memory.

About this plugin

Every DeepSeek Harness conversation is stateless by design—the agent remembers nothing between turns, and users find themselves re-explaining context over and over. dsh-agent-memory closes that gap with zero runtime dependencies: it hooks into session/event to capture user messages in real time, stores them under the local memory directory, and then injects per-session memory before the latest user message via agent/pre-step, giving the agent a 2 KB window of prior context without any manual copy-paste.

Beyond injection, the plugin surfaces a live Memory tab inside the Web UI that shows capture status, session index sizes, and preference digests at a glance. Ten read-only data endpoints let external tools query the evidence store without arbitrary-path exposure. On the safety side, every write passes through a redaction layer that strips bearer tokens, cookies, JWTs, private keys, and other secret patterns; all routes enforce the browser-trust fence (fail-closed when unavailable), and a circuit breaker isolates any single capability failure so the DSH main loop is never affected.

It is best suited for DSH users running multi-turn, context-heavy workloads—code review, architecture design, long-form writing—where losing prior context each turn is genuinely costly. The plugin stays out of the global-injection path managed by the official agent-instructions, writes only under its own store root, and survives DSH upgrades with a simple re-install, requiring zero changes to DSH configuration.

Use Cases

  • Maintaining context continuity across multi-turn conversations without manual re-explanation
  • Reviewing capture status and session index in the Web UI Memory tab in real time
  • Preserving discussion history for long-form writing or code review with automatic secret redaction

Best For

  • DSH users running context-heavy multi-turn workloads like code review or design
  • Agent developers who need per-session memory injection without touching global config
  • Plugin users who prioritize zero runtime dependencies and one-command upgrade recovery