Back to home

highland0971

dsh-native-memory

Native, per-workspace long-term memory for DeepSeek Harness: approval-gated writes, cited provenance, FTS cross-session recall — no external server, no extra runtime dependency.

Stars
0
Language
TypeScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-native-memory

Awesome DSH Plugin License: MIT

Native, per-workspace long-term memory for DeepSeek Harness (dsh): facts and profiles stored on the harness's own storage-domain, cross-session recall through session-query FTS, approval-gated writes, and cited provenance — no external server, no extra runtime dependency.

⚠️ Installing a plugin runs third-party code on your machine with your own permissions. Review the source (src/) and the security model before installing.

Why this one

dsh-hermes-memorydsh-native-memory
Storage~/.dsh/settings.yaml namespacededicated storage-domain unit (~/.dsh/storages/dsh_memory.json)
Scopeuser-global, all projectsper workspace (exact-cwd authorization)
Write safetysilent, model-onlyhuman approval gate + session-log audit
Recalleverything always injected (hard caps)bounded always-on profile plus on-demand recall + FTS over past sessions
Dependenciesvendored imports into the harness checkoutnone beyond zod + the harness itself

See docs/design.md for the full architecture and the competitive landscape analysis.

Install

dsh plugin --profile web add dsh-native-memory   # npm after release
dsh plugin --profile web add /path/to/this/repo  # from a checkout

Restart dsh web. The bundle enables session-query full-text search and adds the memory tools to every session. Details and configuration: docs/install.md.

Tools

ToolKindGate
memory_rememberadd/update a fact in this workspaceapproval
memory_editreplace a factapproval
memory_forgetarchive a fact (soft delete)approval
memory_recalldeterministic scan over this workspace's factsnone
memory_searchFTS over this workspace's past sessionsnone
memory_profileread the always-injected workspace profilenone

Every fact records its origin (sessionId, seq) — memory stays reconstructable from the lossless session log.

Development

pnpm install
pnpm build && pnpm typecheck && pnpm test

New contributors start at docs/handoff.md and docs/contributing.md. Chinese docs: README.zh.md.

License

MIT