🧠 The memory that dreams — cross-session memory for DeepSeek Harness. Offline & private, auto-consolidates in its sleep (autoDream), visualized in a memory panel.
See the code
dsh-mneme 是 DeepSeek Harness (DSH) 的跨会话记忆插件。它不只「存得下」,更「管得好」:后台自动去重合并、矛盾先冻结等你裁决、全程可回放审计、默认全离线,还支持导出成人可读的 Markdown。
Mneme(Μνήμη)源自希腊记忆女神 Mnemosyne。她掌管记忆与梦境——正如
autoDream在后台默默巩固你的记忆库。
每次新开对话,AI 都像第一次认识你?
dsh-mneme 给 DeepSeek Harness 装上跨会话记忆。 你聊过的项目、提过的偏好、做过的决定,AI 都记得——即使关掉了窗口,下次打开还在。
| 场景 | 没装插件 | 装了插件 |
|---|---|---|
| 周一聊完项目需求,周三继续 | "能再描述一下你的项目吗?" | "你指的是上周提到的博客重构吗?当时你说想用 Astro。" |
| 告诉 AI 你的编码习惯 | 每轮都要重复交代 | 一次设定,长期生效 |
| 整理大量资料后关窗口 | 资料丢了 | 自动归档,随时检索找回 |
但 dsh-mneme 的可信之处,恰恰在你看不见的后台。下面这些,才是它和「一个会存东西的插件」的本质区别。
scopeEnabled 开启后,每条记忆标注由哪个 agent、在哪个工作区写入;检索时本会话作用域优先(命中加权,他 scope 降权仍可见);strictScope 再进一步——显式声明收窄到他者作用域的记忆在检索/注入里完全不可见(载体自动标注只降权,不硬挡)。多 Agent、多项目互不串台。.md 文件,随时打开编辑;人工改动会被优先尊重,不会被机器覆盖。# 安装插件
dsh plugin --profile web add @modusensus/dsh-mneme
dsh web
装完即可用。想在 5 分钟内看到它的价值:
| 需求 | 配置项 | 默认值 | 改法 |
|---|---|---|---|
| 完全离线运行 | embedProvider | openai | 改为 local |
| 删除对话时保留记忆 | sessionLifecycleEnabled | false | 改为 true |
| 自动提取结构化实体 | entityExtractionEnabled | false | 改为 true |
| 多 Agent / 多项目记忆隔离 | scopeEnabled(需要更强隔离再加 strictScope,硬隔离只对显式声明生效) | false | 改为 true |
以上均在 DSH 设置面板 → 记忆库设置 中修改。完整配置见 配置章节。
写入 ──► 质量过滤(无用信息先拦下)
│
▼
SQLite + 本地 Markdown 镜像
│(空闲时)
├─ autoDream :去重 / 合并 / 归档 / 修正 / 冲突冻结
└─ Sleep Mode :分层压缩 + 模式发现 + 关系补全(可关)
│
▼
召回(混合检索 + 精排)──► 注入会话上下文
面板内置中英双语,跟随你的 DSH 界面语言显示。以下为中文截图,英文版请切至文末 English 段落。

记录、浏览与筛选你的记忆。

自动从记忆里提炼实体,构建带属性的关系图谱。

状态面板一眼看清向量索引、LLM 消耗与自动巩固记录。

检索、实体抽取与记忆巩固开关都在设置里一站式配置。

