Jesse-njx/dsh-memory

Cited memory over DSH's lossless session log: when a session ends, a background distillation pass extracts durable facts — user preferences, project decisions, environment quirks, corrections — into small markdown files under ~/.dsh/memory/. Every memory carries a citation (sessionId, [start..end]) pointing at the exact log events it came from, so a distilled fact can always escalate back to the original context. The next session gets a compact index of those memories plus two tools: memory_read (the full memory) and memory_expand (bounded excerpts).

Agent Capabilities ★ 2 updated 2026-08-28 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add github:Jesse-njx/dsh-memory

GitHub install (npm package @dsh-memory/bundle is not on the registry — 404 verified 2026-08-29): dsh plugin --profile web add github:Jesse-njx/dsh-memory. The distillation pass routes through ctx.llm and reuses the session's own provider/model by default; override with distill.provider / distill.model. Config via profile patch or cordis.patch.yml (home, maxIndexTokens, recall, distill fields).

Compatibility

DeepSeek Harness bundle. Uses the session's own provider/model for distillation unless overridden.

Details

Recent updates

distilled cited memories from lossless session log; citation (sessionId, range) to exact events; memory_read/memory_expand tools; compact recall index with token cap.

FAQ

How are memories created?
When a session ends, a background distillation pass extracts durable facts into small markdown files under ~/.dsh/memory/.
What is a citation?
Each memory carries (sessionId, [start..end]) pointing at the exact log events it came from, so facts can always escalate back to source.
Which model distills?
The session's own provider/model by default — override with distill.provider / distill.model.

Alternatives

Scorp1o117/dsh-soul-md · SaiSenBox/dsh-prompt-manager · vlln/dsh-loop

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins