Towzai/dsh-memory

Cross-session memory plugin for DeepSeek Harness: YAML-backed remember / recall / view / list / forget / pin tools with embedding semantic search, title-first injection, and two-level (session/auto) automatic injection — the agent naturally carries memory without remembering to call a tool. Fixed memories inject on the session's first step only, then ride the history (no per-round re-render); injected memories are concise titles with ids, expanded on demand via view; auto-level memories are retrieved by topic and never pollute the fixed injection set; injected memories are prefixed so the model never mistakes them for dialogue — LLM KV cache hit rate is unaffected.

Agent Capabilities ★ 3 updated 2026-09-08 ⚠️ needs adapt
View on GitHub ↗

Install

dsh plugin --profile web add ./towzai-dsh-memory.tgz

Source install per README (English edition): inside a dsh checkout run pnpm install && pnpm run build, then register in your profile patch (~/.dsh/profiles/web/cordis.patch.yml): - insert: [{id: dsh-memory, name: '@towzai/dsh-memory', config: {file: /path/to/memory.yaml, injectLimit: 8}}]. Requires a local ollama instance with an embedding model (default qwen3-embedding:0.6b; override via DSH_MEMORY_EMBED_MODEL). No npm package published.

Compatibility

DeepSeek Harness web profile. Requires local ollama with an embedding model (default qwen3-embedding:0.6b).

Details

Recent updates

YAML-backed memory tools with embedding search; title-first injection; two-level auto injection; prefix-cache friendly.

FAQ

What does it need?
A local ollama instance with an embedding model (default qwen3-embedding:0.6b, overridable via DSH_MEMORY_EMBED_MODEL).
How is memory injected?
Fixed memories inject once on the first step (title-first, expanded via view); auto memories are retrieved by topic per request.
Does it hurt prefix caching?
No — memory enters history like normal messages, so the system prompt + history prefix stays identical and KV cache hits are preserved.

Alternatives

Aik358/dsh-auto-memory · Scorp1o117/dsh-tdai-memory · biedongbin/dsh-claude-compat

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins