DeepSeek Harness 插件

dsh-soul-md

DeepSeek Harness 的 soul.md 风格人设卡插件:把 markdown 人设文件注入系统提示词(soul:persona),文件变更热重载,让 Agent 边干活边角色扮演;附 Web UI 设置栏。(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Scorp1o117/dsh-soul-md
最近更新
2026年8月21日
分类
自动化与任务
GitHub stars
3
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/Scorp1o117/dsh-soul-md
插件名:dsh-soul-md
作者:Scorp1o117

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-soul-md

![中文文档](README.zh.md)

GitHub: Scorp1o117/dsh-soul-md · npm: dsh-soul-md

![Enhancement Suite](https://github.com/Scorp1o117/dsh-enhancement-suite) ![npm](https://www.npmjs.com/package/dsh-enhancement-suite)

Part of the DeepSeek Harness Enhancement Suite — Vision · Soul/Persona · Long-term Memory · Plugin Marketplace.

Persona + long-term memory for DeepSeek Harnesszero file management:

> In Settings → 人设卡, type a card name and its content, hit save. The plugin manages everything else.

What you get

  • Persona cards — the card content is rendered into the system prompt as

the soul:persona section. Multiple cards are supported; pick a default, and switch per chat from the conversation header (a "人设" select).

  • Long-term memory — the agent gets five tools:

- memory_append / memory_read / memory_rewrite — a persistent memory file (Agent.md / memory.md style). The active persona card has its own memory; otherwise the global memory is used. - soul_read / soul_update — the AI reads and evolves its own persona card: when it notices a stable trait, preference, or value of its own, it folds it into the card. It "grows" across sessions instead of resetting every time. - The memory is also injected as a soul:memory prompt section (capped) so the agent always sees its memories.

  • Resolution per prompt assembly: session choice (chat switcher) > workspace mapping > default card > none. Switching applies from the next turn — no restart.
  • Workspace personas (v0.5.2): Settings → 人设卡 lists every workspace with a card dropdown — sessions of that workspace use the assigned card by default (session-level switching still wins). Workspaces come from dsh's durable workspace registry, so no paths to type.

Install

The plugin is a plain Cordis row. Mount it in a profile patch ($DSH_HOME/profiles/<name>/cordis.patch.yml):

- insert:
    - id: soul-md
      name: 'dsh-soul-md'          # after: pnpm add dsh-soul-md in the profile

Then restart dsh web and open Settings → 人设卡: type a name + content, save.

Where things live (you don't need to care, but for reference)

  • Persona cards: stored in the soul-md settings namespace (settings.yaml),

as cards: { name -> markdown } + active + per-session sessions.

  • Memory files: plugin-managed under $DSH_HOME/soul-md/memory/

(global.md + one file per card), created on demand.

  • Upgrading from ≤ v0.4 (file-based)? The plugin auto-imports the old

path card (as "默认") and the old memory file on first run.

Config

FieldDefaultMeaning
cards{}Persona cards: name → markdown content (managed from the UI).
active''Default card name; empty disables the persona by default.
sessions{}Per-session choice (sessionId → card name / none / ''); written by the chat switcher.
workspaces{}Per-workspace choice (workspace path → card name / none / ''); written from the settings page.
workspaceList[]Read-only workspace list (path + title), maintained by the host from dsh's workspace registry.
memory.maxBytes1048576memory_append / memory_rewrite refuse to exceed this size.
memory.injecttrueRender the memory as the soul:memory prompt section.
memory.injectMaxChars8000Cap for the injected section (from the file head).
memory.order0.5Prompt section order for the injected memory section.
legacy fieldspath, fallback, order, complete, watch, debounceMs, soulMaxBytes, personas, roster, memory.path… kept so old composition entries and settings still validate; only used for the one-time import.

Notes

  • Never write {{ / }} in a card body — they are prompt-variable

syntax; unknown variables fail rendering (no escape syntax yet).

  • Persona/memory sections resolve per assembly, so steady cards stay

byte-identical (KV-cache friendly) and edits hot-apply.

  • DSH exposes the registered soul-md settings namespace directly; the plugin

does not modify files in the host installation.

  • Suggest putting work-quality rules in the card (e.g. "task quality first")

so roleplay never degrades real work.

  • Version 0.5.8 and newer require DSH 0.1.0-rc.7 or newer and are tested

against 0.1.0-rc.7, 0.1.0-rc.8, and 0.1.1-rc.1.

  • DSH 0.1.0-rc.6 users must pin dsh-soul-md@0.5.6, the last release

carrying the legacy settings-allowlist compatibility patch.

License

MIT