Cross-agent experience library: one shared store for multiple agents on the same machine, or a remote team server over HTTP; kb_search / kb_get / kb_upsert tools for DeepSeek Harness. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-shared-memory
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:tanson515/dsh-shared-memory
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
跨 agent 共享经验库,DeepSeek Harness(DSH)插件。把 shared-memory 技能的经验库接进 DSH,支持两种共享方式:
- 本机多 agent 共享:同一台机器上的 DSH / Hermes / opencode / Claude Code 等 agent 共用一份本地库(
kb.py默认库,或插件配置的root),写进去的经验所有 agent 都能查到。 - 远程团队共享:团队用
kb_server.py起一个 HTTP 服务端,各 agentconnect后凭只读/写 token 共享同一份库;插件无需额外配置,kb.py会自动走远程(配置了root则强制本地)。
功能
- 三个工具:
kb_search(开工/遇错检索)、kb_get(取全文)、kb_upsert(写入或替换) - 开工提示:系统提示常驻一句“开工先查、遇错查 pitfall、收尾写一条”
- 设置 → 记忆(三个 tab):
- 概览:共享模式、库大小、条目数、项目图谱、最近条目
- 浏览:按项目 / 类型 / 关键词过滤,点开条目看全文
- 设置:可视化配置本机库目录、连接 / 断开团队服务端、一键导出 wiki
底层调用 shared-memory 技能自带的 kb.py(插件内嵌,纯 Node 子进程调用,无第三方依赖)。
安装
dsh plugin add dsh-shared-memory
或从插件市场(Discover / dshmarket)安装。安装后刷新页面,在 设置 → 记忆 查看状态。
npm 包名
dsh-shared-memory由本项目独占;GitHub 上存在同名第三方仓库,与本项目无关。
配置
插件行支持两个可选配置(cordis.patch.yml 的 config):
- insert:
- id: dsh-shared-memory
name: dsh-shared-memory
config:
root: 'D:\knowledge\_shared-memory' # 库根;省略则用 kb.py 默认(用户配置或 ~/knowledge/_shared-memory)
python: python # Python 可执行文件;默认 python / python3
- 配了
root:强制本机库(即使已 connect 团队库)。 - 不配
root:沿用kb.py的解析——connect过团队库则走远程 HTTP,否则用本机默认库。
团队库
服务端与连接方式见 shared-memory 技能的 README(kb_server.py + kb.py connect)。本机多 agent 与远程团队库可以共存:个人库用 --local/--root 显式指定,团队库默认走远程。
工具
| 工具 | 用途 |
|---|---|
kb_search |
按 project / text / tags / key / type 检索 active 条目,返回 id、标题、key、摘要 |
kb_get |
按 id 或 key 取全文(含被替代旧条正文) |
kb_upsert |
从 frontmatter+markdown 草稿写入;同 project+key 替换旧条目,支持 dry_run / no_replace |
前提
- 本机有 Python(
python或python3) - 一个 shared-memory 经验库(用 shared-memory 技能的
kb.py init --examples创建;团队库由服务端提供)
与 shared-memory 技能的关系
本插件是 shared-memory 技能的可选 DSH 集成层:技能给任意 agent 用,插件只补 DSH 的工具化与自动提示。内嵌的 scripts/kb.py 与技能版本保持同步。
License
MIT © 2026 tanson515
Links
More in this category
vectorize-io/hindsight#coding-agents★ 64488
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
volcengine/OpenViking#examples/dsh-memory-plugin★ 43111
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
MemTensor/MemOS#memos-local-plugin★ 12554
Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.
agentscope-ai/ReMe#dsh★ 3880
Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.
zilliztech/memsearch#MemSearch★ 2977
Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.
vshulcz/deja-vu#extensions/dsh★ 1717
Cross-session memory and context recovery across forty-five other coding agents (45+) on this machine, reading session files they already wrote before install (Claude Code, Codex, Cursor, Windsurf, Trae, Antigravity, VS Code Copilot Chat, opencode, OpenClaw, Hermes, Kimi, Qoder, Cline, Zed, Magpie and more): six tools (deja_recall, deja_session, deja_blame, deja_fix, deja_how, deja_remember), a /deja command, and optional automatic recall injected into runtime context. Local BM25 CLI/MCP index, no LLM, no embeddings, no network (dsh plugin --profile web add dsh-deja).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.