DeepSeek Harness 的长期持久记忆:以 JSON 保存事实/偏好/实体/规则/经历等分类条目,注册为 memory_remember 与 memory_recall 两个 agent 工具;召回按关键词重叠、重要度与访问频次排序。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:menotbobbybrown/dsh-plugin-memory
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Persistent Knowledge Graph & Long-Term Memory Plugin for DeepSeek Harness (
dsh)
dsh-plugin-memory gives DeepSeek Harness agents persistent long-term memory, episodic recall, and user preference tracking across multiple conversation sessions and workspace lifecycles.
Features
- 🧠 Long-Term Fact & Preference Storage: Remember user coding preferences, architectural decisions, and project conventions.
- 🔍 Semantic & Keyword Recall: Ranked relevance matching retrieves the right context for the prompt.
- 💻 CLI Management (
dsh-memory): List, search, add, and forget memories directly from your terminal. - 🧩 Cordis Native: Automatically exposes
memory_rememberandmemory_recalltools to the agent.
Installation
# Add from GitHub
dsh plugin --profile web add "github:menotbobbybrown/dsh-plugin-memory"
CLI Usage
# List all remembered items
npx dsh-memory list
# Remember a new preference or fact
npx dsh-memory add "User prefers TypeScript and strict ESLint rules" --type preference --tags coding,style
# Search and recall
npx dsh-memory search "coding style"
# Delete a memory
npx dsh-memory forget <id>
Programmatic Usage (Cordis API)
import { Context } from 'cordis';
import * as MemoryPlugin from 'dsh-plugin-memory';
const ctx = new Context();
ctx.plugin(MemoryPlugin);
// Save to memory
ctx.memory.remember('Target database is PostgreSQL 16');
// Recall from memory
const results = ctx.memory.recall('database version');
License
MIT © DeepSeek Harness Community
🤝 Contributing
Contributions are warmly welcome! Whether you are reporting an issue, proposing an adapter, optimizing performance, or fixing a bug, please check out our Contributing Guide.
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Commit your Changes (
git commit -m 'feat: add some AmazingFeature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request
📄 License & Community
Distributed under the MIT License. See LICENSE for more information.
Built with 💙 for the DeepSeek Harness community.
链接
同类插件
vectorize-io/hindsight#coding-agents★ 59739
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
volcengine/OpenViking#examples/dsh-memory-plugin★ 41755
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
MemTensor/MemOS#memos-local-plugin★ 12316
DeepSeek Harness 本地记忆插件:分层 L1/L2/L3 记忆,自动沉淀与手动 memos_* 检索工具并存,内置记忆浏览器。
agentscope-ai/ReMe#dsh★ 3767
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2832
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 1428
读取本机上其他四十二个编程智能体已经写下的会话文件(Claude Code、Codex、Cursor、VS Code Copilot Chat、opencode、OpenClaw、Hermes、Kimi、Cline、Zed 等),包括安装之前的历史:提供 deja_recall、deja_session、deja_blame、deja_fix、deja_how、deja_remember 六个工具与 /deja 命令,并可选地把召回结果加入运行时上下文。本地 BM25 索引,不用大模型,不用向量嵌入,不联网(dsh plugin --profile web add dsh-deja)。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。