dsh-peach-persona: Configuring Agent Persona in DSH Settings Segments

Preface

When running Agents in DeepSeek Harness (DSH), system prompts often need to be revised repeatedly: what name to use, what tone to adopt, and what working agreements to follow. You paste a new version into some configuration, only to forget next time “exactly what was injected in the last round.” Some in the community refer to Character Cards or ChatGPT custom instructions, but these do not map directly to DSH’s request assembly and settings pages.

dsh-peach-persona is a DSH persona plugin released by the maintainer clf0913, categorized as “Fun Dress-up” on SkillHub. It provides a Persona page in the settings: you fill in identity, speaking style, and behavioral guidelines across 12 fields in three sections. Upon saving, it renders into persona.md and injects it into every request, while logging every injection to help verify if it took effect.

What is this

In one sentence: it adds a “Settings → Persona” interface to DSH, rendering segmented fields into system prompt fragments and retaining injection records.

It ships with no persona configured: all 12 fields are empty by default, and content is filled in by the user; if all are empty, no fragments will be injected.

Core Features

Settings Page & 12 Fields

Fields are divided into three groups. After saving, the plugin renders them into a persona body:

Group Field Description
Identity Name The name the Agent calls itself
Identity Alias If empty, the alias is not mentioned
Identity Addressing You How it addresses you
Identity Self-Reference Words used to refer to itself in conversation (I / myself, etc.); distinct from “Name”
Identity Relationship Follows “is”, e.g., “your work buddy”
Identity Language If empty, the entire line is omitted
Speaking Style Tone Tone of voice, whether to flatter, use of modal particles
Speaking Style Length Response length and information density
Speaking Style Disagreement How to handle disagreement with you
Behavioral Guidelines Section Title If empty, no title line
Behavioral Guidelines Working Agreements One item per line, self-numbering recommended
Behavioral Guidelines Taboos / Don’ts If empty, the entire section is omitted

The field design references the “About You + How to Reply” dichotomy found in Character Card V2 and ChatGPT custom instructions. Empty fields are omitted line-by-line during rendering.

Injection & Preview

  • After saving, persona/persona.md serves as the artifact, registered via systemPrompt.section() as two segments: peach:persona (order 1) and peach:persona-tail (order 10201). The --- in the middle of persona.md acts as a segmentation convention: the former part goes to the beginning of the system prompt, the latter to after the first-party guidance.
  • You can click “Preview final result” to see the rendered output without saving.
  • Injection Log (persona/inject.jsonl): A line is appended only when the rendered text changes, recording whether it was actually injected, the word count, and the timestamp.

Data File Locations

Rooted at $DSH_HOME (usually ~/.dsh):

Path Content
persona/persona.json Field table, read/written by the settings page
persona/persona.md Rendered artifact, injection reads only this
persona/persona.md.bak Previous version before each save
persona/inject.jsonl Injection log

Manually editing persona.md will not overwrite the field table; the page will indicate the file has been changed externally, and saving again will overwrite it based on the fields.

Installation & Activation

The plugin runs with the permissions of the current DSH process. Please review the repository source code and MIT license before installing.

Prerequisites

  • DSH Desktop or dsh web version
  • Knowledge of your profile name (usually desktop for the desktop version)

The installation steps in the README have been verified on Windows Desktop; Linux / macOS verification is not stated in the documentation. You must restart the application after installation (HMR does not hot-load the plugin’s own JS modules).

The commands below are excerpted from the repository README. Replace paths according to your machine (including the location of dsh.cmd):

# 1) Get the source code (directory can be customized, example path below)
git clone https://github.com/clf0913/dsh-peach-persona.git "$env:USERPROFILE\.dsh\plugins\dsh-peach-persona"

# 2) Install into profile via local link
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" `
  plugin --profile desktop add "link:$env:USERPROFILE\.dsh\plugins\dsh-peach-persona"

# 3) Restart the application (mandatory)

Example uninstallation (the remove subcommand depends on your DSH version):

& "<path to dsh.cmd>" plugin --profile desktop remove dsh-peach-persona

Alternatively, you can remove the corresponding entries from dependencies and dsh.profile.bundles in profiles/<profile>/package.json, delete profiles/<profile>/node_modules/dsh-peach-persona, and then restart.

Typical Usage

  1. Open Settings → Persona.
  2. The 12 fields are initially empty; you can start by filling in Name, Addressing You, and Working Agreements, leaving others empty if desired.
  3. Click “Preview final result” to check, then click Save.
  4. The new persona takes effect starting from the next turn (the currently running step will not change).
  5. To confirm if it was assembled: check the Injection Log at the bottom of the page; a record indicates it was injected.

The body text can use host-registered template variables {{model}}, {{provider}}, {{cwd}}; other unregistered {{xxx}} will degrade to {xxx}. Unregistered variables may cause the entire round of rendering to fail.

Applicable Scenarios & Notes

Who it is for

  • Users who want to configure Agent personas in DSH stably and reproducibly, rather than hand-crafting a large system prompt every time.
  • Developers who need to verify “whether this request actually carried the persona.”

Limitations (Stated in README)

  • Only effective for profiles providing webServer (web / desktop).
  • The persona is global (one single instance), not differentiated by workspace; if you need different personas for different projects, use the workspace’s AGENTS.md.
  • Documentation states it has only been actually verified on Windows Desktop; the repository does not release a test suite with the package (the test/ directory in the source is for local verification, plugin installation does not depend on it).

The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is a community directory with no official affiliation to DeepSeek / Hifake (Hunyuan).

Conclusion

dsh-peach-persona breaks down persona into 12 maintainable fields, saving, rendering, and injecting them via the settings page, while leaving injection traces in inject.jsonl. If you are experimenting with personality or tone in DSH, you can get the source code and instructions from the directory page or GitHub:

  • Directory Page: https://www.skillhub.cn/plugins/clf0913/dsh-peach-persona
  • GitHub: https://github.com/clf0913/dsh-peach-persona
羽毛球分组比赛记分
小程序二维码

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

Xiaoye