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
- Persona cards: create, edit and set a default card in the plugin page; select a persona for a session on the new-session page or in the conversation header, or hide the selectors in plugin settings.
- 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_appendandmemory_rewrite;soul_readandsoul_updateread and update persona cards. - Layered memory: separate a resident
core.mdfrom on-demandtopics/*.md, withmemory_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
Supports DSH Web / Desktop. The repository declares compatibility with 0.2.0-rc.2, 0.2.1-rc.1 / rc.2 / rc.3 / rc.4 / rc.5 and versions matching >=0.2.0-rc.2 <0.3.0; see package.json for the complete prerelease range. 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 Plugins → Installed → dsh-soul-md. You can also install it through the Enhancement Suite.
Quick start
- Create a persona card in the plugin page, enter a name and Markdown content, and save it.
- Set it as the default or assign it to a workspace; 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.
- 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.
- Layered memory, keyword recall and post-compaction recall are enabled by default and can be adjusted independently in settings.
Memory and settings
| 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; use the switch beside each card in the plugin page |
memory.layered |
true |
Enable core + topics; turn off for single-file memory |
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 beside a persona card to stop memory injection and recall for that card. All memory_* tools reject calls instead of falling back to global memory, 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.
Turning memory off does not remove content already present in the current conversation history, runtime-context snapshots or tool results. Start a new session to isolate those earlier contents.
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.
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
npm testruns the project tests. The historical detailed documentation preserves older configuration and migration details; install commands and compatibility information may be outdated.- npm · Issues · MIT License
Links
More in this category
vectorize-io/hindsight#coding-agents★ 60916
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
volcengine/OpenViking#examples/dsh-memory-plugin★ 42209
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
MemTensor/MemOS#memos-local-plugin★ 12392
Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.
agentscope-ai/ReMe#dsh★ 3799
Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.
zilliztech/memsearch#MemSearch★ 2873
Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.
vshulcz/deja-vu#extensions/dsh★ 1544
Cross-session memory and context recovery across forty-five other coding agents (45+) on this machine, reading session files they already wrote before install (Claude Code, Codex, Cursor, Windsurf, Trae, Antigravity, VS Code Copilot Chat, opencode, OpenClaw, Hermes, Kimi, Qoder, Cline, Zed, Magpie and more): six tools (deja_recall, deja_session, deja_blame, deja_fix, deja_how, deja_remember), a /deja command, and optional automatic recall injected into runtime context. Local BM25 CLI/MCP index, no LLM, no embeddings, no network (dsh plugin --profile web add dsh-deja).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.