dsh-hirame 是一个 DeepSeek Harness 插件,用于高效、自动的会话记忆注入、提取、整理,通过纯文本文件实现记忆的跨 Harness 同步。
dsh-hirame is a DeepSeek Harness plugin for efficient, automatic session-memory injection, extraction and consolidation, syncing memory across harnesses through plain files.
dsh plugin --profile <name> add github:AkutaZehy/dsh-hirame<name> 替换为实际的配置名(在 CLI 下使用时通常是
web)。安装后建议完全重启 dsh 以生效。Replace <name> with the actual profile name (
webby default if you are using CLI). Restart dsh completely after installing.
dsh plugin --profile <name> remove dsh-hirame卸载后建议完全重启 dsh。已产生的记忆 md 文件保留在记忆根目录,不会被自动删除;确认不再需要时可手动清理。
It is recommended to restart dsh after uninstalling the plugin. Existing memory Markdown files remain in the memory root directory and are not automatically deleted; you can manually remove them if they are really no longer needed.
如果您同时在使用 ZCode,由于该插件默认回退与 ZCode 共用记忆目录,除非您确实确定不再需要它们,否则不建议一并移除记忆信息。
If you are also using ZCode at the same time, please note that this plugin shares the memory directory with ZCode; therefore, it is not recommended to delete the memory data unless you are ABSOLUTELY SURE you no longer need it.
会话记忆的路径按下述优先级进行回退:
- profile patch 里的
memoryRoot字段(推荐) - 环境变量
DSH_HIRAME_MEMORY_ROOT - 按 ZCode 的规则自动计算1:
sha256(小写化的工作区路径) 前 16 位,映射到~/.zcode/cli/memories/projects/<slug>-<hash>/memory——dsh 在哪个目录开会话,就自动命中 ZCode 同一个项目记忆桶
The memory root falls back in the following order:
- the
memoryRootfield in the profile patch (Recommended) - the
DSH_HIRAME_MEMORY_ROOTenvironment variable - auto-detection with ZCode's exact rule2 — the first 16 hex chars of
sha256(lowercased workspace path), mapped to~/.zcode/cli/memories/projects/<slug>-<hash>/memory; a dsh session opened in a directory automatically shares ZCode's project memory bucket for that directory
本插件的配置字段如下。
The plugin exposes the following configuration fields.
- id: dsh-hirame
name: 'dsh-hirame'
config:
enabled: true
memoryRoot: '\\path\to\your\memory' (optional)enabled 为总开关;memoryRoot 留空即走自动计算,填固定路径则所有工作区共享同一个桶。
enabled is the master switch; leave memoryRoot empty for auto-detection, or set a fixed path to share one bucket across all workspaces.
本插件的开发参考了下述组件。
The development of this plugin referenced the following components.
LICENSE (MIT)
本插件部分逻辑与文本移植自 ZCode(Apache-2.0),该部分遵循其原许可并保留归属。
Portions of this plugin are ported from ZCode (Apache-2.0) and remain subject to their original license with attribution.