FuRongJun-1999/CommonTrustProtocol--plugins-dsh-memory ↗★ 1
@furongjun1999/dsh-memory
灵枢(Lingshu·líng shū)DeepSeek Harness 插件:完整大脑——长期记忆/知识飞轮/自我认知/递归反思接入 DSH,对话自动沉淀进记忆库
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FuRongJun-1999/CommonTrustProtocol#0d5f434bf983729cbaaf30aab490a61970f8434e&path:plugins/dsh-memory说明文档
阅读完整 README ↗@furongjun1999/dsh-memory
灵枢(AEIS)× DeepSeek Harness 插件:把灵枢的时空记忆/知识飞轮/自我认知接入 DSH, 让 Agent 拥有跨会话的长期记忆与认知能力。
灵枢(AEIS)是一个遵循「智能论 v3.2」协议的时空记忆引擎:五层记忆(锚点/结构/知识/情境/自我)、 知识飞轮(验证→归纳→联想→蒸馏→推演)、自我认知循环(P0 系列)、外部知识摄取。 本插件是它在 DeepSeek Harness 生态中的桥。
特性
- 工具桥接:Agent 可直接调用
lingshu_remember / recall / search / think等灵枢能力 (默认精选 12 个核心工具,可切换全部或自定义集合) - 自动记忆:DSH 对话自动沉淀进灵枢记忆库——用户消息带重要性写入、去重,随会话累积
- 动态 schema:工具清单运行时从灵枢
tools/list实时拉取,灵枢升级新增工具 DSH 侧零改动 - 零运行时依赖:手写 stdio MCP 桥(不依赖 MCP SDK),与灵枢 D-005「核心零外部依赖」工程哲学一致
- 进程自愈:灵枢 Python 子进程崩溃自动指数退避重启(1s→30s),插件卸载优雅退出
架构
┌─────────────────────────────────────────────┐
│ DeepSeek Harness (cordis) │
│ │
│ Agent Loop ──┬── lingshu_remember/recall… │
│ │ (ctx.tools 注册) │
│ session/event│ │
│ (自动记忆钩子)│ │
└───────────────┼─────────────────────────────┘
│ stdio · 逐行 JSON-RPC
│ (initialize → tools/list → tools/call)
┌───────────────▼─────────────────────────────┐
│ 灵枢 Python 子进程 (spawn) │
│ python -m aeis.mcp.server │
│ AEIS_DB=
· AEIS_IDENTITY= │
│ 38 工具 · SQLite 五层记忆 │
└──────────────────────────────────────────────┘
安装
前置要求
- Node.js ≥ 22.19(DeepSeek Harness 要求)
- DeepSeek Harness(
npx @deepseek-ai/dsh web) - 灵枢 AEIS 库:
pip install aeis(或从源码设置PYTHONPATH)
本地安装插件
本插件暂未发布 npm(待 DSH v0.1 API 稳定后发布),两种本地方式:
方式 A:从 GitHub 克隆
git clone https://github.com/FuRongJun-1999/CommonTrustProtocol.git
cd CommonTrustProtocol/plugins/dsh-memory
npm install && npm run build
方式 B:作为 profile 依赖安装
在 DSH profile 目录执行:
dsh plugin --profile add
启用插件
在 profile 的 cordis.yml(或 cordis.patch.yml)中追加: