dsh-memory
Manifest valid★ 5DeepSeek Harness Cross-Session Memory Library: Three tools – memory_remember/recall/forget – plus system prompt injection for persistent agent memory
dsh-memory-vault
Cross-session memory vault for DeepSeek Harness (DSH).
Every DSH session starts from zero. dsh-memory gives your agents a persistent second brain: facts, preferences, decisions, and project notes survive across sessions and are recalled automatically.
- 3 model tools —
memory_remember/memory_recall/memory_forget - Per-turn prompt injection — the most recent entries are injected into every system-prompt assembly, so the agent starts each turn already aware of stored context
- Durable storage — records live in a storage domain (
dsh_memoryunit, json backend by default; unit names are snake_case perUNIT_NAME_RE) - Browser management page — a "记忆库 / Memory" page in Settings to browse, add, and delete entries
Install
dsh plugin --profile web add dsh-memory-vault
The dsh.bundle manifest wires the dsh-memory row into the profile automatically. To install by hand instead:
npm install dsh-memory-vault
then add a row to your profile cordis.yml (or cordis.patch.yml):
- id: dsh-memory
name: dsh-memory-vault
Usage
Tell your agent to remember things, or do it yourself:
"记住:这个项目的部署目标是 Windows,测试命令是
pnpm test。"
The agent calls memory_remember with optional tags:
memory_remember(content="User prefers Windows deployment; test command is `pnpm test`", tags=["project:demo", "user"])
When context from an earlier session matters, the agent calls memory_recall(query="Windows deploy") — entries are scored by tag matches (×2) and content matches, newest first. Wrong or obsolete facts are removed with memory_forget(id="m-...") or memory_forget(tag="project:demo").
Configuration
| Key | Type | Default | Meaning |
|---|---|---|---|
injectLimit | int | 8 | Max entries injected per system-prompt assembly |
recallLimit | int | 10 | Max entries returned by memory_recall |
- id: dsh-memory
name: dsh-memory-vault
config:
injectLimit: 12
recallLimit: 20
Browser page
Settings → 记忆库 (Memory). Lists all entries newest-first with tags and timestamps; quick-add and delete buttons.
The page talks to the host half through the harness webServer service — same-origin JSON endpoints (GET/POST /dsh-memory/entries). The dynamic-plugin prototype used the sandbox-only harness.handle/host.call package RPC; the published package uses the public route so it works in any deployment.
Development
The plugin is one cordis package:
lib/index.js— host half: domain, tools, prompt injection, RPC handlerslib/client.js— web half: settings page
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.1 | — | — |
| 0.1.2 | — | — |
| 0.1.3 | — | — |
| 0.1.4 | — | — |
| 0.1.5 | — | — |
Comments
Loading…
Similar plugins
by Ykls53
给 DeepSeek Harness 的三层记忆:常驻事实 + 会话摘要 + 全文检索。注入不花任何模型调用,写回用你当前选的模型。
★ 4
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-memory-injectby sikwoxy
DeepSeek Harness 插件:跨会话持久记忆(Hermes 式)
★ 4
↓ 104/wk
MIT
TypeScript
Aug 14, 2026
dsh plugin --profile web add dsh-tool-memoryby 1304836815
DSH 会话级记忆插件:收尾提醒 + MEMORY.md 记忆索引维护 + 实时对话日志 + LLM 摘要压缩,配置面板在 设置→插件。Session memory for DeepSeek Harness.
★ 0
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add @dsh-external/dsh-auto-memoryby guyuefangyuanl
Cross-session persistent memory for the DeepSeek Harness: a model-facing memory tool, an always-on index section, and a bundled maintenance skill.
★ 3
↓ 370/wk
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add dsh-memoryby tluoluo
Persistent memory for DeepSeek Harness: per-conversation notes, selective injection, project memory, semantic Vault search + automatic retrieval.
★ 4
↓ 115/wk
MIT
TypeScript
Aug 16, 2026
dsh plugin --profile web add dsh-persistby chenkezhen480
Semantic long-term memory for DeepSeek Harness: embedding-based retrieval over a persistent cross-session memory store, with model-facing tools, proactive per-question recall, automatic conversation summarization, and auto-selected embedding provider (apiKey present → API, otherwise local).
★ 0
Apache-2.0
TypeScript
Aug 17, 2026
dsh plugin --profile web add dsh-plugin-semantic-memory