tr1v3r/dsh-ltm
Local SQLite long-term memory with CJK-aware tokenized search, hybrid BM25 plus character n-gram rerank, duplicate detection and expiry review.
Why another memory plugin: dsh-memory is flat text with FTS5 and the default tokenizer, so Chinese retrieval effectively fails because whole sentences become single tokens. LTM stores structured records in SQLite with CJK-aware tokenized search, hybrid BM25 plus character n-gram rerank, near-duplicate detection, expiry review timestamps and bounded recall, and offers one-command migration from dsh-memory. Recall is capped by an optional prompt token budget, and nothing requires network access.
Install
dsh plugin --profile web add @tr1v3r/dsh-ltmThe install line from the README's install-into-a-profile section; manual composition is documented for versions that predate the bundle manifest. npm package @tr1v3r/dsh-ltm, latest 0.3.3, registry repository resolves to this repo.
Compatibility
DSH peer requirements include verified 0.2.1-rc.1 desktop and 0.2.1-rc.2 CLI runtimes alongside the pre-0.2.0 range; other 0.2.x prereleases need separate validation. The database path is required with no code-side default, recommended at memory/ltm.db under $DSH_HOME; the legacy memory/memory.db is never written.
Details
- Repo: tr1v3r/dsh-ltm
- Category: Memory
- Stars: 1
- Version: 0.3.3 (npm); MIT
Alternatives
creativedswork/dsh-expmem · Luisarg03/dsh-memory-vault · fonlan/dsh-gitmemo