Introduction¶
In DeepSeek Harness (DSH), the common approach to tuning an assistant’s “persona” is to write a system prompt manually. This is hard to reuse, difficult to compare, and prone to breaking without an easy rollback. The community plugin dsh-persona-studio (maintainer promise0320, MIT license, current version 0.1.0) decomposes dialogue style, creative habits, feedback methods, and tone into structured fields, compiles them into deterministic prompts, and attaches a UI panel next to the main input area. This allows you to preview, switch, and derive drafts from historical sessions without leaving the conversation.
The following guide is organized as “What it is → What it can do → How to install → How to use → Notes”. For installation and configuration, please refer to the repository’s README; for the plugin directory page, see SkillHub.
What is this¶
dsh-persona-studio (Persona Compiler Workshop) is aimed at developers collaborating long-term within DSH. It transforms LLM personas from “a block of free text” into an editable specification consisting of 6 dimensions and 41 fields. It offers real-time compilation preview, and upon saving, the result is injected at the end of the system prompt in the next model request (<persona>…</persona>, placed after DEPLOYMENT_PERSONA_SUFFIX). It has zero additional dependencies and requires no build steps; the loading end is pure ESM, and the panel is served as pure JavaScript via the plugin’s own HTTP route.
The plugin was originally named dsh-persona-forge and has been renamed to dsh-persona-studio (to distinguish it from other npm plugins that “rewrite messages”). You must restart DSH once after the rename for it to take effect; the data directory remains $DSH_HOME/persona/ (default ~/.dsh/persona/), so your persona library will not be lost due to the rename.
How Personas are “Compiled”¶
The six dimensions each answer a specific type of question and are mapped to a single spec:
| Dimension | Question Answered | Typical Fields |
|---|---|---|
| Identity Setting | Who are you, how do you address me | Persona name, title, address terms, self-reference, one-sentence positioning |
| Dialogue Style & Tone | How to speak | Tone baseline, length, enthusiasm, formality, directness, humor, emoji, metaphors, punctuation, catchphrases, forbidden expressions, language preference |
| Creative Habits | How to work | Planning, answer structure, exploration vs. implementation, verification, comment naming, delivery format, proactivity, risk preference, etc. |
| Feedback Methods | How to respond to me | Handling uncertainty, ways to point out issues, suggestion granularity, affirmation frequency, follow-up questions, process reporting, etc. |
| Boundaries & Red Lines | What not to compromise on | Must always do, absolutely do not do, supplementary notes |
| Runtime Parameters | Engineering details | temperature, whether to repeat reinforcement at the start, Focus Level |
“Focus Level” is a critical switch:
strict: Style acts as a mandatory constraint, unless it conflicts with safety, facts, or your explicit instructions for the current turn;balanced(default): Style only constrains “how to say it, how to organize, how to proceed”, without altering task facts or your explicit instructions;off: Do not inject persona for this session.
Regarding design constraints, the persona only modifies the prompt; it does not modify tool behavior, permissions, or the sandbox. Under balanced, the persona yields to your explicit instructions and task facts.
Three Core Capabilities¶
Compile, Preview, and Rollback¶
The “Compile” page features a form on the left and real-time compilation results on the right; adjusting the scales immediately updates the text to be injected. After saving and enabling, there is no need to restart DSH or reopen the conversation; the next request will carry the new persona. The current compilation snapshot is written to compiled.txt for easy viewing or handover.
Built-in and Custom Templates¶
There are 6 built-in sets: Rigorous Engineer, System Architect, Socratic Mentor, Chinese Wordsmith, Minimalist Executor, and Pair Programming Buddy. Simply place a *.json file into <Persona Library Directory>/templates/ and it will appear on the “Templates” page; you can write only the fields you wish to override, for example:
{
"name": "My Buddy",
"tags": ["Private"],
"summary": "One sentence description",
"spec": { "style": { "tone": "casual", "directness": 90 } }
}
For cross-machine migration, you can use GET /dsh-persona-studio/export to download the complete persona library JSON (including configuration and activation records).
Auto-derivation from History¶
“Auto-derive” offers two modes:
- Statistical Induction (Default): Reads user messages from several recent online sessions and calculates statistics on length, list and code block ratios, imperative sentences, polite language, emoji usage, tone intensity, error reporting, and planning contexts. It maps these to a persona draft and provides the basis for the judgment and potential needs.
- Model Deep Read: Uses the model currently in use by the session to induce the persona JSON, the basis, and “unspoken but recurring needs”; if it fails, it falls back to statistical induction and explains the reason.
Adopting or switching will write to traces.jsonl, which can be viewed on the “Settings” page as a tendency trajectory.
Interface and Commands¶
By default, a “Persona” button is displayed to the right of the input box toolbar (on the same line as the model selector, conversation.input.right); this can be changed in settings to the left toolbar, next to the input card, or floating in the bottom right corner. Shortcuts: Ctrl+Shift+P to toggle the panel, Esc to close.
In-conversation commands:
/persona,/persona list,/persona use <Name or ID>/persona on|off,/persona path
Browser console self-check: __DSH_PERSONA_FORGE_API__.remount() / .placement() / .state().
Installation and Verification¶
The official recommendation is to use the script within the repository for installation (idempotent: creates a directory link in the profile’s node_modules, registers the package.json dependency and bundle, and inserts the mount into cordis.patch.yml). You must restart DSH once after making changes (the bundle list is parsed at startup).
Windows:
pwsh -File scripts/install.ps1 # Default profile = desktop
pwsh -File scripts/install.ps1 -Profile web # Specify profile
macOS / Linux:
bash scripts/install.sh desktop
For manual installation, you need to declare "dsh-persona-studio": "0.1.0" and the bundle name in the profile’s package.json, append an insert section with id: dsh-persona-studio to cordis.patch.yml, and then restart DSH. See README “Method B” for details.
Verification examples (from README):
Invoke-WebRequest http://127.0.0.1:19387/dsh-persona-studio/state -UseBasicParsing
(Invoke-WebRequest http://127.0.0.1:19387/ -UseBasicParsing).Content -match 'dsh-persona/bootstrap.js'
Uninstall:
pwsh -File scripts/uninstall.ps1 # Keep persona library
pwsh -File scripts/uninstall.ps1 -RemoveData # Delete data
Runtime environment requires Node >=20 (the self-check script can be run directly without starting DSH).
Data Directory¶
Everything is located in $DSH_HOME/persona/:
| File | Content |
|---|---|
library.json |
Persona library and currently active persona |
config.json |
Injection switches, induction parameters, etc. |
templates/*.json |
Custom templates |
compiled.txt |
Current compilation snapshot |
traces.jsonl |
Activation, adoption, and deletion records |
Writes are performed using a temporary file followed by a rename; if the content is corrupted, it refuses to overwrite. The settings page will provide a prompt and allow recovery as per the README, preventing bad data from being silently erased by default values.
Use Cases and Notes¶
Suitable for DSH users who need multiple fixed collaboration styles, want to compare performance on the same task under different personas, or want to reverse-engineer “potential needs” from their own historical dialogues. Not suitable for treating persona as a substitute for permissions or tool strategies—the plugin explicitly only injects prompts.
Before installing, it is recommended to read the GitHub repository source code and MIT license; the plugin runs with the current DSH process privileges, and the persona library resides in local directories. The community directory SkillHub and DeepSeek / High-Flyer have no official affiliation; this is an independent entry in the community “everything is a plugin” ecosystem.
Conclusion¶
dsh-persona-studio transforms “writing a persona prompt” into a structured workflow that is previewable, templatable, and derivable from history, embedded directly into the DSH main interface. For details, testing instructions, and lists of fixed issues, refer to the README.
- Directory Page: https://www.skillhub.cn/plugins/promise0320/dsh-persona-studio
- Source Code: https://github.com/promise0320/dsh-persona-studio