dsh-prompt-persona: A Visual System Prompt Editor Plugin for DeepSeek Harness

xilin3/dsh-prompt-persona

Sessions & MessagesVerified
Listed on 2026-08-20
Page last updated 2026-08-20

DSH plugin to edit the system prompt (deployment persona) from Settings with live preview and three injection modes.

Edit the deployment persona directly in the DeepSeek Harness settings page with live preview of the full system prompt, no manual config file editing needed.

install
dsh plugin --profile web add github:xilin3/dsh-prompt-persona
Category
Sessions & Messages
Platform
DSH-Plugin
Author
xilin3
Distribution
Plugin

dsh-prompt-persona Key Features

Visual system prompt editingThree injection modesLive preview of full promptOptimistic concurrent saveTemplate variable interpolation

dsh-prompt-persona Repository

xilin3
Publisher
xilin3
Repository
xilin3/dsh-prompt-persona
10
Stars
2
Forks
0
Watchers
0
Open issues
LanguageJavaScript
LicenseMIT License
Website
Repo last push2026-08-13 23:42:36
Repo created2026-08-13 23:36:14
Topics
dsh-plugin
Default branchmain

dsh-prompt-persona Repo Summary

dsh-prompt-persona is a session-type plugin (DSH plugin) for DeepSeek Harness (DSH) that allows visual editing of the system prompt (deployment persona) from the Settings page, with live preview. It solves the pain point of modifying the Harness core or hand-writing cordis.patch.yml to adjust the system prompt, enabling deployment authors to manage personas safely and intuitively. The plugin is maintained by Xilin3, licensed under MIT, last updated in 2026-08, with 4 stars and 1 fork, and tagged as dsh-plugin.

What core features does the dsh-prompt-persona DSH plugin support?

The plugin adds a "System Prompt" section to the Settings page, supporting three injection modes: replace, append, and off. It provides real-time display of the current full system prompt (including persona, harness identity, tool guidance, and all other sections), and supports a "Preview Effect" feature that applies the draft to a copy without persisting or polluting the current state. Additionally, optimistic concurrency saving based on settings revision (conflict returns HTTP 409) prevents overwriting others' concurrent modifications, and the persona supports strict interpolation of template variables like {{model}}, {{cwd}}, and {{provider}}.

How to install dsh-prompt-persona?

The recommended way is to use the command line to add the plugin to the web profile ($DSH_HOME/profiles/web/, Windows default C:\Users<you>.dsh\profiles\web). After installation, append @xilin3/dsh-prompt-persona to the dsh.profile.bundles in the profile's package.json, and restart dsh web (frontend changes do not hot-reload).

bash
dsh plugin --profile web add github:Xilin3/dsh-prompt-persona

Alternatively, manually edit the profile's package.json to add bundles and dependencies, then run pnpm install.

What are the injection semantics and template variables of dsh-prompt-persona?

The mode determines how the persona acts on the deployment:persona section: replace replaces the entire section, append appends to the existing persona (separated by a blank line), and off does not inject. The persona is a template that undergoes strict interpolation during save/render, and unregistered variables cause errors. Available variables include {{model}} (current model), {{provider}} (current provider), and {{cwd}} (process working directory).

What are the configuration and HTTP API of dsh-prompt-persona?

Configuration is persisted in $DSH_HOME/settings.yaml under the namespace prompt-persona, containing persona (string, default empty) and mode (enum, default replace). Invalid modes are normalized to replace, and persona is trimmed. The browser settings page uses the same-origin route /_dsh/prompt-persona/settings, providing GET (returns settings and currentPrompt) and POST (preview/save) capabilities.

Which DeepSeek Harness versions and platforms are compatible with dsh-prompt-persona?

The plugin depends on @deepseek-ai/dsh-settings, @deepseek-ai/dsh-system-prompt, @deepseek-ai/dsh-host-webserver, @deepseek-ai/dsh-client-runtime, @deepseek-ai/dsh-client-ui-settings, and @deepseek-ai/dsh-client-ui-slots, and is suitable for DSH web profiles, supporting Windows, Linux, and other platforms.

View more DSH plugins at dsh-plugin.org

DSH-Plugin FAQ