DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-memory

z

dsh-memory

Manifest valid

Claude-compatible memory for DeepSeek Harness: a user-chosen memory directory with MEMORY.md index and topic files, the memory tool, and a settings page

UI (client)hasBundlePatch

dsh-memory

English | 中文

Background: DeepSeek Harness

DeepSeek Harness (dsh) is the open-source agent harness from DeepSeek AI, where nearly every capability is a plugin on Cordis. It is in developer preview and iterating fast, so expect compatibility-breaking changes (docs, 0.1.7-alpha.*); this plugin is a standalone third-party package that resolves @deepseek-ai/* from the running host.

The problem this plugin solves

A session forgot everything between runs; this plugin gives it a Claude-shaped memory directory (MEMORY.md plus one file per memory), a memory tool, and a settings section.

Screenshots

Screenshots pending — this plugin has no captured UI yet.

Install

npx @deepseek-ai/dsh plugin --profile web add @guowenzhang/dsh-memory

From the npm registry: https://www.npmjs.com/package/@guowenzhang/dsh-memory — restart the host afterwards; local checkouts, git sources and troubleshooting are in AGENTS.md.

Usage

Turn memory on or off

Settings → Memory starts with Enable memory, on by default. It is the master switch: off, no index is folded into new sessions and the memory tool is not registered, and nothing on disk is deleted.

What the memory directory holds

<memory>/
├── MEMORY.md          # Index: one line per memory, no frontmatter, loaded at session start
├── debugging.md       # One memory per file, with frontmatter
└── ...

Index lines:

# Memory Index

## Project
- [build-and-test.md](https://github.com/zhang-guo-wen/dsh-memory/blob/HEAD/build-and-test.md) — build ~45s, Vitest, dev server on 3001
- [architecture.md](https://github.com/zhang-guo-wen/dsh-memory/blob/HEAD/architecture.md) — API client singleton, refresh-token auth

Topic files:

---
name: debugging-patterns
description: Auth token rotation and database connection troubleshooting
metadata:
  type: reference
---

## Auth tokens
...

Choose the memory directory

The Memory directory template field decides where the store lives; ~ is your user home and {project} is the current project's directory name.

FormResolves to
~/.dsh/memory/{project} (default)One subdirectory per project, so projects never share memories
~/.dsh/memoryOne store shared by every project (drop {project} to share)
~/.claude/projects/{project}/memoryThe same store the Use Claude's directory switch selects

{project} is the git repository root of the session's working directory (a .git file — a linked worktree — is resolved back to the main repository), with every character outside [A-Za-z0-9] replaced by -: C:\02-codespace\deepseek-harness becomes C--02-codespace-deepseek-harness, exactly the directory name Claude writes under ~/.claude/projects/.

Choose directory… opens the OS picker when the host composes one and the in-app directory browser otherwise; typing a path into the field works everywhere. Beside it, Directory state reports the directory the current project resolves to, the index's lines and bytes, the file count and total size, and the file cap.

Share Claude Code's own directory

Use Claude's directory is off by default. While it is off, memory lives in your own directory, which you choose and can change at any time; while it is on, there is no directory to choose — the store is Claude Code's ~/.claude/projects/<project>/memory, shared with Claude itself. Turning it back off returns you to the directory you had configured.

Look at another project

Memory is stored per project, so the page shows one at a time: the Directory state block and the MEMORY.md index editor describe whichever project the Project dropdown selected. The list is

  • the current project (the one the host process runs in),
  • every DSH workspace,
  • and, with Use Claude's directory on, every project directory under <claude home>/projects/.

Rows are deduplicated by the directory they resolve to, so one repository appears once, and a single-project deployment shows no dropdown at all. Selecting another project only changes what the page reads and edits: the template is untouched, and every session still resolves its own directory.

Save a memory

Saving takes two steps: write the memory file, then add one pointer line to MEMORY.md — the index holds pointers, not content. The injected instructions state that protocol and the model follows it; you can also edit the index directly in the settings page's MEMORY.md index editor.

Use the memory tool

The model reaches the whole store through one memory tool whose paths are addressed under /memories, and every reply is the tool's own wording — including the failures, which are returned rather than thrown (Error: File … already exists, Please ensure it is unique, …). The view line ceiling, view_range, the two-level directory listing, the hidden-item and node_modules exclusions, /memories addressing, create failing on an existing file, the unique old_str requirement, the 0-based insert_line, delete refusing the root, and rename refusing an existing destination all match Claude's memory tool.

CommandBehavior
viewLists a directory two levels deep, hidden entries and node_modules excluded, or shows a file with line numbers; view_range: [start, end] windows a file
createWrites a new file, creating parent directories; fails when the path already exists
str_replaceReplaces an old_str that must occur exactly once; reports the line numbers when it occurs more than once
insertInserts text at the 0-based insert_line
deleteRemoves a file, or a directory and its contents; refuses the /memories root
renameMoves an entry; refuses an existing destination

What a session loads

The first request of every session folds one instructions message: the memory protocol plus the current MEMORY.md, the first 200 lines or 25 KB — the same bound Claude loads by. The message is recorded on the Session log, so a resumed session is not given it twice; the bound is a load limit, not a trim, and the rest of the index stays on disk, out of the request.

Notes and caveats

  • No modified frontmatter stamp. Claude Code adds an ISO-8601 timestamp when it writes through its normal file tools; this plugin never rewrites what the model wrote.
  • A 1 MiB per-file cap. The largest single memory file this plugin reads or writes is 1 MiB by default.
  • No # append shortcut: current official Claude documentation has none either (interactive mode lists only /, !, @, :, ?). To record something by hand, edit the index in the settings page or have the model use the memory tool.
  • No maintenance of its own: the plugin never summarizes, archives, or deletes a memory — a write happens only when the model calls the memory tool, and a deletion only when the model runs delete or you do it from the settings page.
  • Paths outside the memory directory are refused: ../, absolute paths, and drive-qualified paths never escape /memories, and a symlink inside the directory cannot redirect a write outside it.
  • A new settings section needs a browser hard-refresh (Ctrl+F5), because the page holds the boot graph it loaded; restarting the host alone does not rebuild it.
  • CLAUDE.md instruction files are not this plugin's surface — that is @guowenzhang/dsh-claude-compat. The two are independent and install separately.

License

The plugin itself is Apache-2.0 — see LICENSE and NOTICE. Portions of the plugin contract, the settings section, and the Remote surface are derived from DeepSeek Harness and remain under the MIT License reproduced in NOTICE.

Further reading

Comments

Loading…

Similar plugins

dsh-cc-haha-memory

by yihefeikong-rgb

Persistent memory for DeepSeek Harness: memory read/write/retrieve tools, per-turn auto-recording, project-scoped recall injection and a management UI, with non-destructive Claude Code memory import.

Memory & ContextDevelopment & InfrastructureManifest valid

★ 1

↓ 462/wk

MIT

TypeScript

Sep 13, 2026

dsh plugin --profile web add dsh-memory

by hr98w

融合 Claude Code 的 Auto Memory 与 Codex 的 Session 记忆整理,为 DeepSeek Harness 提供简单、透明、上下文友好的长期记忆。Claude Code-inspired Auto Memory meets Codex-inspired Session consolidation, bringing simple, transparent, and

Memory & ContextManifest valid

★ 26

↓ 250/wk

MIT

TypeScript

Sep 10, 2026

dsh plugin --profile web add @hr98w/dsh-memory

by why913

DeepSeek Harness(dsh)的 MCP / Skill / 记忆管理工具:写入前先连接自检,连不上不写;从 Claude Code / Codex 一键迁移;可装成 dsh 插件,在 Web 里用 /mcp 命令和卡片操作。

Development & InfrastructureManifest valid

★ 5

↓ 49/wk

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add @why913/dshx

by ly028716

Intelligent memory system for DSH - Track user preferences, tool usage, and project context to provide personalized recommendations

Manifest valid

★ 0

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add @ly028716/dsh-memory-plugin

Layered file memory for DeepSeek Harness with workspace-scoped USER/MEMORY notes, background consolidation, and hybrid session recall.

Memory & ContextTerminal & ClientsManifest valid

★ 0

↓ 55/wk

dsh plugin --profile web add dsh-file-memory

by AndyYang12345

PostgreSQL-backed durable memory for DSH agents: MCP memory tools plus a Web panel for reviewing memories and candidates.

Memory & ContextTerminal & ClientsManifest valid

★ 0

Apache-2.0

TypeScript

Aug 20, 2026

dsh plugin --profile web add dsh-butler-memory