Preface¶
DeepSeek Harness (DSH) defaults to a hardcoded generic identity: one installation often corresponds to a specific tone and role. If you wish for the same Harness to perform concise Code Reviews in Workspace A and patient explanations in Workspace B, the common approach is to fork, preset, or install another copy—cost and visibility are not ideal. dsh-soul changes “who you are” from hardcoded to settings data you own: it maintains multiple Markdown persona cards in plugin settings, parses and writes them to system prompts based on session, workspace, and default cards; each round of dialogue parses again, so changing cards does not require restarting the session. The model can read the current persona via persona_read, but there is no entry point to rewrite the persona.
What is it¶
dsh-soul is an independent plugin for DSH released by maintainer runfali, categorized as a fun “outfit change” plugin. It only reads and writes settings documents under the soul namespace, does not touch other plugin namespaces, does not write to disk, and does not share external state. Core value: multiple selves in a single installation; personas are pure text, readable and diffable; parsing happens during prompt construction, edits take effect in the next round; persona content comes only from text you input in settings.
Ecosystem-wise, DSH follows the philosophy of “everything is a plugin”; the community directory site SkillHub and DeepSeek/Headspace have no official affiliation; installation and audit should be based on source code and license.
Core Features¶
The plugin provides the following surfaces in the UI and at runtime (all from the official README):
| Surface | Location | Function |
|---|---|---|
| Settings card | Settings → Plugins → dsh-soul → Component row dsh-soul › |
Card list and editor (create/rename/edit/delete/set default), workspace binding, two switches |
| Session switcher | Chat title bar | Fix a card for this session, or turn off persona |
| New-session switcher | New session page options | Select card before the first message; if not selected, Composer will wait |
persona_read |
Agent tools list | Returns the active card for this session (name, body, which layer won) |
| Prompt section | dsh-soul:persona in system prompt |
Parsed card plus short priority explanation, re-parsed every round |
How Personas are Selected¶
When constructing the prompt, it parses in the following order (each layer only writes the minimal necessary keys to avoid mistakenly copying lower layer selections to the user layer):
| Order | Layer | Key | Description |
|---|---|---|---|
| 1 | Session | sessions.<sessionId> |
When the value is "none", persona is turned off and search stops |
| 2 | Workspace | workspaces.<path> |
First exact path, then case-insensitive match on normalized path |
| 3 | Default | active |
Card marked as default |
| — | — | — | — |
If a layer points to a deleted or blank card, it is considered unselected and continues to the next layer. skipSubagents is enabled by default, avoiding duplicate persona injection for delegated sub-sessions (sub-sessions have inherited the parent prompt); the parsing logic itself is not limited, persona_read and switchers remain consistent with “what will be injected into this session”.
When injecting, a fixed Chinese box is also rendered before the card (only in the rendering layer; editor and persona_read still only see the card body), used to explain that the persona takes precedence over other “who you are” descriptions in Harness, but does not override security rules, tool contracts, or the current task instructions.
Design Constraints (Affecting Behavior)¶
- Cards exist in settings rather than as independent files, supporting hot reload and the settings UI.
- The system prompt section name is
dsh-soul:persona, avoiding conflicts with other plugin section names. - Model read-only: no tool to write cards, no route to receive card text.
Environment and Dependencies¶
- DSH:
>=0.2.0-rc.2 <0.3.0-0, listed multiple0.2.1-rc.*compatibility items indsh.compatibility(see package.json). - Node:
>=20.18. - React 18 is a peer dependency (provided by Harness).
- Supports
webanddesktopprofiles.
Current package version is 0.2.2-rc.1, license MIT.
Installation and Enabling¶
When installing via link: from a local checkout, the host directly references the source code directory:
cd <checkout>
npm ci
dsh plugin --profile desktop add link:<absolute path of checkout>
For the Web environment, replace --profile desktop with --profile web. After installation, restart DSH, open Settings → Plugins → dsh-soul, and use the form in the component list dsh-soul ›.
After the package is published to the registry, you can install via the package name (README example is for desktop profile):
dsh plugin --profile desktop add dsh-soul
Note: The plugin runs under the permissions of the DSH current process; before installing, you should check the GitHub repository source code and LICENSE yourself; do not assume the directory site is equivalent to the official app store audit.
Typical Usage¶
The following steps correspond to the README Quick start and can be reproduced in order:
- Open Plugins →
dsh-soul→dsh-soul ›, fill in the card name and Markdown body and save. - Set this card as default, or bind it to a workspace in settings; or switch cards for this session in the chat title bar.
- Ask normally. Changes appear in the system prompt, not the tool list; the newly parsed card takes effect from the next round.
- If you only want to mute the persona for a specific conversation, select “Turn off” in that session’s title bar; that session will not fall back to the workspace or default layer.
When an Agent needs to reference its own persona, it can call persona_read to view the currently effective content and parsing layer.
Main Setting Keys (Selected)¶
For the full table, see README; common items are as follows:
| Key | Meaning |
|---|---|
cards |
{ [name]: markdown }, all persona cards; empty names, empty bodies, and __proto__ / prototype as names will be rejected |
active |
Default card name |
sessions |
Card name bound to each session or "none" |
workspaces |
Card name bound to each workspace path |
Applicable Scenarios and Notes¶
Suitable: Switching tone and role by workspace or session under the same DSH installation; putting personas into version control as readable text; workflows or playstyles that require hot-updating identity every round without restarting the session.
Not suitable or need to know: The plugin explicitly only handles persona, does not contain memory or other plugin state. Delegated sub-sessions skip persona duplicate injection by default. The old setting namespace was soul; configs that haven’t changed the bundle id can still be read back, but new installations should use dsh-soul as the settings namespace.
Conclusion¶
dsh-soul changes Harness identity from “hardcoded at installation” to “Markdown cards in settings + Session/Workspace/Default three-layer parsing”, injecting dsh-soul:persona every round, and the model cannot rewrite the card face. For further explanation and English docs, see the repository README and the Chinese version README.zh-CN.md.
- Directory page: https://www.skillhub.cn/plugins/runfali/dsh-soul
- GitHub: https://github.com/runfali/dsh-soul