可选写保护 Token,以及本地化的反馈通道,让记忆库完全本地、可审计。
插件自带零依赖 stdio MCP server,任何 MCP 客户端都能挂载记忆六件套(memory_save / memory_search / memory_list / memory_get / memory_update / memory_delete)。
前置条件(一次性):
127.0.0.1:8790)各客户端挂载(<你的token> 替换为上一步生成的值):
| 客户端 | 挂载方式 |
|---|---|
| Claude Code | 项目根 .mcp.json:{"mcpServers": {"dsh-mneme": {"command": "dsh-mneme-mcp", "env": {"DSH_MNEME_TOKEN": "<你的token>"}}}} |
| Cursor | 设置 → MCP → Add Server,command 填 dsh-mneme-mcp,env 加 DSH_MNEME_TOKEN |
| Codex | ~/.codex/config.toml:[mcp_servers.dsh-mneme] 段,command = "dsh-mneme-mcp",env = { DSH_MNEME_TOKEN = "<你的token>" } |
| Hermes | ~/.hermes/config.yaml 的 mcp_servers: 段:dsh-mneme: {command: "dsh-mneme-mcp", env: {DSH_MNEME_TOKEN: "<你的token>"}},重启生效 |
| OpenCode | opencode.json:{"mcp": {"dsh-mneme": {"type": "local", "command": ["dsh-mneme-mcp"], "environment": {"DSH_MNEME_TOKEN": "<你的token>"}}}} |
| OpenClaw | openclaw mcp add dsh-mneme --command dsh-mneme-mcp --env DSH_MNEME_TOKEN=<你的token>,或 Control UI → Settings → MCP |
未全局安装 npm 包时,把
command换成npx并追加参数-p @modusensus/dsh-mneme dsh-mneme-mcp(Claude Code/OpenCode 写进 args 数组,Codex 写args = ["-p", "@modusensus/dsh-mneme", "dsh-mneme-mcp"])。配置细节、npx 挂法与安全注意事项见完整文档。
| 文档 | 路径 |
|---|---|
| 插件完整文档(功能 / 安装 / 配置 / 架构) | dsh-mneme/README.md |
| stdio MCP server——Claude Code / Cursor 等任意 MCP 客户端接入记忆六件套 | dsh-mneme/README.md · MCP Server |
| 实体结构化设计 | dsh-mneme/docs/ENTITIES.md |
| 语义架构 | dsh-mneme/docs/SEMANTIC.md |
| 本地模型部署指南 | dsh-mneme/docs/LOCAL_MODEL.md |
| 版本历史 | dsh-mneme/CHANGELOG.md |
| 安全策略 | SECURITY.md |
🧬 记忆基因 → 🛡️ 审计加固 → 💤 睡眠维护 → 🕸️ 召回融合与图谱 → ✨ 面板增强 → 🌡️ 自进化记忆 → 🕸️ 图谱增强
| 版本 | 主题 | 状态 |
|---|---|---|
| v0.3 | 记忆基因:实体 / 属性(带时间轴)/ 关系 | ✅ |
| v0.4 | Sleep Mode:空闲四阶段深度维护 | ✅ |
| v0.5 | 召回融合与记忆可视化:BM25 + 图谱 + 热记忆 | ✅ |
| v0.6 | 会话生命周期:删对话 ≠ 删记忆 | ✅ |
| v0.7 | 自进化记忆:热度衰减 + 睡眠双保护 + 桌面端工作台/功能开关 | ✅ |
| v0.8 | 作用域隔离(agent/workspace 双维隔离 + 检索加权 + opt-in 硬过滤)+ 冲突队列人工裁决 + 归属显式声明 + 生态化(stdio MCP server / 图召回轴 / 冷启动 / 注入截断与状态条 / 蒸馏可靠性 / 注入形态与 agent 主动整理接口) | ✅ 已发布(至 v0.8.6) |
完整逐小版本说明见 CHANGELOG。
cd dsh-mneme && npm install
npm test # 1290 个测试
npm run stress # 三轴线压测
npm run sync # src → lib 同步
autoDream 的理念溯源(理念借鉴、实现原创):
在上述工作之上,dsh-mneme 做了自己的工程发展:K-Means++ 聚类预分组、类型化决策清单(keep / merge / archive / conflict / update,及 sleep 侧 supersede / differentiate)与可回放的 sha256 摘要审计链(dream_runs / receipt_chain)。如有遗漏的灵感来源,欢迎提 issue 指出。
dsh-mneme is a cross-session memory plugin for DeepSeek Harness (DSH). It does not just store your memories — it manages them: background deduplication and merging, conflicts frozen for your review, a fully replayable audit trail, offline by default, and export to human-readable Markdown.
Mneme (Μνήμη) comes from Mnemosyne, the Greek goddess of memory and dreams — just as
autoDreamquietly consolidates your memory store in the background.
Every time you start a new chat, the AI acts like it's never met you?
dsh-mneme gives DeepSeek Harness cross-session memory. Projects you've discussed, preferences you've mentioned, decisions you've made — the AI remembers them even after you close the window.
| Scenario | Without plugin | With plugin |
|---|---|---|
| Continue a project discussion from Monday on Wednesday | "Can you describe your project again?" | "You mean the blog refactor from last week? You mentioned wanting to use Astro." |
| Tell the AI your coding habits | Repeat every session | Set once, remember forever |
| Close window after organizing research | Notes are lost | Auto-archived, retrievable anytime |
But what makes dsh-mneme trustworthy lives in the background you never see. These are the traits that set it apart from "a plugin that just saves things."
scopeEnabled, every memory is stamped with which agent wrote it and in which workspace; retrieval favors the current scope (weighted hits, out-of-scope demoted but visible); strictScope goes further — memories explicitly scoped to other agents/workspaces become invisible to search and injection (auto carrier labels are demoted only, never hard-blocked). Multiple agents and projects, zero cross-talk..md files you can open and edit; human edits are respected, never clobbered by the machine.# Install the plugin
dsh plugin --profile web add @modusensus/dsh-mneme
dsh web
It works out of the box. To feel its value in five minutes:
| Need | Config key | Default | Change |
|---|---|---|---|
| Fully offline | embedProvider | openai | Change to local |
| Keep memories when deleting sessions | sessionLifecycleEnabled | false | Change to true |
| Structured entity extraction | entityExtractionEnabled | false | Change to true |
| Memory isolation per agent / workspace | scopeEnabled (add strictScope for stronger isolation — hard blocking applies to explicit declarations only) | false | Change to true |
All of these live in DSH Settings → Memory Settings. Full config docs in the Configuration section (Chinese, bilingual file).
write ──► quality filter (drop noise first)
│
▼
SQLite + local Markdown mirror
│ (when idle)
├─ autoDream : dedupe / merge / archive / fix / freeze-conflict
└─ Sleep Mode : tiered compression + pattern discovery + relation completion (opt-in)
│
▼
recall (hybrid search + rerank) ──► inject into the conversation
The panel is bilingual and follows your DSH interface language. English shots below; see the Chinese section for the localized UI.

