yan5236/dsh-memory

yan5236★ 0TypeScriptLast synced: 2026-08-15

Open on GitHub

Two-phase long-term memory plugin for DeepSeek Harness (DSH): per-session extraction + global consolidation, always-injected summary, and memory_list/read/search/add tools.

README excerpt

English · 简体中文 dsh-memory · Long-term memory plugin for DeepSeek Harness A two-phase memory pipeline (per-session extraction → global consolidation), a summary that is always injected into new sessions, and four on-demand retrieval tools. Why long-term memory Without memory, every session restates user preferences and re-steps known landmines. dsh-memory extracts durable knowledge from finished sessions and periodically consolidates it into a dense navigation summary (injected into every session) plus a grep-friendly handbook, so future sessions need fewer repeated instructions, waste fewer tool calls, and avoid known failure modes . The design is adapted from the Codex memories system (two-phase extraction/consolidation, three-layer artifact layout, job claims, cooldown, redaction) and re-composed for DSH: no SQLite, no git baseline, no resident consolidation subagent. Features - 🧠 Phase 1 per-session extraction : after a session turns stop (debounced, 3 min default), its log is read, filtered, rendered, and redacted, then a model extracts structured memory ( raw memory + rollout summary + slug ). Low-signal sessions produce an empty no-op. - 🧩 Phase 2 global consolidation : on …

View full README on GitHub →
Tools / Devdeepseek-harnessdsh-pluginsearch

Category