@guntur-d/dsh-memory
Persistent cross-session memory plugin for DeepSeek Harness: workspace-scoped durable facts with model-facing memory_write/list/search/forget tools and bounded prompt injection
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guntur-d/dsh-memory说明文档
阅读完整 README ↗dsh-memory
Persistent cross-session memory plugin for DeepSeek Harness. Facts the model saves are stored durably per workspace (the owning session's cwd) on the harness storage-domain seam, and injected as a bounded prompt section into later sessions in the same workspace — so something important established in one session carries over to the next.
ctx.memoryservice:save/list/search/forget- Model tools:
memory_write,memory_list,memory_search,memory_forget - Prompt section:
app:memory(order 50, default 8 lines) in every session of the workspace
Requirements
The harness profile must mount the storage seam with a backend:
@deepseek-ai/dsh-storage(the hub)@deepseek-ai/dsh-storage-json(default, human-readable JSON files) or@deepseek-ai/dsh-storage-sqlite@deepseek-ai/dsh-storage-domain(the domain facility this plugin opens thememorydomain on)
The shipped web profile already mounts all three with the json backend — no extra setup needed there.
Install
# from this repo (sources build on install via prepare)
dsh plugin --profile web add github:guntur-d/dsh-memory
# or from npm once published
dsh plugin --profile web add @guntur-d/dsh-memory
The dsh.bundle.patch manifest field makes the plugin a bundle layer: the included cordis.patch.yml row activates the plugin automatically in the profile. GitHub-topic discovery: dsh-plugin.
Usage
The model calls memory_write when something durable is established (a port, a preference, a non-obvious project fact). You can prompt it explicitly:
Please remember: the staging server listens on port 3080 and the deploy script is deploy.sh
A later session in the same workspace starts with an app:memory section listing the recent memories, and can memory_list / memory_search / memory_forget (by id) on demand.