dsh-file-memory
Manifest validFile-backed working memory: memorize/recall key premises verbatim in a session notes file so they survive context compaction losslessly.
@deepseek-ai/dsh-file-memory
中文 | English
File-backed working memory for long tasks. Two model-facing tools — memorize and recall — keep key premises as verbatim bytes in a session-scoped notes file inside the workspace, so they survive context compaction losslessly: a summarizer can blur or drop a fact, but a file round-trips it byte-exact.
Why
Compaction checkpoints are LLM-generated and LLM-rewritten generation after generation; the prompt-space "state document" proposals still re-summarize the previous state every pass. Files are the only lossless medium the agent already has: write once, read back exactly. This is the pragmatic complement to prompt-space compaction, usable today on the shipped compaction-basic backend.
Tools
| Tool | Behavior |
|---|---|
memorize(entries) | Appends verbatim deduplicated lines to <workspace>/.dsh-notes/<session>.md. |
recall(query?) | Reads the notes back, optionally filtered to lines containing query; caps output at maxRecallChars. |
Both require an agent-backed session and a mounted fs service; they resolve the notes file relative to the session's workspace cwd (falling back to the backend default when the session has no cwd).
Config
| Field | Default | Meaning |
|---|---|---|
maxRecallChars | 6000 | Recall output cap. |
notesDir | .dsh-notes | Notes directory name inside the workspace; must be a bare directory name. |
maxRecallChars must be an integer >= 1; misconfiguration throws at plugin load.
Install
Not on npm yet - install from this repository:
npm install github:ICCuse/dsh-file-memory
# or: pnpm add github:ICCuse/dsh-file-memory
Then mount the bundle (declared in package.json 'dsh.bundle'):
- id: dsh-file-memory
name: 'dsh-file-memory'
Or, once published, 'dsh plugin --profile web add dsh-file-memory'.
Comments
Loading…
Similar plugins
Layered file memory for DeepSeek Harness with workspace-scoped USER/MEMORY notes, background consolidation, and hybrid session recall.
★ 0
↓ 55/wk
dsh plugin --profile web add dsh-file-memoryWorkspace-isolated durable memory for DSH, with searchable, auditable, correctable, and removable workspace memories plus controlled global memory.
★ 0
↓ 268/wk
MIT
TypeScript
dsh plugin --profile web add @flowingspring/dsh-workspace-memoryby dshplugin-me
Evidence-backed working memory for DeepSeek Harness: a cited ledger of what already worked in this workspace, built from the session log you already have. No index, no model, no capture step.
★ 0
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-precedentby wojiao42
文件型长期记忆:每个会话注入你自己的 Markdown 记忆文件,提供读写工具,并能查出 DSH_HOME 漂移;不读对话、不联网 · File-backed memory for DeepSeek Harness, with verifiable constraints
★ 0
MIT
JavaScript
Oct 7, 2026
dsh plugin --profile web add dsh-memory-filePersistent project memory, event-sourced task lifecycle, context budgeting, and cooperative multi-agent handoffs.
★ 0
↓ 67/wk
dsh plugin --profile web add dsh-continuumby kkwings
该仓库暂未提供项目说明。
★ 1
MIT
JavaScript
Oct 12, 2026
dsh plugin --profile web add dsh-super-memory