gezi-wen/sage-mem
Cross-session memory for DSH stored as plain markdown: one .md per memory with YAML frontmatter (name, description, metadata.type as user/feedback/project/reference, tags, up to 20 of them, aliases, baseline and baselinePriority) under ~/.sage-mem/memory. Every turn the plugin scores candidates by description, file name and aliases, takes at most ten, then runs BM25 paragraph retrieval over them and injects the matching paragraph with its line range, under a per-session byte cap; baseline memories are injected unconditionally on a new session's first step, at most eight. The model also gets search_memory and read_memory tools, the latter returning revision_changed instead of stale text. Writes carry a version guard, so a stale overwrite is refused or left as a pending conflict record rather than silently clobbering. Optional autodream merges duplicates, fixes the index and links, writes a manifest, and takes rollback snapshots. A web UI adds a memory page, type and tag filtering, an audit page, archive candidates, locks and a memory star map.
Install
dsh plugin --profile web add sage-memCopied verbatim from the README's Quick Start bash block, which tells you to replace web with your own profile name. sage-mem 1.0.2, whose registry repository field (git+https://github.com/gezi-wen/sage-mem.git) resolves back to this repo.
Compatibility
Declares engines.dsh: >=0.1.2-rc.1 — a one-sided open interval with no upper bound — and engines.node: >= 18, with compatibility recorded for DSH 0.1.2-rc.1 through 0.2.0-rc.2 and a single build covering both the 0.1.x and 0.2.x lines. Memories live at ~/.sage-mem/memory by default (SAGE_MEM_DIR overrides), state in a sibling .sage-mem directory. Restart DSH after installing, and note that some settings only take effect after a restart. The only network request is a GitHub releases version check when the Memory management page opens, and autodream — the only feature that calls a model — is off by default.
Details
- Repo: gezi-wen/sage-mem
- Category: Memory Enhancement
- Stars: 10
- Version: 10 stars, JavaScript, Apache-2.0, created 2026-08-14; installs from npm package sage-mem 1.0.2, whose registry repository field resolves back to this repo; English README with a README.zh.md translation.
- Last push: 2026-09-18
- First seen: 2026-08-14
Alternatives
Bleed00/dsh-claude-mem · clouwer/dsh-memsearch · fengshenx/dsh-remind