DSH Hub

JohnXu22786/memory-standard

dsh-memory-standard

BundleMemory0 GitHub stars· updated 2026-08-20

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

dsh-memory-standard DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/memory-standard.svg)](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

English | 简体中文

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 memoryMEMORY.md is the hand-loaded index (hard cap: 200 lines / 25 KiB, default); detailed notes live in memories/<topic>.md and 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 timingmem_write API 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 collaborationmem_digest recognizes 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 a dsh-memory CLI.

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.yml and point a --patch overlay 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 manual init needed.

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):

Related plugins