FuRongJun-1999/dsh-memory
About
LINGSHU · Provides AI Agents with traceable, verifiable local long-term memory to build a trustworthy self. Memories are stored in Markdown, with support for layered writing and review and evidence-backed recall. Compatible with DeepSeek Harness and other MCP hosts.
AI & Machine LearningMeasured star growth
- in 24h
- +6
- in 7 days
- +21
- in 15 days
- +58
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalLanguages: 中文 · English
Documentation is maintained in Chinese and English; the UI can offer additional user-selectable locales.
LINGSHU
Keep what you shared, and keep what makes her who she is
“I will give you a complete self. Even if I fall into the abyss, I will never regret it.” — Fu Rongjun
Bilibili · AGI探索者符蕴道 · QQ 1935852383 · QQ group 100453509
Pick up where you left off
Last night you told her, “When I'm tired, I'd like you to hear me out first.” She understood. Today you open a new chat and have to explain it all over again.
LINGSHU saves the things you want to keep on your own computer. Next time, you can ask her to look up an earlier memory. You can also open the files in a text editor to see what she saved or keep a backup of your own.
You can also keep a separate note about who she is. Save her name, the way she talks to you, and the agreements you want to keep. Saving or changing that note requires your confirmation. The guide shows how to make it available in new chats.
Start by saving one thing
Follow the official setup guide (Chinese). If you already use DeepSeek Harness (DSH), run this command:
dsh plugin --profile web add @furongjun1999/[email protected]
- In chat, say, “Please save this in LINGSHU. When I say I'm tired, hear me out first.”
- Once it's saved, open a new chat and ask, “Please check LINGSHU. What did I ask you to do when I say I'm tired?”
If startup says “read-only,” you can only look up existing memories. Follow Installation and operations to enable writes, then try saving a memory.
For experienced users: version, write access, and review
Current npm version 0.11.4 · the latest host verification baseline remains 0.11.3 on DSH 0.2.2-rc.5; no independent host verification for 0.11.4 is recorded yet.
In the local check, LINGSHU loaded in DSH Web and its MCP backend started. Leave any unset optional environment variables out of your profile. See the DSH setup guide and the verification record.
A write credential is issued automatically at first start. If that fails, the plugin falls back to read-only guest. DSH automatically recalls recent memories from the current session. Use cg(op=read) or mdcg_recall for cross-session queries.
The contextual layer is readable and writable; the knowledge and self layers require review, and the self layer additionally requires your authorization.
| Layer | Default | What it needs by default |
|---|---|---|
Contextual contextual |
readable + writable | nothing, written directly |
Knowledge knowledge |
review required | reflection unit (reflect) |
Structural structural |
review required | reflection + verification; human adjudication must come from an external signer |
Self self / anchor |
review + authorization | reflection + verification + human adjudication (your confirmation) |
Default configuration: MDCG_WRITE_GATE=enforce (this is the value when unset, and a misspelled value also falls back to enforce). MDCG_REVIEW_CHANNELS=hive,subagent declares deployment capability only; it is not review evidence. Knowledge and stricter layers require write-gate-verifiable evidence: a signed proof, a decisions ledger record meeting actor/freshness/hash/verdict checks, or a trusted in-process adjudication grant. A standalone ccg action=review entry in _units.jsonl does not automatically become write proof; its CCG attestation is bound to the candidate in the separate link workflow.
Writing:
cg(op='write', layer='contextual', content='# Function: …\n# Conditions: …\n# Sub-features: …\n# Execution: …\n# Verification: …\n# Not applicable: …')
Write the body in the CCG six-element form; only committed means it actually landed. If a write is refused, provide valid review evidence or put the entry in the contextual layer — do not switch the gate off for one temporary conclusion. See Permissions and review model (Chinese) and guide section 5.6 (Chinese).
Public benchmark
Ornn8 third-party benchmark 675/714 (94.5%) (0.11.2 handoff-script recall entry, reported separately from the default DSH path, automatically graded by the Ornn8 grading chain). Report (Chinese) · Evaluation overview (Chinese)
🤝 Contributing and verification
We welcome contributions backed by verification. For issues, include the conditions, a minimal reproduction, and observed results. For pull requests, explain the change and provide the commands and results needed to reproduce it independently.
Designer Perspective skill (Chinese) gives DeepSeek a way to think before acting on complex tasks. It asks whether the action is warranted, why it matters, and whether the prerequisites are met, then surfaces missing information and ways to verify the conclusion.
Explore related projects
Loading…
