Skip to content

About

Syncing memory across harnesses through plain files.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

鮃píng

GitHub release MIT License Platform: Windows GitHub Stars

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.

安装 / Installation

dsh plugin --profile <name> add github:AkutaZehy/dsh-hirame

<name> 替换为实际的配置名(在 CLI 下使用时通常是 web)。安装后建议完全重启 dsh 以生效。

Replace <name> with the actual profile name (web by 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.

配置 / Configuration

会话记忆的路径按下述优先级进行回退:

  1. profile patch 里的 memoryRoot 字段(推荐)
  2. 环境变量 DSH_HIRAME_MEMORY_ROOT
  3. 按 ZCode 的规则自动计算1:sha256(小写化的工作区路径) 前 16 位,映射到 ~/.zcode/cli/memories/projects/<slug>-<hash>/memory——dsh 在哪个目录开会话,就自动命中 ZCode 同一个项目记忆桶

The memory root falls back in the following order:

  1. the memoryRoot field in the profile patch (Recommended)
  2. the DSH_HIRAME_MEMORY_ROOT environment variable
  3. 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.

设计 / Design

docs/DESIGN.md

参考 / References

本插件的开发参考了下述组件。

The development of this plugin referenced the following components.

License

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.

Footnotes

  1. 别问为什么,问就是我自己其实在用 ZCode + 本插件是由 ZCode 侧的记忆系统(主)大幅改写而来。 ↩

  2. There's no good reason but this plugin is actually a rewrite of ZCode's memory system. ↩

About

Syncing memory across harnesses through plain files.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages