dsh-memory-journal (js-shell)
wzz618/dsh-memory-journal/js-shell
Journal-style long-term memory: persona, user profile, long-term notes and daily/weekly entries are injected into every conversation, and a settings page lets you browse and edit them. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Установка
dsh plugin --profile web add github:wzz618/dsh-memory-journalЭтот плагин находится в подкаталоге js-shell репозитория.
README
dsh-memory-journal
Once enabled, every conversation automatically carries persona,
preferences, and journal-style long-term memory — no need to reintroduce
yourself every time, and the content keeps self-iterating through
conversation (writing diary entries, promoting anything worth keeping into
MEMORY.md, reviewing the week into a journal entry, and adjusting
SOUL.md's persona when warranted). Explicit search/recall tools are only
meant to be called when the user clearly says "remember" or "recall"
something.
Not an official DeepSeek plugin; inclusion/use implies no endorsement or support commitment.
Two packages
DeepSeek Harness's plugin system requires forced system-prompt injection and
host-side web UI to run in-process (Cordis's ctx.systemPrompt,
ctx.webServer), while model-callable recall/write tools can be wired in
through the language-agnostic MCP protocol instead. So:
- js-shell/ — a thin Cordis plugin. Seeds and injects
SOUL.md/USER.md/MEMORY.md/today's diary into every system prompt, exposes a loopback-only HTTP API to view/edit them, and adds a "Memory" settings-page section plus a composer-dock status chip to the Web client. - py-mcp/ — a standalone Python MCP server exposing
memory_search/memory_get/memory_write/memory_weeks_missing_journal, wired in through DSH's generic@deepseek-ai/dsh-mcp-clientbridge. No Cordis/JS code.
Both share one on-disk directory — $DSH_HOME/storages/dsh-memory-journal/
(default ~/.dsh/storages/dsh-memory-journal/, the same
$DSH_HOME/storages/<plugin> layout dsh-persona-dafeiyu uses) — and don't
depend on each other's runtime.
Storage layout
~/.dsh/storages/dsh-memory-journal/
├─ SOUL.md # persona — seeded with a real starting persona
├─ USER.md # user preferences — seeded with a skeleton
├─ MEMORY.md # long-term facts — seeded with a skeleton
├─ scopes.json # on/off per global/workspace/session — plugin-owned, not Cordis config
└─ memory/
├─ 2026-10/2026-10-27.md # tonight's diary
└─ weekly/2026-W43.md # weekly journal
All plain Markdown — open and edit directly. SOUL.md/USER.md/MEMORY.md
are created with starter content when the data directory itself is created,
not on every start: deleting one of them is permanent, and an existing
directory is never topped up. SOUL.md's default persona is adapted from the
dsh-persona-dafeiyu
plugin (MIT License).
Install
cd js-shell && npm install -g dsh-memory-journal # or: npm link
cd py-mcp && pip install dsh-memory-journal # or: pip install -e .
Then enable it via examples/dsh-memory-journal.cordis.yml:
dsh web --patch "$PWD/examples/dsh-memory-journal.cordis.yml"
enabled: true only seeds the initial global default in scopes.json the
first time it's created (memory is on everywhere by default) — after that,
whether injection is on is resolved from scopes.json itself (session
overrides workspace overrides global), not from this static config field.
Toggle it off for a specific workspace/session from the composer-dock
status chip (📓) under the message box, or directly via POST /api/dsh-memory-journal/scope. Both packages must point at the same
directory: js-shell's dataDir config field and py-mcp's
DSH_MEMORY_JOURNAL_DATA_DIR env var (both default to
~/.dsh/storages/dsh-memory-journal when unset).
Installs from before 0.1.0 kept their files in ~/.dsh-memory-journal. When
that directory still exists and the plugin is using its default location,
startup copies whatever the new directory is missing (nothing is overwritten,
and the old directory is left untouched), so an upgrade does not look like a
reset. Nothing else is migrated: pointing dataDir or the env var somewhere
new starts that directory on its own.
Known limitations
- Nightly diary / weekly journal nudges are reactive, not a real scheduler — they only fire the next time someone talks to it.
- User-edit detection only covers edits made through js-shell's own HTTP API, not direct file edits.
- Editing a file that changed on disk since it was loaded (e.g. the model wrote a diary entry through the MCP server while the settings page had it open) is rejected rather than merged — the person has to reload and redo the edit. There is no conflict-resolution UI, just refuse-and-reload.
- No multi-contact isolation — everyone sharing a DSH instance shares the same memory, by design.
MEMORY.mdis never auto-pruned; only the injected copy is truncated.- Neither the composer dock nor the "Memory" settings-page section has been
visually verified in a real browser (this environment has no GUI) — check
both once in a real
dsh websession.
See js-shell/README.md and
py-mcp/README.md for package-level detail, and
RELEASING.md for the release procedure.
License
MIT