JohnXu22786/memory-standard
dsh-memory-standard
Memory Standard Protocol (mm) for DeepSeek Harness: layered MEMORY.md, deterministic budgets, frozen snapshots, cross-agent markdown/URI interop; dsh bundle + standalone CLI.
Install
npx @deepseek-ai/dsh plugin --profile demo add ./Restart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/memory-standard)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from JohnXu22786/memory-standard, cleaned of badges and images.
dsh-memory-standard
A Memory Standard Protocol (mm) plugin for the DeepSeek Harness (dsh): a deterministic, layered, cross-agent memory system built on plain markdown files — not a proprietary protocol.
The dsh ecosystem has dozens of memory plugins but no shared standard, and the official core only ships a default-off MCP memory example. This plugin claims the missing "standard seat": deterministic budgets + layered MEMORY.md + cross-agent mutual recognition + session-log ingestion that works with official compaction/session logs.
- Layered memory —
MEMORY.mdis the hand-loaded index (hard cap: 200 lines / 25 KiB, default); detailed notes live inmemories/<topic>.mdand load on demand. - Deterministic budgets — over any budget is a structured error with usage metrics demanding an index rewrite, never a silent truncation. Writes carry a character budget and return usage so an agent can compress on the spot.
- Cross-agent mutual recognition — a documented plain-markdown format,
portable
mm://<memoryId>/<topic>URIs, a JSON Schema (schema/memory.schema.json), and an open read/write API. No closed protocol. - Write timing —
mem_writeAPI plus session-end / periodic nudging; writes persist to disk immediately and load in the next session (in-session reads stay frozen, protecting any prompt cache). - Ingestion collaboration —
mem_digestrecognizes official dsh session logs / compaction output as a memory source and distills candidate memories (optional, self-contained, LLM-free). - Toolchain — dsh tools
mem_read,mem_write,mem_search,mem_budget,mem_digest, plus adsh-memoryCLI.
The core library is dependency-free (Node built-ins only) and works both inside dsh and standalone.
Status
Developer-preview dsh ecosystem; format version mm v1 (see
SPEC.md). Compatible with the installed @deepseek-ai/dsh CLI
and bundle format (dsh.bundle.patch + cordis.patch.yml + apply(ctx)).
Quick start
1. Integrate with dsh (local directory bundle)
From the directory that contains this package (dsh-memory-standard/):
dsh plugin --profile demo add ./
# or install directly from this GitHub repository
dsh plugin --profile demo add github:JohnXu22786/memory-standard
# or from npm once published
dsh plugin --profile demo add dsh-memory-standard
# the standalone CLI is also published as a global npm bin
npm install -g dsh-memory-standard
# boot the profile; the five mem_* tools + the 'memory-standard' system section load
dsh --profile demo
dsh plugin forwards to pnpm inside the profile; peer dependencies
(@deepseek-ai/cordis, @deepseek-ai/dsh-tools, @deepseek-ai/schemastery)
resolve from the dsh installation. Verified against [email protected].
Notes for other install paths:
- As a dev overlay → copy
cordis.patch.ymland point a--patchoverlay at the package's entry (name= package name for the row).- The plugin auto-initializes the memory root (
$DSH_HOME/memory, or$DSH_MEMORY_ROOT) on first load — no manualinitneeded.
2. Configure
The bundle ships defaults; every value is overridable by overriding the
memory-standard row by id in a later layer (profile cordis.patch.yml,
$DSH_HOME overlay, or --patch):
…

