DeepSeek Harness Plugin

Scorp1o117/dsh-soul-md

Stars ★ 47 Downloads (30d) 30,174 Category Memory Added 2026-09-05 npm dsh-soul-md

Manage soul.md persona cards and long-term memory, with workspace and session persona selection and tools to read and update them.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-soul-md

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Scorp1o117/dsh-soul-md

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

简体中文 | English

Add switchable persona cards and file-based long-term memory to DeepSeek Harness. Choose personas per workspace or session, and let the Agent read and write memory or update a persona through its tools.

Features

  • Character Library: browse covers, create and edit persona cards, and pick a default from the sidebar. The new-session page and conversation header let you choose a persona for one session.
  • Workspace personas: assign a default card to a workspace. Resolution order is session selection → workspace persona → default card → disabled.
  • File memory: the Agent can use memory_read, memory_append and memory_rewrite; soul_read and soul_update read and update persona cards.
  • Layered memory: separate a resident core.md from on-demand topics/*.md, with memory_search, keyword recall and post-compaction recall enabled by default; each can be turned off.
  • Per-persona memory: memory is enabled for each card by default and can be turned off independently without disabling the persona.
  • Subagent control: skip automatic persona and memory injection for subagents by default without changing the memory tools' scope; inheritance can be enabled in settings.

Soul centers memory on files and personas. For conversation capture, model-based extraction and vector recall, see DSH TDAI Memory. The plugins can be used independently.

Compatibility and installation

DSH Web / Desktop accepts host versions from 0.2.0-rc.2 onward at startup, including future prereleases. See package.json for the compatibility declaration. Node.js >=20.18 is required.

DSH 0.2.0-rc.2 does not have the new-session extension slot; use the conversation header selector there.

For Desktop, install its dsh command through Application → Manage dsh Command first:

dsh plugin --profile desktop add dsh-soul-md

Replace desktop with web for Web. Restart DSH and open Character Library from the left sidebar. The same interface is available under Plugins → Installed → dsh-soul-md. You can also install it through the Enhancement Suite.

Quick start

  1. Create a card in the Character Library and enter a name and Markdown content. Choose an automatic cover, a built-in design, or a local PNG, JPEG or WebP image. Preview the cover and save.
  2. Set the card as the default in the editor, or assign it to a workspace in the library's Settings. The new-session page and chat header can override the persona for one session. Switching workspaces can open another blank session, so check that session's selection.
  3. Talk to the Agent and let it use memory or persona tools as needed. Persona updates and memory writes depend on actual model tool calls and are not guaranteed to happen automatically.
  4. Layered memory, keyword recall and post-compaction recall are enabled by default and can be adjusted independently in settings.

Memory and settings

Appearance

Under Character Library → Settings → Appearance, Soul MD can follow the DSH theme or use explicit light, dark, and saved custom themes. The choice applies to both the sidebar library and the plugin details entry.

Paste a theme into Paste theme JSON and select Import and activate. A theme has version: 1, a unique name of 1–48 characters, a base of light or dark, and a colors object with at least one color.

{"version":1,"name":"Tundra","base":"light","colors":{"primary":"#315846"}}

Supported color keys are background, surface, text, muted, border, selection (selected and secondary controls), primary (primary action), and focus. Use #RRGGBB for each color. Omitted colors inherit from base. You can save up to 12 custom themes. Copy prompt for DSH Agent copies instructions for generating JSON you can import.

Setting Default Purpose
showPersonaSwitcher true Show the new-session and conversation-header selectors; hiding them preserves existing session choices
memory.inject true Inject the memory section into the prompt
memory.disabledCards [] Persona card names with memory disabled. Change and save the switch in the card editor
memory.layered true Enable core + topics; turn off for single-file memory
memory.scope persona persona uses the active card and can fall back to global memory when reading. global uses only shared memory
memory.coreSeparate false Give core.md its own injection budget in layered mode. The topic index and recall share injectMaxChars
memory.coreInjectMaxChars 8000 Character limit for the separate core budget. Truncation retains both ends
memory.recall keyword Suggest related topics starting with the second user message processed during this plugin run; set to off to disable
memory.recallPlacement context Put changing recall in runtime context by default; choose system for the system prompt
memory.indexMode all With keyword recall enabled, recall avoids injecting the full topic index every turn
memory.compactionRecall true After successful compaction or trimming, suggest recently used topic summaries on the next user turn
memory.injectMaxChars 8000 Character budget for memory injection
allowTemplates false Resolve prompt variables in personas and memories; by default braces are preserved literally
skipSubagents true Skip persona and memory prompt injection for subagents; set to false to let them inherit

Turn off Memory in the card editor and save to stop memory injection and recall for that card. All memory_* tools reject calls for that card, including from delegated subagents and team members. soul_read and soul_update still work. Memory files are kept and become available again when memory is re-enabled. Tool names may still appear in the tool list. Sessions with no persona card continue to use global memory.

With layered memory enabled, ask the agent to review the current conversation with memory_digest. It sends recent conversation text and relevant memory excerpts to the current model and returns proposed additions, rewrites, or deletions for your review.

Switching memory scope changes which files later requests can access. Existing memory files stay in place. Content already in conversation history, runtime-context snapshots, or tool results stays in the session after a scope change or after memory is turned off.

Keyword search is lexical, not semantic vector search. Recall supplies topic keys and summaries only; full text requires a tool read, and the injection budget still applies. With recall enabled and topics present, up to one quarter of the total budget is reserved for dynamic recall, so a long core does not crowd it out and the system prefix remains stable. The full topic index remains enabled by default so the model can discover topics without a lexical match; with many topics, recall index mode reduces resident content. Runtime context uses user-message snapshots. If the host disables or does not support runtime context, recall falls back to the system prompt. Older snapshots may remain in conversation history until compaction. topic: "core" or "core.md" targets resident core; existing topics/core.md is not moved automatically. Back it up and inspect it before manually reorganizing.

Explicitly saved settings keep their values; options not set use the new defaults. Layered memory reads existing single-file memory and preserves its contents when first appending to core.

The topic index and recall summaries use the heading and first body line of the last ## YYYY-MM-DD section, including the timestamped headings written by memory_append. Without a dated section, they use the file's first heading and first body line. memory_append suggests consolidation when a topic exceeds 8 KiB after an append. To merge duplicates or resolve conflicting conclusions, read the whole topic with memory_read(topic), then use memory_rewrite to put the current summary first and move old conclusions into ### subsections under History.

With no topic, memory_read returns the core file body in content and the topic index in a separate index field. The index is rendered from topics/*.md on every assembly and belongs to no memory file: memory_rewrite strips a copied index section before writing and reports the stripped byte count, an index snapshot stored in core.md by an older release is ignored on read and injection, and the next append or rewrite clears it from the file. Single-file memory (layered mode off) is untouched, so a heading of that name stays ordinary content there.

Persona settings live in the current profile; memory defaults to $DSH_HOME/soul-md/memory/. Back up and manage those files as needed. The interface follows the DSH language setting.

Development and feedback

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.