dsh-companion-memory

Long-term memory written by the character itself. A sorting plugin watches the workspace and, once conversations have been quiet past a threshold, opens its own session to run the bundled extraction script and turn the recent exchanges into memory files; a heartbeat plugin later re-opens sessions on a probability curve that rises with the time since the last exchange, with quiet hours and a random delay. Ships the memory templates, the sorting guide and the extraction script. Needs Python 3.8+ with zstandard, plus manual setup after install (a preset with agent-instructions, templates copied into the workspace, defaultPreset/sortPreset set to real preset ids; a wrong id fails silently with one log line). Plugin-opened sessions run with full permissions by default. Tested on DSH 0.2.0-rc.2.

Overview

Long-term memory written by the character itself. A sorting plugin watches the workspace and, once conversations have been quiet past a threshold, opens its own session to run the bundled extraction script and turn the recent exchanges into memory files; a heartbeat plugin later re-opens sessions on a probability curve that rises with the time since the last exchange, with quiet hours and a random delay. Ships the memory templates, the sorting guide and the extraction script. Needs Python 3.8+ with zstandard, plus manual setup after install (a preset with agent-instructions, templates copied into the workspace, defaultPreset/sortPreset set to real preset ids; a wrong id fails silently with one log line). Plugin-opened sessions run with full permissions by default. Tested on DSH 0.2.0-rc.2.

Installation

Install from GitHub

dsh plugin --profile web add github:xy261624/dsh-companion-memory

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.