dsh-persona-forge: Rewriting Outgoing Messages with Character Cards in DSH

Preface

In DeepSeek Harness (DSH), a common practice for writing prompts is manually adding a “Please speak as [someone]” prefix, or writing tone requirements into the system prompt. The former requires repetitive operations for every message sent, while the latter modifies session-level configuration and can easily get entangled with tools and system instructions. If you simply want to modify the tone of the current user message before sending, while still using the model currently active in the session, and without altering the system prompt or session configuration, dsh-persona-forge targets this specific gap.

The following introduces the plugin’s positioning, installation method, and typical usage. The factual basis is the GitHub Repository README and the npm package dsh-persona-forge (current version 0.8.4, MIT license, early 0.8.x; it is recommended to check the changelog before upgrading).

What is this

dsh-persona-forge is a DSH plugin released by maintainer sugarmaster666, categorized under Model Inference in the community directory skillhub.cn. It performs role-playing prompt rewriting: you select a character card in the input box, and your draft is rewritten by the harness’s model into that character’s tone and framework before being sent. This process follows the provider/model currently used by the session. After rewriting, you can send directly or review before sending. The package itself has zero dependencies and requires zero build steps.

The plugin explicitly does not modify system prompts, tool lists, or session configurations, and will not alter your draft without your confirmation. The rewriting call is independent of the session: it does not generate a turn, cannot call tools, and does not enter the session log; what is recorded in the session is the text you actually sent.

Core Functions

Rewriting Scope and Model

What changes The tone, register, and framework of the message about to be sent
What does not change Technical requirements, constraints, paths, identifiers, numbers, code (design intent is to preserve these); the draft before confirmation
Which model is used for rewriting The provider/model currently used by the session; there are no separate model settings

The AI Auto-fill in the settings page (used to generate persona card drafts) uses the harness’s default model because the settings slot cannot access the session ID; the interface will display the provider / model that will be used.

Input Box: Selecting Persona and Sending

  1. Click 🎭 on the left side of the input box tool row to select a persona; “No Persona” at the end of the list disables rewriting (initial state). The selected persona is remembered per session.
  2. After selecting a persona, you can expand Intensity (Light / Medium / Heavy / Fanatic), Send Method (Review First / Send Directly), Rewrite Method (Follow Card / Model Rewrite / Template Application), and Fidelity (Follow Card / Tone Only / Can Add Constraints). These four settings follow the persona card, not the session.
  3. After selecting a persona, the native Send button and Enter trigger the rewrite immediately (no extra button needed). For Review First, the result appears in a comparison panel above the input box, leaving the draft unchanged until confirmed; for Send Directly, the message is sent immediately after rewriting is complete.

In the review panel, the rewritten result is editable; the bottom displays the model used, time consumed, and a local technical token check (checking if identifiers, paths, version numbers, numbers, --flag, API, etc., are missing). The check does not call a model and does not block sending; it only marks issues. While the panel is open, the send arrow in the input bar is temporarily disabled.

Persona Cards

Persona cards are in YAML format, located in the directory:

~/.dsh/persona-cards/<id>.yml

Manage them via Settings → Role Play (including “Open Directory”, Create New, Edit). The directory is watched: dropping a file into it makes it appear in the list without needing a restart. On first run, built-in cards are copied to this directory; copies that have not been edited will update with plugin upgrades, while edited ones will not be overwritten.

Built-in examples include God of All Machines · Om Mesia and Muscle Group · Hardcore (the README notes the plugin is primarily tuned for the “getting into character” feel of DeepSeek Flash, but can be used with other models). AI Auto-fill is at the top of the “New Persona Card” form: you describe “who the AI plays, who you are, how they speak,” and the model fills in the name, icon, description, style, and example texts for the four intensity levels. Generation only fills the form and does not auto-save; the Fidelity is fixed to “Tone Only” and Rewrite Method to “Model Rewrite”.

Installation and Activation

The plugin has no dependencies and no build steps. The desktop version uses an Electron-exclusive profile, so please use the GUI: Plugins → Add Plugin, and paste into “Package Name or Address”:

dsh-persona-forge

Or:

https://github.com/sugarmaster666/dsh-persona-forge

Enable the plugin after installation and restart DSH. dsh plugin --profile desktop add ... will be rejected; the command-line method applies to self-managed profiles like dsh web:

# Install from npm (recommended)
dsh plugin --profile web add dsh-persona-forge

# Install latest source from GitHub
dsh plugin --profile web add github:sugarmaster666/dsh-persona-forge

Then restart the harness. To verify: run plugin_manager action: list_plugins; the plugin line should be active; a 🎭 should appear on the left side of the tool row in the input box of any session.

To update the npm package:

dsh plugin --profile web update dsh-persona-forge

GitHub installations are updated by re-running add github:sugarmaster666/dsh-persona-forge; replacing an already installed package requires a restart to load the new module. To uninstall:

dsh plugin --profile web remove dsh-persona-forge

Persona cards remain in ~/.dsh/persona-cards/; you must manually delete the directory to remove them as well.

Typical Usage

In one sentence: Select a persona, write your draft as usual and send it; the rewriting will phrase the content in that persona’s tone.

  1. Open a session, click 🎭 to select a card (for coding tasks, the README suggests keeping Review First as the standard, judging by “whether the requirements are still there” rather than how fancy the tone is).
  2. Enter your technical draft, press Enter or click Send.
  3. If using Review First: compare the original and the rewrite in the panel, check if the local check hints at missing paths/identifiers, etc., manually correct if necessary, then click Send; if unsatisfied, you can use Restore Original or Rewrite.
  4. To customize personas: Settings → Role Play → New Persona Card (or edit the YAML), then select it from the 🎭 menu after saving.

Example direction (emphasized in the README regarding AI Auto-fill): The rewritten result should be you speaking to the character in that relationship, not the character replying for you—otherwise, the whole card fails.

Applicable Scenarios and Notes

Suitable for: Wanting to quickly switch speaking styles or character frameworks within DSH without touching the system prompt; daily use of models like Flash for light tone rewriting; scenarios requiring pre-send review and local technical token hints.

Not suitable as: A “question less, obey more” switch for coding tasks—writing the persona as “the model is the authority” often reduces the pointing out of issues with the solution; nor should “longer and more fancy” be treated as an improvement in quality.

Security and Trust: The plugin implements rewriting by intercepting the send button click (relying on the shell’s accessibility labels) and Enter; disabling the plugin removes the interception. In the worst case, it silently reverts to the “not installed” sending behavior rather than losing messages. Rewriting may still silently weaken requirements, and local checks have limited coverage; Review Mode remains the primary line of defense.

Before installation: The plugin runs with the current DSH process permissions; please review the GitHub Source Code and the MIT license yourself before installing. The community directory skillhub.cn is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer. The package requires Node >=22 (see package.json engines).

Conclusion

dsh-persona-forge connects “Select Persona Card → Model Rewrites Draft → Review or Send Directly” to the DSH input box. It does not modify system-level configurations, the rewriting follows the current session’s model, and it comes with local technical token checks and a YAML persona card system. For details and changelogs, refer to the repository:

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

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

Xiaoye