dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Long-term memory for DeepSeek Harness: memory_save/recall/list tools + a sidebar panel visualizing what the agent remembers about you
当前版本 Current version:0.1.1(见 package.json)
DSH 记忆面板:为 DeepSeek Harness(
dsh)提供跨会话持久记忆的插件——记忆以纯 JSON 存于本机~/.dsh/memory.json,数据不出本机;Web 侧边栏可视化「代理记住了你什么」。
核心特性:
memory_save 保存 · memory_recall 关键词召回 · memory_list 分类列表 · memory_delete 删除单条 · memory_clear 一键清空(需显式确认)memory.json 自动备份为 memory.json.corrupt-<ts> 后继续,不丢数据~/.dsh/memory.json,不联网、不上传Long-term memory for DeepSeek Harness (dsh): durable, cross-session memory tools plus a sidebar panel that shows what the agent remembers about you.
memory_save — store a memory (creates or updates by key)memory_recall — search memories by keyword or categorymemory_list — list all memories, optionally filtered by categorymemory_delete — delete one memory by its exact keymemory_clear — delete ALL memories (requires confirm: true)Memories live in ~/.dsh/memory.json — plain JSON on your machine, nothing leaves it.
memory_save calls queue instead of clobbering each othermemory.json is backed up to memory.json.corrupt-<ts> before continuing fresh — no silent data lossmemory_list works with or without category_filtermemory_delete removes one memory; memory_clear empties the whole store after an explicit confirm: true/api/*# web profile (interactive GUI)
dsh plugin --profile web add dsh-memory-panel
# headless profile (one-shot runs) — same bundle, separate install
dsh plugin --profile headless add dsh-memory-panel
Install from GitHub directly (no npm needed):
dsh plugin --profile web add github:x2it/dsh-memory-panel
Restart dsh web after installing, then open the sidebar "记忆" button.
dsh --profile web --dump-config | grep memory-panel
The agent should now list memory_save / memory_recall / memory_list among its tools.
agent tools (memory_save/recall/list)
│ ctx.tools.register
▼
host plugin (lib/index.js)
│ GET /api/memory (ctx.webServer)
▼
client panel (lib/client.js, sidebar.footer.action slot)
One plugin row (memory-panel) carries both halves: the host loader imports main, the web client loads ./client.
npm install
npm run typecheck # tsc --noEmit
npm run build # esbuild → lib/index.js + lib/client.js
npm pack # tarball
Install the local tarball to test before publishing:
npm pack
dsh plugin --profile web add ./dsh-memory-panel-0.1.1.tgz
src/index.ts # host half: memory tools + /api/memory endpoint
src/client/index.tsx # client half: sidebar memory panel
lib/ # built artifacts (generated by build.mjs)
cordis.patch.yml # bundle patch (dsh.bundle.patch)
The /api/memory endpoint has no authentication — bind dsh web to localhost or a trusted network. The plugin stores memory content in plaintext at ~/.dsh/memory.json; do not save secrets you would not write to a local file.
MIT © 2026 知行工作室 · https://w3b.pub/ · support@w3b.pub