Record, browse and filter your memories.

Entities are extracted from your memories, building a relation graph with attributes.

The status panel shows your vector index, LLM spend and consolidation activity at a glance.

Retrieval, entity extraction and consolidation toggles are all configured in one place.

Optional write-protect token and feedback channels for a fully local, auditable setup.
The plugin ships a zero-dependency stdio MCP server. Any MCP client can mount the six memory tools (memory_save / memory_search / memory_list / memory_get / memory_update / memory_delete).
One-time prerequisites:
127.0.0.1:8790)Per-client setup (replace <your-token> with the value from the previous step):
| Client | Setup |
|---|---|
| Claude Code | Project-root .mcp.json: {"mcpServers": {"dsh-mneme": {"command": "dsh-mneme-mcp", "env": {"DSH_MNEME_TOKEN": "<your-token>"}}}} |
| Cursor | Settings → MCP → Add Server; command dsh-mneme-mcp, env DSH_MNEME_TOKEN |
| Codex | ~/.codex/config.toml: [mcp_servers.dsh-mneme] section, command = "dsh-mneme-mcp", env = { DSH_MNEME_TOKEN = "<your-token>" } |
| Hermes | mcp_servers: section of ~/.hermes/config.yaml: dsh-mneme: {command: "dsh-mneme-mcp", env: {DSH_MNEME_TOKEN: "<your-token>"}}, then restart |
| OpenCode | opencode.json: {"mcp": {"dsh-mneme": {"type": "local", "command": ["dsh-mneme-mcp"], "environment": {"DSH_MNEME_TOKEN": "<your-token>"}}}} |
| OpenClaw | openclaw mcp add dsh-mneme --command dsh-mneme-mcp --env DSH_MNEME_TOKEN=<your-token>, or Control UI → Settings → MCP |
If the npm package is not installed globally, use
npxas the command with args-p @modusensus/dsh-mneme dsh-mneme-mcp(an args array in Claude Code/OpenCode;args = ["-p", "@modusensus/dsh-mneme", "dsh-mneme-mcp"]in Codex). Full config details, npx mounting, and security notes: full docs (Chinese).
| Doc | Path |
|---|---|
| Full plugin docs (features / install / config / architecture) | dsh-mneme/README.md(中文) |
| stdio MCP server — plug the six memory tools into any MCP client (Claude Code / Cursor / …) | dsh-mneme/README.md · MCP Server(中文) |
| Entity structure design | dsh-mneme/docs/ENTITIES.md |
| Semantic architecture | dsh-mneme/docs/SEMANTIC.md |
| Local model guide | dsh-mneme/docs/LOCAL_MODEL.md |
| Changelog | dsh-mneme/CHANGELOG.md |
| Security | SECURITY.md |
🧬 Gene → 🛡️ Audit hardening → 💤 Sleep maintenance → 🕸️ Recall fusion & graph → ✨ Panel enhancement → 🌡️ Self-evolving memory → 🔐 Scope isolation
| Version | Theme | Status |
|---|---|---|
| v0.3 | Gene: entities / time-boxed attributes / relations | ✅ |
| v0.4 | Sleep Mode: idle 4-phase deep maintenance | ✅ |
| v0.5 | Recall fusion & visualization: BM25 + graph + hot memory | ✅ |
| v0.6 | Session lifecycle: delete session ≠ delete memory | ✅ |
| v0.7 | Self-evolving memory: heat decay + sleep dual-protection + desktop workbench/feature toggles | ✅ |
| v0.8 | Scope isolation (agent/workspace stamping + retrieval weighting + opt-in hard filter) + conflict review queue + explicit attribution + ecosystem (stdio MCP server / graph recall axis / cold-start bootstrap / injection truncation & status bar / distill reliability / injection shaping & agent-driven organize) | ✅ Released (up to v0.8.6) |
Full per-minor-version changelog in CHANGELOG.
cd dsh-mneme && npm install
npm test # 1290 tests
npm run stress # three-axis stress test
npm run sync # src → lib sync
Provenance of the autoDream concept (ideas credited, implementation original):
On top of these, dsh-mneme adds its own engineering: K-Means++ cluster pre-grouping, a typed decision list (keep / merge / archive / conflict / update, plus supersede / differentiate on the sleep side), and a replayable sha256-digest audit chain (dream_runs / receipt_chain). If any source of inspiration is missing, please open an issue.
MIT
JavaScript
100.0%
🧠 The memory that dreams — cross-session memory for DeepSeek Harness. Offline & private, auto-consolidates in its sleep (autoDream), visualized in a memory panel.
See the code
dsh-mneme 是 DeepSeek Harness (DSH) 的跨会话记忆插件。它不只「存得下」,更「管得好」:后台自动去重合并、矛盾先冻结等你裁决、全程可回放审计、默认全离线,还支持导出成人可读的 Markdown。
Mneme(Μνήμη)源自希腊记忆女神 Mnemosyne。她掌管记忆与梦境——正如
autoDream在后台默默巩固你的记忆库。
每次新开对话,AI 都像第一次认识你?
dsh-mneme 给 DeepSeek Harness 装上跨会话记忆。 你聊过的项目、提过的偏好、做过的决定,AI 都记得——即使关掉了窗口,下次打开还在。
| 场景 | 没装插件 | 装了插件 |
|---|---|---|
| 周一聊完项目需求,周三继续 | "能再描述一下你的项目吗?" | "你指的是上周提到的博客重构吗?当时你说想用 Astro。" |
| 告诉 AI 你的编码习惯 | 每轮都要重复交代 | 一次设定,长期生效 |
| 整理大量资料后关窗口 | 资料丢了 | 自动归档,随时检索找回 |
但 dsh-mneme 的可信之处,恰恰在你看不见的后台。下面这些,才是它和「一个会存东西的插件」的本质区别。
scopeEnabled 开启后,每条记忆标注由哪个 agent、在哪个工作区写入;检索时本会话作用域优先(命中加权,他 scope 降权仍可见);strictScope 再进一步——显式声明收窄到他者作用域的记忆在检索/注入里完全不可见(载体自动标注只降权,不硬挡)。多 Agent、多项目互不串台。.md 文件,随时打开编辑;人工改动会被优先尊重,不会被机器覆盖。# 安装插件
dsh plugin --profile web add @modusensus/dsh-mneme
dsh web
装完即可用。想在 5 分钟内看到它的价值:
| 需求 | 配置项 | 默认值 | 改法 |
|---|---|---|---|
| 完全离线运行 | embedProvider | openai | 改为 local |
| 删除对话时保留记忆 | sessionLifecycleEnabled | false | 改为 true |
| 自动提取结构化实体 | entityExtractionEnabled | false | 改为 true |
| 多 Agent / 多项目记忆隔离 | scopeEnabled(需要更强隔离再加 strictScope,硬隔离只对显式声明生效) | false | 改为 true |
以上均在 DSH 设置面板 → 记忆库设置 中修改。完整配置见 配置章节。
写入 ──► 质量过滤(无用信息先拦下)
│
▼
SQLite + 本地 Markdown 镜像
│(空闲时)
├─ autoDream :去重 / 合并 / 归档 / 修正 / 冲突冻结
└─ Sleep Mode :分层压缩 + 模式发现 + 关系补全(可关)
│
▼
召回(混合检索 + 精排)──► 注入会话上下文
面板内置中英双语,跟随你的 DSH 界面语言显示。以下为中文截图,英文版请切至文末 English 段落。

