dot-memory
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .github/workflows/npm-release.yml
- fs module — File system access in .github/workflows/npm-release.yml
- os.homedir — User home directory access in bin/dot-memory.mjs
- network request — Outbound network request in dist/client.js
- spawnSync — Synchronous process spawning in scripts/verify-isolated-desktop.mjs
- fs.rmSync — Destructive file system operation in scripts/verify-isolated-desktop.mjs
- os.homedir — User home directory access in scripts/verify-isolated-desktop.mjs
- network request — Outbound network request in scripts/verify-isolated-desktop.mjs
- Hardcoded secret — Potential hardcoded credential in scripts/verify-isolated-desktop.mjs
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Dot 记忆总线 — Cross-agent local memory bus for DeepSeek Harness, Antigravity, Claude Code & Codex
Dot 记忆总线 (@oxmumu3/dot-memory)
跨 DeepSeek Harness、Antigravity、Claude Code、Codex、Hermes Agent、WorkBuddy 与 Cursor 的本地共享记忆总线:4KB 原话实证活体记忆、零向量实体 Wiki 与一键跨端 Hook + MCP 接入。
- MIT License · 作者:牛村木木山 (
oxmumu3) - 纯 Node ESM · 零向量库 · 零 Docker · 100% 本机 Markdown & JSONL
为什么做 @oxmumu3/dot-memory?
- 不是改各家规则 MD 催模型自觉,而是硬接入
Stop Hook + MCP:- 自动写(0 Token):各本机 Agent 跑完重活停下来时,由宿主
Stop Hook自动把精简进展写入同一条handoffs/YYYY-MM-DD.jsonl;闲聊自动静音过滤。 - 主动读(按需查):通过标准
stdio MCP暴露 7 个工具,让任意客户端随时检索其他工具刚完成的工作与实体档案。 - 不碰用户规则文件:绝不篡改
CLAUDE.md/AGENTS.md,写入任何外部配置前都会在~/.local/share/dot-memory/backups/自动备份。
- 自动写(0 Token):各本机 Agent 跑完重活停下来时,由宿主
- 绝不打穿 KV Cache:绝不动态改写
System Prompt,仅在首轮用户消息、压缩摘要后或活体记忆哈希变动时,附注一条<dot_memory_context>。 - 防编造铁闸 (
quotedIn):所有自动提炼与提案必须携带来自原文的逐字quote并通过归一化子串校验;未核验的 LLM 猜测一律拒之门外。 - 真正会新陈代谢的
4KB活体记忆:Dreaming代谢引擎根据最新跨端交接与工作区进展,按主题自动替换过时的active_focus条目(保留replacedOld变更轨迹),绝不让两周前的旧进度永远赖在上下文里。
界面预览



