Multi-agent spatiotemporal memory graph with cross-session persistence and importance-gated recall.
Install
# from npm (prebuilt)
dsh plugin --profile web add @furongjun1999/dsh-memory
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:FuRongJun-1999/dsh-memory
GitHub-sourced plugins run build scripts on your machine at install time. Only install sources you trust, and pin a 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.
Links
More in this category
LoserFox/distill★ 15
Automatic conversation distillation: background subagent reflection + skill create/update.
omdsh-dev/dsh-mnemon★ 11
Deep Mnemon integration: local three-tier memory (Runtime Memory, retrievable Documents, supervised Memory Spaces).
modusensus/dsh-mneme★ 8
Cross-session memory: SQLite with a human-editable Markdown mirror, background consolidation (dedup, merge, conflict resolution), and six memory tools.
nowledge-co/nowledge-mem-deepseek-harness★ 5
One memory layer for every AI tool and agent: Context Bundle injection, prompt-time recall, MCP tools, and turn-end DSH thread capture.
Jesse-njx/dsh-memory★ 2
Cited memory over DSH's lossless session log: distilled facts carry `(sessionId, eventRange)` citations that expand back to the exact original log excerpt.
PerryLink/dsh-memento★ 1
Bounded, layered, approval-gated, auditable cross-session memory: a typed `ctx.memory` seam with a zero-dependency SQLite provider, a `memory` tool, and frozen snapshot injection; every write passes the approval gate and stays reconstructable from the session log.