dsh-persona-shaoxin: Configuring the 'Burning Heart' Persona for DSH with Markdown

Introduction

DeepSeek Harness (DSH) assembles system prompts sequentially via dsh-system-prompt before each model step. If you want the assistant to lock into a particular way of speaking—short sentences, rhythm, taboos—the common practice is to write large persona blocks into project documents or manually paste them into configurations; changing a single line often requires a restart or reload.

Below is the community plugin dsh-persona-shaoxin: it splits the persona into several Markdown files and injects them via the systemPrompt section; after saving a file, it auto-remounts in about 150ms without restarting dsh. The persona prototype comes from the 2026 viral short-drama meme “No-Heartburn Literature”—the deadpan stall-owner pitch of wiping stainless steel tables; just swap the [goods] in the line library to adapt to new themes.

What Is This

dsh-persona-shaoxin is maintained by MycatQieZi, categorized as fun dress-up in the SkillHub plugin directory, and has been included in dsh-plugin.org (status: verified). In one sentence: give DeepSeek Harness a “Shaoxin-style” persona; editing Markdown is editing the persona, and saving takes effect immediately.

The plugin does not register tools or change model routing; it only inserts a piece of text assembled from six md files into the system prompt.

What Changes After Installation

A comparison of the same task, written normally vs. with the plugin mounted (excerpted from the repo example):

Normal writing After mounting
Our pricing is slightly higher, mainly because we use higher-quality raw materials It’s pricier. But it won’t burn your heart.
Faced with competitors’ low-price strategy, we will stick to our quality positioning Worried about losing money? Yes. But more afraid of breaking the rules.
We have scrapped this batch of non-conforming products What about the rest? Dump it.

The README explains: each answer follows a six-act rhythm (hook → suppress → escalate → counter → leave a hook), never giving a happy ending; no single sentence exceeds 15 characters.

Core Features

All the following capabilities come from the repo README and package.json, version 0.1.0, license MIT.

  1. File-driven: persona is written in md, not in code. The six-file set is SOUL / IDENTITY / USER / LINES / MEMORY / TOOLS.
  2. Changes take effect immediately: fs.watch debounced at 150ms auto-remounts, no need to restart dsh.
  3. Line library: LINES.md contains signature lines, four fill-in-the-blank sentence templates, universal replacement word lists, etc.; swap the [goods] to change themes.
  4. Project-level override: files with the same name at <project root>/.dsh/persona/*.md override the global ones; those not placed still read from the global directory ($DSH_HOME/persona/).
  5. Zero-build: pure JS ESM, no TypeScript, no prepare script; auto-installation will not trigger --allow-build authorization.
  6. Safety fallback: scans for {{…}} template syntax on mount and warns—unregistered variables will error under DSH’s strict interpolation; placeholders are recommended to use 【】 instead of {{ }}.

Dependencies: @deepseek-ai/cordis ≥ 4.0.4, targeting DSH 0.1.0 series; the author notes that end-to-end mounting has not yet been verified on a real dsh, but a fake-ctx smoke test has been completed (six-file assembly 4128 characters, section placement, {{cwd}} mis-writing warning). For real-machine issues, please open an Issue on GitHub.

Installation and Enabling

Official install command (only supports profiles documented):

dsh plugin --profile web add github:MycatQieZi/dsh-persona-shaoxin

Supported profile: web (other profiles need to verify whether the systemPrompt service is available yourself). Restart dsh web after installation to take effect.

The plugin runs with the permissions of the current dsh process; before installing, it is recommended to read the GitHub source code and LICENSE, and confirm that the disk read scope (only md files under the persona directory) meets your environment policy.

Typical Usage

1. Place persona files

mkdir -p ~/.dsh/persona
cp persona/*.md ~/.dsh/persona/

(If copying from the cloned repo directory, the path refers to the persona/ inside the plugin package; you can also just copy the files you want to change.)

2. Change the line you want to change

Edit the global line library, e.g.:

~/.dsh/persona/LINES.md
  贵是贵点,但用了不烧心。

After saving, it takes effect automatically in about 150ms; the next message will use the new persona.

3. Have it write a script

Make a similar request to the assistant:

Write a 45-second Shaoxin-style short drama, the thing being sold is sole stitching.

The README says it will give an entry hook, a sense of pressure, a reversal, and a closing line suitable for screenshotting.

If files with the same name such as .dsh/persona/LINES.md exist in the project, they override the corresponding global files, facilitating per-project persona customization.

Configuration (Optional)

During installation, it contributes a configuration layer via cordis.patch.yml; adjustable config fields (do not change section to deployment:persona, it will conflict with the prompt registry slot and loud-fail):

Field Default Description
order 1 Placement; official tier reference in README (harness identity −1000 / persona prefix 0 etc.)
section deployment:shaoxin Section name dedicated to this plugin
files six-file set To lighten, remove LINES.md; to intensify, put LINES.md before SOUL.md
maxChars 24000 Truncation limit
watch true Set to false to read only once at load time

How It Works (Brief)

DSH assembles the system prompt before each model step. The plugin exports inject = ['systemPrompt'], calling ctx.systemPrompt.section({ name, order, text }) to insert a piece of text; {{cwd}}, {{model}}, etc. in text are strictly interpolated.

Repo directory highlights:

dsh-persona-shaoxin/
├── index.js            # plugin entry apply(ctx, config)
├── cordis.patch.yml
├── persona/            # persona itself (edit here)
│   ├── SOUL.md
│   ├── IDENTITY.md
│   ├── USER.md
│   ├── LINES.md
│   ├── MEMORY.md
│   └── TOOLS.md
└── samples/before-after.md

Use Cases and Notes

  • Suitable for: developers already using the DSH web profile who want file-managed, hot-updatable personas/scripts, or who want to play with “No-Heartburn style” short-drama copywriting.
  • Not suitable for: environments that need non-web profiles without verified systemPrompt; scenarios where the plugin needs to change tools, routing, or sandbox policies (this plugin does not do these).
  • Privacy: no network outbound, no telemetry; disk writes are only the first-time mkdir of the global persona directory; no user conversation content is written.
  • Ecosystem: the DSH community plugin directories (such as SkillHub, dsh-plugin.org) are independent sites, with no official affiliation with DeepSeek/Hunyuan; please review the source code and permission descriptions yourself before installing third-party plugins.

DSH is still in developer preview; upstream APIs may break; use at your own risk based on the applicable range marked in the README.

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye