dsh-openclaw-memory: Continuing OpenClaw's Persona and Memory in DSH

Preface

In OpenClaw, an assistant is often more than a single model call for a conversation; it is an identity, preferences, operational rules, and long-term memory accumulated around a workspace: SOUL.md, IDENTITY.md, USER.md, AGENTS.md, BOOTSTRAP.md, MEMORY.md, and diary-style records under memory/ all together constitute a continuous context. If migrating part of the workflow to DeepSeek Harness (DSH), the common approach is to build another set of memories or perform a massive import, which easily leads to forking and duplicate maintenance from the original work.

dsh-openclaw-memory is positioned as a “continuity layer” during migration: it allows DSH to directly read your existing OpenClaw workspace, inject content within configurable context budgets and privacy boundaries, and manage the same Markdown via the native DSH Sidebar rather than starting a separate hidden database. The maintainer is GitHub user zzy-fxxxexxxyxxx; the npm package version is 0.1.4 in the repository’s package.json (subject to the registry at the time of your installation). Community directory page: SkillHub Plugin Entry; Source code and documentation: GitHub Repository.

What is this

In one sentence: dsh-openclaw-memory is a shared workspace bridging plugin between OpenClaw and DSH—the same set of Markdown source files, readable and writable by both clients (within the scope permitted by the plugin), without forcing a copy or import into a second memory system.

The relationship can be summarized in the README as follows:

OpenClaw workspace  ──┬──> OpenClaw
                      └──> dsh-openclaw-memory ──> DSH

One workspace. Two clients. No duplicate memory store.

The primary audience is: users currently using OpenClaw who are migrating some processes to DSH and wish to retain the same identity, preferences, instructions, and accumulated memories.

Core Features

Below are only the capabilities explicitly stated in the README and repository metadata.

Shared workspace, no second memory store

Point the plugin root to your already active OpenClaw workspace. There is no import wizard, hidden database, or automatic file migration; files remain in place, and OpenClaw and DSH treat the same directory as the source of truth (if they point to different directories, they are not considered shared and need to be verified separately).

Configurable context injection and preview

  • Bootstrap files: You can independently choose whether to include AGENTS.md, SOUL.md, IDENTITY.md, USER.md, BOOTSTRAP.md, MEMORY.md.
  • Daily memory: Option to include recent memory/YYYY-MM-DD.md and up to four latest memory/YYYY-MM-DD-*.md per day.
  • Budget and truncation: Supports character limits per file and total volume; Injection Preview allows you to view the assembled snapshot, space occupied by each file, and truncation status before deciding whether to rely on this context.
  • contextInjection mode:
  • always: Assemble context for every model request;
  • continuation-skip: Reuse the unmodified snapshot if the source files or relevant configurations haven’t changed for the same agent;
  • never: Disable context injection for the model and model-facing search tools; file access via Remote is still possible when the profile loads the plugin.
  • Sidebar: Browse top-level Markdown and the memory/ tree, switch between source and rendered preview, edit and save; write restrictions are limited to the permitted workspace surface with optimistic version validation.
  • Memory search: Perform bounded keyword searches via openclaw_memory_search.
  • Remote API: Provide list, read, search, preview, and conflict-safe writing via DSH Typert Remote; Settings / ConfigEditor supports live configuration updates with optimistic revision checks.

Security boundaries (Default)

The plugin is deliberately not a general file browser: it excludes credential-like file names, JSON artifacts, symbolic links, absolute paths, and path traversal by default; shared workspace content is treated as data, not superior to DSH system policies. includeCredentials: false is the default; includeCredentials: true requires explicit enabling (the truncated README emphasizes this is opt-in).

Installation and Enablement

Install the published plugin in the DSH profile:

dsh plugin --profile web add dsh-openclaw-memory

For local development, you can link a checkout (replace the path with your directory):

dsh plugin --profile web add link:/path/to/dsh-openclaw-memory

After installation, add the plugin configuration in the profile patch, or refer to cordis.patch.yml in the repository. An example snippet is as follows (change root to your own OpenClaw workspace path):

- id: openclaw-memory
  name: dsh-openclaw-memory
  config:
    root: /home/sunrise/.openclaw/workspace
    contextInjection: continuation-skip
    bootstrapFiles:
      - AGENTS.md
      - SOUL.md
      - IDENTITY.md
      - USER.md
      - BOOTSTRAP.md
      - MEMORY.md
    bootstrapMaxChars: 20000
    bootstrapTotalMaxChars: 60000
    userMaxChars: 4000
    dailyMemoryDays: 2
    dailyFileMaxBytes: 16384
    dailyFileMaxChars: 1200
    dailyTotalMaxChars: 2800
    includeDailyStartup: true
    timeZone: Asia/Shanghai
    includeCredentials: false
    maxFileChars: 200000

Note: dsh.client.platform is web; the bundle is injected via cordis.patch.yml, consistent with --profile web.

Typical Usage and Migration Sequence

The cautious migration steps suggested in the README can be reproduced as follows:

  1. Keep the existing OpenClaw workspace unchanged; back up according to your usual process before changing production configurations.
  2. Install the plugin in a test or independent DSH profile, pointing root to the workspace containing OpenClaw identity and memory files.
  3. Narrow the sharing scope first: Only enable files you intend to share and keep includeCredentials: false.
  4. Turn on Injection Preview, verify the snapshot, budget, and truncation, then enable regular context injection.
  5. Gradually shift traffic to DSH, while retaining OpenClaw to verify DSH responses and Sidebar editing behavior against the same batch of files.

The daily usage flow is summarized in the documentation as: Enter the plugin entry from the DSH homepage → Configure handoff in the Sidebar (shared root, bootstrap, and daily memory) → Verify the context actually received by DSH using Injection Preview → Continue maintaining the same workspace Markdown in the Sidebar.

The plugin will not modify OpenClaw’s agent configuration; if OpenClaw and DSH point to different workspace directories, they are not sharing the same source of truth.

Use Cases and Notes

Suitable for: Users already invested in persona / preferences / rules / memory/ diaries in OpenClaw, planning to run parallel with or gradually switch to DSH, and desiring “one Markdown, two clients,” previewable and limited context injection.

Notes:

  • DSH plugins run with the permissions of the current DSH process; please review the source code and LICENSE yourself before installation to ensure root and configuration items meet your security expectations.
  • The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer; the plugin comes from community maintainers and is not a built-in item in the official app store.
  • Configuration items and default values are subject to the repository README and cordis.patch.yml; it is recommended to re-check the documentation after upgrading the npm version.

Conclusion

dsh-openclaw-memory treats the OpenClaw workspace as the sole source, providing bounded injection, preview, Sidebar editing, and Remote on the DSH side, reducing the cost of “rebuilding memory when migrating to DSH”. Directory page: https://www.skillhub.cn/plugins/zzy-fxxxexxxyxxx/dsh-openclaw-memory; Repository: https://github.com/zzy-fxxxexxxyxxx/dsh-openclaw-memory.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye