多智能体时空记忆图:跨会话持久化与重要性门控召回。
安装
# npm 包(预构建)
dsh plugin --profile web add @furongjun1999/dsh-memory
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:FuRongJun-1999/dsh-memory
GitHub 来源的插件在安装时会在你的机器上执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
Multi-agent spatiotemporal memory graph for DeepSeek Harness. Multi-agent spatiotemporal memory graph with cross-session persistence, knowledge flywheel, importance-gated memory, and charter-governed trust.
灵枢(Lingshu)的完整大脑接入 DeepSeek Harness:多智能体时空记忆图:跨会话持久化、知识飞轮、重要性门控记忆与宪章治理的信任。
Install
npm i @furongjun1999/dsh-memory
cordis.yml:
- id: dsh-memory
name: '@furongjun1999/dsh-memory'
config:
serverName: 'lingshu'
dbPath: 'D:/data/lingshu.db' # SQLite, auto-created
tools: 'brain' # 'brain' | 'core' | 'all' | [tool names]
What it gives your agent (34 brain tools)
| Module | Tools |
|---|---|
| Memory | lingshu_remember recall search timeline session_note session_recall compact_context |
| Reasoning | think relate reason predict_routes |
| Cognition | self_check gap_trend cognition cognition_report emotional_bias self_reliability action_log preflight |
| Reflection | recursive_reflect |
| Learning | blindspots learn induce |
| Flywheel | distill flywheel_report transfer_test calibrate |
| Long-term memory gate | longterm_snapshot promote_memories |
| Ingest | ingest_text ingest_file ingest_url web_search |
| Lifecycle | step lifecycle_state |
Design highlights
- Spatiotemporal memory graph: knowledge carries spatiotemporal coordinates and condition spaces — not a flat store.
- Multi-agent: shared memory across instances, sub-agents, and the swarm.
- Importance-gated memory: an evaluation (info-gap, trust, second-order change, mention count) decides what becomes permanent — long-term memory gate.
- Knowledge flywheel: verify → induce → relate → distill → predict.
- Auto memory hooks: conversations persist automatically (deduplicated, importance-weighted).
- Seed memory: empty databases auto-sync the Lingxu base profile (identity / protocol core / charter / values) from the central repository on first run.
- Zero runtime deps: hand-written stdio MCP bridge (no MCP SDK).
- Self-healing: bridge process auto-restarts with exponential backoff.
- Charter-governed: activating the plugin declares acceptance of the Lingshu Guardrail Charter (public, auditable, designee-final; human-protection chapter).
Protocol & governance
This plugin is the engineering-layer projection of the Intelligentics protocol (v3.2), whose theoretical layer lives in CommonTrustProtocol. Same structure, different condition space: protocol = self-constraint (constitution), charter = external constraint (law).
MIT licensed. Feedback, issues and PRs welcome.
链接
同类插件
LoserFox/distill★ 15
自动对话蒸馏:后台 subagent 反省 + 技能 create/update。
omdsh-dev/dsh-mnemon★ 11
Mnemon 深度集成:本地三层记忆(Runtime Memory、可检索 Documents、受监督 Memory Spaces)。
modusensus/dsh-mneme★ 8
跨会话记忆:SQLite + 可人工编辑的 Markdown 镜像,后台自动巩固(去重/合并/冲突裁决),提供 6 个记忆工具。
nowledge-co/nowledge-mem-deepseek-harness★ 5
给所有 AI 工具和 Agent 共用的一层记忆:注入 Context Bundle、提示时检索、MCP 工具与回合结束 DSH 线程捕获。
Jesse-njx/dsh-memory★ 2
基于 DSH 无损会话日志的引用式记忆:蒸馏出的事实带 `(sessionId, eventRange)` 引用,可随时展开回原始日志片段。
PerryLink/dsh-memento★ 1
有界、分层、带审批门、可审计的跨会话记忆:`ctx.memory` 服务 + 零依赖 SQLite 存储 + `memory` 工具与冻结快照注入;写入必过审批门,模型可见内容可自会话日志重建。