dsh-channel-memory: A dedicated workspace for WeChat channel sessions and a shared long-term memory.

dsh-channel-memory is a DSH memory plugin maintained by Yuncan050115 that addresses the issue of WeChat channel (e.g., wxbridge) sessions scattering across the default workspace and memory incompatibility after switching sessions. It determines session attribution by verifying the `cwd` from the host's `Workspace.attachSession`, places mobile sessions into a configurable workspace (`~/.dsh/channel-workspace`), and maintains shared memory using atomic rename plus SHA-256 (`~/.dsh/channel-memory/memory.json`). The plugin registers five tools—`memory_write`, `search`, `list`, `forget`, and `channel_workspace_info`—injecting prompts via `systemPrompt.section` and keeping pinned memory in the index. It has zero runtime dependencies, is compatible with DSH 0.2.1-rc.5 / cordis 4.0.5, version 0.1.3, and is licensed under MIT. To install, run `pnpm add github:Yuncan050115/dsh-channel-memory` in your profile directory; the npm package of the same name is currently a placeholder version (0.0.0-stage).

Read More