在 DeepSeek Harness 安装并一键打通本机全部 Agent
- 在 DeepSeek Harness 新建会话,点顶部「标准模式」下拉,切到「创造模式」。
- 复制下面这句话发给 Agent,弹出授权时点「允许」:
请通过插件管理器,从 npm 官方源安装并启用 @oxmumu3/dot-memory@latest。完成后请核对版本和启用状态,再带我打开左侧「Dot 记忆总线」。
(也可以在「插件 -> 添加插件」直接填入 @oxmumu3/dot-memory@latest 安装并启用;装好后点左侧「Dot 记忆总线 -> 本机连接」即可一键接入其他本机 Agent。)
开源仓库与图文说明(觉得有帮助欢迎点个 Star):
https://github.com/oxmumu3/dot-memory
支持的本机 Agent 接线矩阵
| 客户端 | 自动写入(0 Token) | 主动读写(stdio MCP) | 接入位置(均先自动备份) |
|---|---|---|---|
| DeepSeek Harness | 插件内置 agent/turn-stopping |
插件内置 6 个原生工具 | 随插件安装自动启用 |
| Antigravity | Stop Hook |
~/.gemini/config/mcp_config.json |
~/.gemini/config/plugins/dot-memory-bridge/ |
| Claude Code | ~/.claude/settings.json Stop |
~/.claude.json mcpServers |
不修改 CLAUDE.md |
| Codex | ~/.codex/hooks.json Stop |
~/.codex/config.toml [mcp_servers.dot-memory] |
首次触发 Stop 需在 Codex 点允许一次 |
| Hermes Agent | ~/.hermes/hooks/dot-memory-handoff/ (agent:end / session:end) |
~/.hermes/config.yaml 顶层 mcp_servers |
仅操作顶层 mcp_servers |
| WorkBuddy / CodeBuddy | settings.json Stop |
mcp.json / .mcp.json |
自动识别 ~/.workbuddy-ai / ~/.workbuddy / ~/.codebuddy |
| Cursor | 通过 MCP 主动记录 | ~/.cursor/mcp.json |
无独立 Stop Hook |
与 dsh-mnemon 等同类 DSH 记忆插件能否共存?
- 不会发生技术冲突:
@oxmumu3/dot-memory独占~/.local/share/dot-memory/存储目录、/api/dot_memory/*路由、dot_memory_*工具前缀与dotMemory服务名,且从不篡改System Prompt。 - 使用建议:如果已经装了
dsh-mnemon/dsh-mneme等侧重 DSH 单回合记忆或 Skill 演进的插件,建议明确分工——把dot-memory的 4KB 活体记忆留给跨工具主线焦点与全局硬规则,不要两边重复记录相同条目,即可兼得零冲突与高性价比。
终端 CLI(供脚本或无界面环境使用)
# 扫描本机已安装的 Agent 及 Hook/MCP 连接状态
npx @oxmumu3/dot-memory connections
# 一键接入全部本机已安装的 Agent(写入前自动备份原配置)
npx @oxmumu3/dot-memory connect --agent all
# 单独接入或断开指定 Agent(antigravity | claude-code | codex | hermes | workbuddy | cursor)
npx @oxmumu3/dot-memory connect --agent hermes
npx @oxmumu3/dot-memory disconnect --agent hermes
默认数据目录为 ~/.local/share/dot-memory(可通过 DOT_MEMORY_HOME 环境变量覆盖):
living-memory.json+ 人类可读镜像LIVING-MEMORY.md(4KB 硬预算:rules/style/focus+ 待审candidates)wiki/{projects,topics,sessions}/*.md(ID 锁 + 16 位expectedHash写栅栏 + 派生 Timeline + 自动Change Log)handoffs/YYYY-MM-DD.jsonl(跨 Agent 收工交接事件流)backups/(修改外部 Agent 配置前的原始备份)
致谢与设计灵感(Acknowledgments & Design Inspiration)
@oxmumu3/dot-memory 是基于纯 Node ESM 与本机 Markdown / JSONL 的 100% 独立洁净室(clean-room)实现:仓库内零第三方源码复制、零 PostgreSQL/Docker 运行时依赖,并严格排除任何 AGPL / GPL 代码接触。以下开源项目在架构与算法层面为我们提供了关键灵感:
- simplexai-labs/linger:启发了
4KB定额活体记忆预算、确定性原话子串核验(quotedIn)、夜间Dreaming代谢、零向量中英混合双路检索(Han bigram + RRF)、带引用守恒的 ID 锁 Markdown 实体档案,以及零 LLM 成本的一跳衰减联想召回(Flashback)。 - openclaw/openclaw:启发了实体档案 16 位
expectedHash乐观并发写栅栏、派生时间线(Timeline)投影、静默本地 Git 检查点、30 天休眠档案归档与压缩(diet),以及 0ms 中英触发词召回(trigger-recall)。 - tinqiao-oss/engramory、PerryLink/dsh-memento、EternalNight996/memory-eternal 与 vshulcz/deja-vu:分别参考了防打穿 KV Cache 的增量注入纪律、版本化服务能力契约、候选提案与人工审定主存储分离,以及子会话(subagent)边界过滤规范。
更多协议隔离清单与设计取舍说明见 docs/DESIGN-BASELINE.md。
反馈、更新与同系列开源工具
- 觉得有用欢迎点个 Star:oxmumu3/dot-memory
- 发布记录 / 更新日志:GitHub Releases
- Bug 反馈与功能建议:GitHub Issues
| 项目 | 定位 | 仓库 |
|---|---|---|
发现好插件 (@oxmumu3/dsh-plugin-finder) |
需求倒推检索、方案拼装与创造模式补齐 | dsh-plugin-finder |
DSH Dot (@oxmumu3/dsh-project-companion) |
电脑与手机微信/App 随身项目参谋 | dsh-project-companion |
乐乐家庭助手 (@oxmumu3/dsh-family-assistant) |
家庭成员隔离微信日常小助手 | dsh-family-assistant |
AI 分身工作台 (@oxmumu3/dsh-agent-twin) |
满血隔离 AI 分身与 /try 体验大厅 |
ai-twin-starter |
顺带私教 (@oxmumu3/dsh-incidental-learn) |
日常协作防刷屏微学习卡与技能手账 | dsh-incidental-learn |
Dot 记忆总线 (@oxmumu3/dot-memory) |
跨 AI 工具共享明文 Markdown 记忆库 | dot-memory |
Super Agent (@oxmumu3/dsh-superagent) |
智能任务拆单分诊与多 Worktree 派工 | dsh-superagent |
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found