跳到主内容

mnemon 使用指南

为 DSH Web 装配 Mnemon 持久记忆后端,把会话热记忆、项目档案与 Mnemon 长期记忆体接成三层监督式记忆。

本文为派生内容(基于 wiki / faq / compatibility_json 自动组装),非 AI 即时创作。

本文由本站基于该插件已收录的字段自动派生(wiki / faq / compatibility_json / readme),非 AI 即时创作。每节末尾标源字段。

快速上手

mnemon

— 源: plugin_wiki.wiki_content

安装与验证

dsh plugin --profile web add github:mnemon-dev/mnemon

复制以上命令在 DSH Web Profile 内运行。安装完成后在「插件列表」启用即可。

— 源: plugins.install

关键要点

  • Zero user-side operation — install once; supported runtimes can use hooks, minimal runtimes can use persistent rules
  • LLM-supervised — the host LLM decides what to remember, update, and forget; no embedded LLM, no API keys
  • Runtime-native integration — runtime-specific SKILL.md, shared guide.md, and supported hooks or extensions
  • Four-graph architecture — temporal, entity, causal, and semantic edges, not just vector similarity
  • Intent-native protocol — three primitives (remember, link, recall) map to the LLM's cognitive vocabulary, not database syntax; structured JSON output with signal transparency

— 源: plugin_wiki.readme_zh (fallback readme_raw)

常见问题

这个插件需要在系统里先装什么?

主机上要装有 mnemon 二进制(brew/go install/make install 任选其一),否则 DSH 内的记忆接口会找不到后端进程。

是否需要额外申请 API Key?

不需要。Mnemon 直接复用宿主 LLM(Claude/Gemini/DeepSeek 等)做记忆判断,二进制本身不调用付费推理;可选的本地 Ollama 仅用于向量检索增强。

不同会话之间会共享记忆吗?

默认所有会话共享一个名为 default 的记忆库;若想项目隔离,可用 mnemon store create 命名并切换,或临时通过 MNEMON_STORE 环境变量指定。

想改判断逻辑去哪里改?

改 ~/.mnemon/prompt/guide.md(即 DSH Plugin Config 里挂载的 guide 文件),SKILL.md 只负责命令语法。

macOS/Windows/Linux 都能装吗?

记忆核心能力在三个平台都能装;Windows 上 Agency(mnemon agency …)尚未启用,需 macOS 或 Linux。

想完全卸载怎么办?

在 DSH 的 Plugin Config 中卸载 dsh-mnemon;并在主机上运行 mnemon setup --eject 清除各 runtime 的 hook/技能文件。

是否需要本地 Ollama?

默认不需要。无 Ollama 时只跑图谱检索;想用向量+关键词混合召回时再启 Ollama 并设置 MNEMON_EMBED_ENDPOINT/MODEL。

— 源: plugin_wiki.faq_json

兼容性

  • DSH: 未声明
  • Node: >=20

— 源: plugin_wiki.compatibility_json

踩坑提醒

安装前请审阅上游仓库;本指南基于已收录字段自动派生,可能滞后于最新版本。如发现与官方文档冲突,请以上游为准。

— 来源:通用规则