dsh-mnemo
Manifest validCross-session long-term memory for DeepSeek Harness: pinned rules injected every turn, the rest recalled by IDF-weighted keyword evidence, fact-key dedup, plain JSON storage, and a settings page to ed
dsh-mnemo
给 DeepSeek Harness 的跨会话长期记忆。规则和坑每轮注入,其余按「词证据」召回;数据是明文 JSON,人能看、能改、能备份。
装
dsh plugin --profile <你的 profile> add dsh-mnemo
或在 设置 → 插件 → 插件市场 里搜索安装,然后重启宿主。
装好后在 设置 → 鲸忆 里管理。
它记住什么
| 层 | 内容 | 生命周期 |
|---|---|---|
全局 global | 硬规则、坑、偏好、环境事实 | 永久;规则每轮注入 |
项目 project:<目录名> | 某个工作区的固定事实 | 跨会话 |
会话 session:<id> | 只属于当前会话的结论 | 随会话 |
- 规则钉住:
rule/pitfall或pinned的条目每轮注入,永不衰减 - 其余会淡忘:fact 365 天、task 120 天、event 60 天的半衰期,但显式检索仍查得到
- 事实键:
对象.方面同键只留最新,旧的标「已被取代」而不是删除
三个工具
| 工具 | 用途 |
|---|---|
memory_save | 记一条:kind、pinned、factKey、supersedes、scope |
memory_recall | 按关键词查;不给 query 就按重要度列最近的 |
memory_forget | 软删除(文件里仍保留) |
数据
| 路径 | 内容 |
|---|---|
~/.dsh/mnemo/memory.json | 真源,明文 JSON |
~/.dsh/mnemo/MEMORY.md | 人读镜像(只读) |
~/.dsh/mnemo/mnemo.log | 加载/错误日志 |
设计取舍
- 注入走
systemPrompt.context(追加在对话末尾),不动系统提示词,不破坏 prompt 缓存 - 召回用 IDF 加权覆盖率:专有词权重高、口水词权重低,宁可漏也不被常见词骗进来
- 只依赖 Node 内置模块:不 import
@deepseek-ai/*,不会因为 peer 依赖缺失整条插件不激活
许可
MIT
Comments
Loading…
Similar plugins
by menotbobbybrown
Persistent long-term memory for DeepSeek Harness: a JSON store of typed entries (fact, preference, entity, rule, episodic) exposed as the memory_remember and memory_recall agent tools, with recall ran
★ 0
MIT
TypeScript
Sep 8, 2026
dsh plugin --profile web add @modelnorth/dsh-plugin-memoryby guntur-d
Persistent cross-session memory plugin for DeepSeek Harness: workspace-scoped durable facts with memory_write/list/search/forget tools and bounded prompt injection
★ 0
TypeScript
Aug 14, 2026
dsh plugin --profile web add @guntur-d/dsh-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 Amengclass
A persistent, model-editable memory/notes store for DeepSeek Harness. Adds memory_set / memory_get / memory_delete / memory_search tools backed by the built-in storage domain (ctx.storageDomain) so facts survive across sessions.
★ 0
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add dsh-memoryCross-session memory for DeepSeek Harness: list earlier sessions and load one on demand, so a new session can see what was already done without polluting the current context.
★ 0
dsh plugin --profile web add dsh-recallby CuteSamurai24
Small file memory for DeepSeek Harness. The model writes markdown, the host injects it.
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-md-memory