hjqcan/dsh-goodmemory

Automatic cross-session memory for DSH, backed by a local GoodMemory store that recalls before a step and writes after a turn.

Adds durable memory to a harness that otherwise forgets between sessions: recall runs before a model step, writeback after a successful turn, and the recalled context is an identified DSH user message so everything the model saw stays reconstructable from the session log. The scoping is narrower than it could be, deliberately — recall fires only when the final pre-step batch contains direct user text, so tool-only continuations and plugin context never trigger another lookup, and writeback carries direct user text plus the final assistant text while excluding tool results, reasoning, images and injected context. Runtime failures are logged with phase, session and turn identity and the turn continues, while startup failures stay fatal.

Memory ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-goodmemory@0.1.2

The pinned npm line, which the README writes that way on purpose: DSH is still an RC and the package pins its peers, so a new RC is unsupported until the integration suite passes against it. Follow it with dsh --profile web --dump-config and dsh --profile web; use --profile headless instead of web for the headless composition. Managed mode is the default and needs Bun installed first, because it starts the published HTTP bridge as a sidecar.

Compatibility

Pinned to @deepseek-ai/dsh 0.1.0-rc.8 and goodmemory 0.8.3, on Node ^22.19.0 or >=24.0.0, with Bun >=1.3.14 for managed mode only. GOODMEMORY_BUN_BINARY can name a non-default Bun. External mode connects to an existing bridge and keeps the token in an environment variable via tokenEnv rather than in DSH config; activation then verifies health, the exact phase-39.http-memory.v1 contract and an authenticated recall, and fails activation on any mismatch. A sidecar that crashes after activation is not restarted automatically — DSH keeps running without memory and logs the failure until the plugin is reloaded.

Details

Alternatives

nuochan/dsh-core-memory · ysqp6-lang/dsh-kymemory · fonlan/dsh-gitmemo

More plugins in Memory

Browse more in Memory

Guides for Memory plugins