面向「纯文件(markdown 卡片 + git)长期记忆库」的只读增强插件:memory_find 检索工具、一小段受预算约束的记忆库摘要注入,以及带概览/健康/开关的设置页。
安装
# Release 预构建包
dsh plugin --profile web add "https://github.com/WYR-233/dsh-memory-lite/releases/latest/download/dsh-memory-lite.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:WYR-233/dsh-memory-lite
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
Read-only enhancer for a file-based long-term memory library (markdown cards kept in git) in DeepSeek Harness (DSH).
MIT · zero runtime dependencies · host + settings page · 中文说明见文末
What it does
| Feature | Detail |
|---|---|
memory_find tool |
Searches the library's cards: CJK by adjacent bigrams, Latin by whole words, weighted title ×6 / keywords ×4 / body ×1. Returns card paths + matched terms + a snippet, then the agent opens the card with read. |
| Memory digest injection | Appends one small systemPrompt section (default ≤900 chars, configurable): where the library is, which topics exist, and "search it before guessing". |
| Settings page | A "Memory library" section under DSH Settings: card count / body size / topics / last update / longest card, health-checker status, and toggles (digest on-off, tool on-off, digest budget, search limit). |
What it deliberately does NOT do
- Never writes to the library: no card edits, no commits, no pushes. For automation (auto-commit, periodic health checks) pair it with your own scheduled script.
- Never rewrites conversation history — it only appends one prompt section.
- No database and no cache; the only state is one small JSON config file.
Requirements
- A memory library directory with an index file (default
INDEX.md) and a search script (defaulttools/memory-find.mjs). Any script speaking this contract works:node <script> --stdin --top <n>(query arrives on stdin) or--stats(library overview). - DSH with
@deepseek-ai/cordisresolvable in the profile (a normal DSH install).
Install
dsh plugin --profile web add github:WYR-233/dsh-memory-lite
Then restart that profile.
Configure
Point it at your library — plugin config in the profile's cordis.patch.yml:
- id: memory-lite
config:
memoryRoot: /absolute/path/to/your-memory-library # or set env DSH_MEMORY_ROOT
stateDir: memory-lite # optional, relative to $DSH_HOME
searchScript: tools/memory-find.mjs # optional
indexFile: INDEX.md # optional
or simply export:
DSH_MEMORY_ROOT=/absolute/path/to/your-memory-library
Runtime toggles (digest on/off, tool on/off, budget, search limit) are changed in the settings page
and stored in <stateDir>/config.json — written atomically, and a parse failure falls back to
defaults instead of silently wiping values.
Optional: health panel
The Health card reads a log file when MEMORY_LITE_HEALTH_LOG points at one, expecting lines like:
[2026-01-01 10:00:00] issues=0 notes=2
issue: <text>
note: <text>
Any scheduled checker writing that shape shows up in the panel automatically.
How it fits together
This plugin is the thin "read fast" layer. The reference setup it was extracted from keeps memory as plain markdown cards in a git repo, plus an index of topics, a search script, optionally a periodic commit/health guard, and a rendered website for browsing the same cards. Because the store is plain files, everything stays human-readable, diffable and editable — that is the whole point.
中文说明
只读的记忆库增强插件:给 DSH 加一个 memory_find 检索工具、开场注入一小段记忆库摘要(默认 ≤900 字符,
可调),并在设置里加一栏「记忆库」侧边栏(概览 / 健康 / 开关)。
- 只读:不写卡片、不 commit、不 push(自动化请搭配你自己的定时脚本)
- 不改会话历史:只追加一段 systemPrompt
- 零依赖、无数据库:唯一状态是一个小配置文件
装好后把 memoryRoot 指到你的记忆库目录(或设环境变量 DSH_MEMORY_ROOT)即可;开关在设置页改,
即时生效,配置存在 <stateDir>/config.json(原子写,坏了回默认,不静默清空)。
License
MIT
链接
同类插件
volcengine/OpenViking#examples/dsh-memory-plugin★ 38018
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
vectorize-io/hindsight#coding-agents★ 23911
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
agentscope-ai/ReMe#dsh★ 3488
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2623
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 846
读取本机上其他二十二个编程智能体已经写下的会话文件——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)。
adoresever/graph-memory★ 626
DeepSeek Harness 的可追溯、可检索跨会话记忆:把对话知识沉淀为带类型的图节点(任务/技能/事件)与关系边。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。