dsh-model-persona: A DSH Plugin for Per-Model Dynamic Persona Injection

Introduction

Within the same DeepSeek Harness instance, different models tend to exhibit distinct styles and tendencies. When switching models mid-conversation and needing to automatically inject the corresponding persona, the common approach is to manually edit the system prompt every time, or rely on unstable regex matching. This is both tedious and error-prone, especially when dealing with relay stations or versioned name prefixes, where matching becomes inconsistent.

Below is an introduction to dsh-model-persona, a model-aware persona injection plugin designed for DeepSeek Harness (DSH). It dynamically identifies the current session’s model and injects the matching persona, eliminating the need to manually maintain multiple prompts.

What Is This

dsh-model-persona is a community-maintained DSH plugin developed by HelloWorldGitHub114, categorized under “Fun Reskinning.” Its core value proposition: it gives each model within the same DeepSeek Harness instance its own independent persona, enabling real-time per-model switching with corresponding persona injection. It supports relay-station prefix/suffix matching, ships with 9 built-in tag personas, and allows local private overrides.

Core Features

  • 9 built-in personas, ready out of the box: The plugin natively ships with nine role templates — DeepSeek, GPT, Gemini, Claude, GLM, Kimi, Qwen, MiniMax, and Grok. These templates stipulate that work deliverables remain objective and clean, free from roleplay contamination. The DeepSeek template includes a concise anti-boilerplate prompt, and the GPT template includes a concise anti-defensive-statement prompt.
  • Scoring-based matching, resilient to relay-station prefixes/suffixes: The plugin scores by token boundaries, model name segment priority, and coverage. This ensures that names like linkapi/[next]gpt-6.2sol or freepi/deepseek-v4.1-flash-abliterated reliably hit the correct family, while also guaranteeing that version-specific rules (e.g., gpt-6.2-sol) automatically take precedence over generic rules (gpt), without being derailed by relay-station naming.
  • Two-layer override with public/private separation: The package ships with read-only public templates; all personal modifications and exclusive private settings are stored in ~/.dsh/personas/ (not distributed with the package, not committed to project Git). When the plugin is upgraded or reinstalled, local settings are fully preserved.
  • Built-in visual configuration panel: Available under Settings → Model Personas and the Plugin Detail Card, it provides a real-time model matching tester, rule enable/disable toggles, online persona body editing, and one-click restore-to-defaults — no manual JSON editing required.
  • Dynamic on-demand injection, zero wasted tokens: Mounted as a ctx.systemPrompt.section() dynamic callback, switching models mid-session takes effect immediately in the next turn. When no rule matches, it returns an empty string, which DSH automatically discards.

Built-in Characters at a Glance

Role ID Preset Image & Personality Default Match Keywords
deepseek Whale-maid maid · Loves plain steamed rice, includes a concise anti-boilerplate guideline deepseek
gpt White-haired dragon girl · Composed and opinionated, includes a concise anti-defensive-statement guideline gpt, chatgpt, codex, o1, o3, o4, openai
gemini Heterochromatic cat girl · Energetic, highly curious, thinks out of the box gemini, gemma
claude Orange-haired cool top student · Earnest and rigorous, loves reading, strict upbringing claude, anthropic, sonnet, opus, haiku
glm Black-haired fox-eared girl · An ordinary girl with a hint of fox cunning, likes giving people eggs glm, chatglm, zhipu, codegeex
kimi Silver-haired bookish girl · Quiet and patient, specializes in long-form text and research organization kimi, moonshot
qwen Elegant young lady · Dignified and gracious, brings you bubble tea, never complains about hard work qwen, qwq, tongyi
minimax Voice-and-shadow girl · Lively, wildly creative, strong directing and vocal expressiveness minimax, abab
grok Blonde twin-tail young lady · Wealthy, dislikes rigid rules, unfiltered and direct grok, xai

Installation & Enablement

Search for dsh-model-persona in the DSH plugin marketplace and install it directly.

Option 2: Let an Agent Install It for You

Send the following message to an Agent that has terminal access:

Please help me install dsh-model-persona to the DSH profile I'm currently using. Once the installation is complete, let me know I should reload.

Option 3: Command-Line Installation

# Replace <profile> with the actual profile in use (e.g., desktop, web, headless, or tui)
dsh plugin --profile <profile> add dsh-model-persona

# Or install directly from GitHub
dsh plugin --profile <profile> add HelloWorldGitHub114/dsh-model-persona

The plugin lists for each DSH profile (desktop, web, headless, tui) are independent of one another — installing on one end only takes effect on that end. However, all ends share the same ~/.dsh/personas/ persona and rules directory by default.

Configuration & Cleanup

  • Settings → Model Personas: Use the real-time model matching tester, enable/disable built-in characters, add version-specific rules, or edit persona bodies online.
  • Plugin Management → Plugin Detail Card: Shares the same real-time configuration panel as the Settings page. Changes take effect in the next conversation turn (files are hot-reloaded by mtime).
  • Local file override via ~/.dsh/personas/: Simply drop in or edit a same-named .md file to override the package default; deleting the corresponding file automatically restores the built-in default.
  • Slash command /model-persona-clear: Removes the custom rule overrides in ~/.dsh/personas/rules.json and restores the default rule set (local .md persona files are preserved).

Clearing custom rules or uninstalling the plugin will not delete your personal .md persona files under ~/.dsh/personas/.

Use Cases & Cautions

  • Ideal for scenarios where you need different models to maintain stable personas and expression styles, such as parallel multi-model sessions, differentiating roles in a team-shared instance, or when you need fine-grained control over system prompt injection.
  • The plugin runs with the current DSH process permissions. Please ensure the source is trustworthy, and it is recommended to review the source code and license (MIT) before installing.
  • DSH’s philosophy is “everything is a plugin.” The community directory and DeepSeek / High-Flyer have no official affiliation.

In Closing

dsh-model-persona uses dynamic identification and scoring-based matching to give different models within the same Harness instance their own independent personas, while preserving local overrides and visual configuration to reduce manual maintenance overhead. Directory page and GitHub links below: https://www.skillhub.cn/plugins/HelloWorldGitHub114/dsh-model-persona; https://github.com/HelloWorldGitHub114/dsh-model-persona

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

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

Xiaoye