记录、浏览与筛选你的记忆。

自动从记忆里提炼实体,构建带属性的关系图谱。

状态面板一眼看清向量索引、LLM 消耗与自动巩固记录。

检索、实体抽取与记忆巩固开关都在设置里一站式配置。

可选写保护 Token,以及本地化的反馈通道,让记忆库完全本地、可审计。
插件自带零依赖 stdio MCP server,任何 MCP 客户端都能挂载记忆六件套(memory_save / memory_search / memory_list / memory_get / memory_update / memory_delete)。
前置条件(一次性):
127.0.0.1:8790)各客户端挂载(<你的token> 替换为上一步生成的值):
| 客户端 | 挂载方式 |
|---|---|
| Claude Code | 项目根 .mcp.json:{"mcpServers": {"dsh-mneme": {"command": "dsh-mneme-mcp", "env": {"DSH_MNEME_TOKEN": "<你的token>"}}}} |
| Cursor | 设置 → MCP → Add Server,command 填 dsh-mneme-mcp,env 加 DSH_MNEME_TOKEN |
| Codex | ~/.codex/config.toml:[mcp_servers.dsh-mneme] 段,command = "dsh-mneme-mcp",env = { DSH_MNEME_TOKEN = "<你的token>" } |
| Hermes | ~/.hermes/config.yaml 的 mcp_servers: 段:dsh-mneme: {command: "dsh-mneme-mcp", env: {DSH_MNEME_TOKEN: "<你的token>"}},重启生效 |
| OpenCode | opencode.json:{"mcp": {"dsh-mneme": {"type": "local", "command": ["dsh-mneme-mcp"], "environment": {"DSH_MNEME_TOKEN": "<你的token>"}}}} |
| OpenClaw | openclaw mcp add dsh-mneme --command dsh-mneme-mcp --env DSH_MNEME_TOKEN=<你的token>,或 Control UI → Settings → MCP |
未全局安装 npm 包时,把
command换成npx并追加参数-p @modusensus/dsh-mneme dsh-mneme-mcp(Claude Code/OpenCode 写进 args 数组,Codex 写args = ["-p", "@modusensus/dsh-mneme", "dsh-mneme-mcp"])。配置细节、npx 挂法与安全注意事项见完整文档。
| 文档 | 路径 |
|---|---|
| 插件完整文档(功能 / 安装 / 配置 / 架构) | dsh-mneme/README.md |
| stdio MCP server——Claude Code / Cursor 等任意 MCP 客户端接入记忆六件套 | dsh-mneme/README.md · MCP Server |
| 实体结构化设计 | dsh-mneme/docs/ENTITIES.md |
| 语义架构 | dsh-mneme/docs/SEMANTIC.md |
| 本地模型部署指南 | dsh-mneme/docs/LOCAL_MODEL.md |
| 版本历史 | dsh-mneme/CHANGELOG.md |
| 安全策略 | SECURITY.md |
🧬 记忆基因 → 🛡️ 审计加固 → 💤 睡眠维护 → 🕸️ 召回融合与图谱 → ✨ 面板增强 → 🌡️ 自进化记忆 → 🕸️ 图谱增强
| 版本 | 主题 | 状态 |
|---|---|---|
| v0.3 | 记忆基因:实体 / 属性(带时间轴)/ 关系 | ✅ |
| v0.4 | Sleep Mode:空闲四阶段深度维护 | ✅ |
| v0.5 | 召回融合与记忆可视化:BM25 + 图谱 + 热记忆 | ✅ |
| v0.6 | 会话生命周期:删对话 ≠ 删记忆 | ✅ |
| v0.7 | 自进化记忆:热度衰减 + 睡眠双保护 + 桌面端工作台/功能开关 | ✅ |
| v0.8 | 作用域隔离(agent/workspace 双维隔离 + 检索加权 + opt-in 硬过滤)+ 冲突队列人工裁决 + 归属显式声明 + 生态化(stdio MCP server / 图召回轴 / 冷启动 / 注入截断与状态条 / 蒸馏可靠性 / 注入形态与 agent 主动整理接口) | ✅ 已发布(至 v0.8.6) |
完整逐小版本说明见 CHANGELOG。
cd dsh-mneme && npm install
npm test # 1290 个测试
npm run stress # 三轴线压测
npm run sync # src → lib 同步
autoDream 的理念溯源(理念借鉴、实现原创):
在上述工作之上,dsh-mneme 做了自己的工程发展:K-Means++ 聚类预分组、类型化决策清单(keep / merge / archive / conflict / update,及 sleep 侧 supersede / differentiate)与可回放的 sha256 摘要审计链(dream_runs / receipt_chain)。如有遗漏的灵感来源,欢迎提 issue 指出。
dsh-mneme is a cross-session memory plugin for DeepSeek Harness (DSH). It does not just store your memories — it manages them: background deduplication and merging, conflicts frozen for your review, a fully replayable audit trail, offline by default, and export to human-readable Markdown.
Mneme (Μνήμη) comes from Mnemosyne, the Greek goddess of memory and dreams — just as
autoDreamquietly consolidates your memory store in the background.
Every time you start a new chat, the AI acts like it's never met you?
dsh-mneme gives DeepSeek Harness cross-session memory. Projects you've discussed, preferences you've mentioned, decisions you've made — the AI remembers them even after you close the window.
| Scenario | Without plugin | With plugin |
|---|---|---|
| Continue a project discussion from Monday on Wednesday | "Can you describe your project again?" | "You mean the blog refactor from last week? You mentioned wanting to use Astro." |
| Tell the AI your coding habits | Repeat every session | Set once, remember forever |
| Close window after organizing research | Notes are lost | Auto-archived, retrievable anytime |
But what makes dsh-mneme trustworthy lives in the background you never see. These are the traits that set it apart from "a plugin that just saves things."
scopeEnabled, every memory is stamped with which agent wrote it and in which workspace; retrieval favors the current scope (weighted hits, out-of-scope demoted but visible); strictScope goes further — memories explicitly scoped to other agents/workspaces become invisible to search and injection (auto carrier labels are demoted only, never hard-blocked). Multiple agents and projects, zero cross-talk..md files you can open and edit; human edits are respected, never clobbered by the machine.# Install the plugin
dsh plugin --profile web add @modusensus/dsh-mneme
dsh web
It works out of the box. To feel its value in five minutes:
| Need | Config key | Default | Change |
|---|---|---|---|
| Fully offline | embedProvider | openai | Change to local |
| Keep memories when deleting sessions | sessionLifecycleEnabled | false | Change to true |
| Structured entity extraction | entityExtractionEnabled | false | Change to true |
| Memory isolation per agent / workspace | scopeEnabled (add strictScope for stronger isolation — hard blocking applies to explicit declarations only) | false | Change to true |
All of these live in DSH Settings → Memory Settings. Full config docs in the Configuration section (Chinese, bilingual file).
write ──► quality filter (drop noise first)
│
▼
SQLite + local Markdown mirror
│ (when idle)
├─ autoDream : dedupe / merge / archive / fix / freeze-conflict
└─ Sleep Mode : tiered compression + pattern discovery + relation completion (opt-in)
│
▼
recall (hybrid search + rerank) ──► inject into the conversation
The panel is bilingual and follows your DSH interface language. English shots below; see the Chinese section for the localized UI.

