16480000/dsh-plugin-memory

16480000★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

README excerpt

dsh-plugin-memory English 中文 Session distillation memory for DeepSeek Harness: a dsh-plugin bundle that distills completed turns into durable knowledge entries and surfaces each entry to the model as a memory- skill. The mechanism ports a prior task-distillation design (distill on completion, merge with -driven fusion, one Markdown entry per memory plus an index). What it does - On every turn/end with reason completed , collects the turn's direct human question, final assistant answer, and tool calls. Answers whose tail asks the user for more input are skipped. - One auxiliary model call distills the question/answer into strict JSON — title , answer , sources , and optionally merge with , the slug of an existing entry the model judges same-topic. A reported merge with triggers a second fusion call over the existing entry plus the fresh distill; a failed fusion keeps the fresh distill but still supersedes the old entry. - Entries land in the memory directory (default /memory ): one .md Markdown file per entry plus a index.json mapping slugs to records. Index writes are atomic (temp file + rename); entry writes serialize through one promise chain. Slugs are lowercase ASCII [a-z0-9-] …

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

Category