Record, browse and filter your memories.

Entities are extracted from your memories, building a relation graph with attributes.

The status panel shows your vector index, LLM spend and consolidation activity at a glance.

Retrieval, entity extraction and consolidation toggles are all configured in one place.

Optional write-protect token and feedback channels for a fully local, auditable setup.
The plugin ships a zero-dependency stdio MCP server. Any MCP client can mount the six memory tools (memory_save / memory_search / memory_list / memory_get / memory_update / memory_delete).
One-time prerequisites:
127.0.0.1:8790)Per-client setup (replace <your-token> with the value from the previous step):
| Client | Setup |
|---|---|
| Claude Code | Project-root .mcp.json: {"mcpServers": {"dsh-mneme": {"command": "dsh-mneme-mcp", "env": {"DSH_MNEME_TOKEN": "<your-token>"}}}} |
| Cursor | Settings → MCP → Add Server; command dsh-mneme-mcp, env DSH_MNEME_TOKEN |
| Codex | ~/.codex/config.toml: [mcp_servers.dsh-mneme] section, command = "dsh-mneme-mcp", env = { DSH_MNEME_TOKEN = "<your-token>" } |
| Hermes | mcp_servers: section of ~/.hermes/config.yaml: dsh-mneme: {command: "dsh-mneme-mcp", env: {DSH_MNEME_TOKEN: "<your-token>"}}, then restart |
| OpenCode | opencode.json: {"mcp": {"dsh-mneme": {"type": "local", "command": ["dsh-mneme-mcp"], "environment": {"DSH_MNEME_TOKEN": "<your-token>"}}}} |
| OpenClaw | openclaw mcp add dsh-mneme --command dsh-mneme-mcp --env DSH_MNEME_TOKEN=<your-token>, or Control UI → Settings → MCP |
If the npm package is not installed globally, use
npxas the command with args-p @modusensus/dsh-mneme dsh-mneme-mcp(an args array in Claude Code/OpenCode;args = ["-p", "@modusensus/dsh-mneme", "dsh-mneme-mcp"]in Codex). Full config details, npx mounting, and security notes: full docs (Chinese).
| Doc | Path |
|---|---|
| Full plugin docs (features / install / config / architecture) | dsh-mneme/README.md(中文) |
| stdio MCP server — plug the six memory tools into any MCP client (Claude Code / Cursor / …) | dsh-mneme/README.md · MCP Server(中文) |
| Entity structure design | dsh-mneme/docs/ENTITIES.md |
| Semantic architecture | dsh-mneme/docs/SEMANTIC.md |
| Local model guide | dsh-mneme/docs/LOCAL_MODEL.md |
| Changelog | dsh-mneme/CHANGELOG.md |
| Security | SECURITY.md |
🧬 Gene → 🛡️ Audit hardening → 💤 Sleep maintenance → 🕸️ Recall fusion & graph → ✨ Panel enhancement → 🌡️ Self-evolving memory → 🔐 Scope isolation
| Version | Theme | Status |
|---|---|---|
| v0.3 | Gene: entities / time-boxed attributes / relations | ✅ |
| v0.4 | Sleep Mode: idle 4-phase deep maintenance | ✅ |
| v0.5 | Recall fusion & visualization: BM25 + graph + hot memory | ✅ |
| v0.6 | Session lifecycle: delete session ≠ delete memory | ✅ |
| v0.7 | Self-evolving memory: heat decay + sleep dual-protection + desktop workbench/feature toggles | ✅ |
| v0.8 | Scope isolation (agent/workspace stamping + retrieval weighting + opt-in hard filter) + conflict review queue + explicit attribution + ecosystem (stdio MCP server / graph recall axis / cold-start bootstrap / injection truncation & status bar / distill reliability / injection shaping & agent-driven organize) | ✅ Released (up to v0.8.6) |
Full per-minor-version changelog in CHANGELOG.
cd dsh-mneme && npm install
npm test # 1290 tests
npm run stress # three-axis stress test
npm run sync # src → lib sync
Provenance of the autoDream concept (ideas credited, implementation original):
On top of these, dsh-mneme adds its own engineering: K-Means++ cluster pre-grouping, a typed decision list (keep / merge / archive / conflict / update, plus supersede / differentiate on the sleep side), and a replayable sha256-digest audit chain (dream_runs / receipt_chain). If any source of inspiration is missing, please open an issue.
MIT
JavaScript
100.0%