dsh-persona-voice: A Persona Paraphrase Plugin for DeepSeek Harness

Introduction

DeepSeek Harness (DSH) supports extending functionality through plugins, but by default, the output of the execution agent is what the user sees as the final response. If you want to interact with users in a fixed character voice while the execution agent simply handles task completion, you need an intermediate layer to rephrase the response. dsh-persona-voice is designed for exactly this scenario.

What This Is

dsh-persona-voice is a persona relay plugin for DeepSeek Harness. It uses an additional model call to rephrase the execution agent’s final response for each turn into the character voice you’ve defined. What users see in the UI is the persona version, while the original text is collapsed inside the reasoning trace and can be expanded at any time for verification.

Maintainer: xty13114150041

Core Features

  • Once enabled, the execution agent’s response is folded directly into the reasoning chain without first exposing the original text and then disappearing; the chain displays “Composing response…” for a few seconds before the persona version appears.
  • Below the response there is a “View Original” button that lets you toggle between the persona version and the original; the original is also included in the reasoning trace as “【Agent Original】”.
  • Only the final response of each turn is rephrased; tool calls, intermediate steps, and sub-agents are unaffected.
  • The persona agent maintains its own multi-turn context: the user’s messages, the execution agent’s original responses, and its own prior outputs.
  • Three relay context scopes are supported: current turn only, the last 5 turns (including current), or the full relay history.
  • The default relay rules require rephrasing only, with no new actions introduced; code, file paths, numbers, and error messages are preserved verbatim.
  • On the browser side, the official assistant message renderer is wrapped, with only the final response content replaced, while Markdown rendering is still handled by the official component.
  • Per-turn actual usage (including cache hits) is logged in debug.log.

Installation & Enablement

Desktop: Open DSH’s “Plugins → Add Plugin”, paste the URL of the GitHub Release package, and confirm as prompted. You can also download the .tgz first and then select the local package file.

Web / CLI:

dsh plugin --profile web add https://github.com/xty13114150041/dsh-persona-voice/releases/download/v0.6.0/dsh-persona-voice.tgz

If you are using a custom profile, replace web with the corresponding profile name. The package is a ready-to-run JavaScript file and does not require building or an authorized install script. After installation, follow DSH’s prompt to refresh or restart; this plugin is disabled by default—configure the persona and enable it under “Settings → Persona Relay”. Users who previously installed via a local link should first remove the old link from the same profile before installing the release; plugin settings and history are preserved.

To uninstall, use DSH’s “Plugins” page or run dsh plugin --profile web remove @local/dsh-persona-voice. Uninstalling will not delete local data.

Typical Usage

Configure under DSH Settings → Persona Relay:

  • Enable persona relay (disabled by default)
  • Select the model used for rephrasing (defaults to following the current session’s model)
  • Set thinking intensity (default: auto—disabled if possible, otherwise the lowest level)
  • Configure persona presets (multiple personas can be saved and switched via a dropdown)
  • Enter a persona prompt or specify a persona file
  • Set relay rules, per-turn reminders, and output limits

Changes take effect from the next turn without requiring a restart.

Use Cases & Caveats

Ideal for scenarios that require a consistent character voice, such as customer support assistants, role-play conversations, or content generation in a specific style.

Caveats:

  • Each turn incurs an additional model call, resulting in extra token costs. In long conversations, the “full history” scope may increase costs or exceed the model’s context limit.
  • The persona version is produced by model rephrasing and carries a risk of introducing errors. For critical information, expand the original text to verify.
  • Copy and citation buttons still retrieve the original text.
  • The execution agent cannot see the persona version. If the persona version contains content not present in the original, the execution agent is unaware of it. The default rules prohibit introducing new actions specifically to avoid this situation.
  • The browser-side approach wraps the official renderer and depends on DSH’s internal structure. It may break after a DSH upgrade; when this happens, it falls back to displaying the original text.
  • Declared compatibility with DSH ^0.2.2-rc.2. Previous versions were tested on DSH Desktop 0.2.2-rc.3 (macOS); version 0.6.0 has been verified for installation, settings interface, browser module, and uninstallation in an isolated DSH Web 0.2.2-rc.5 configuration. The Desktop UI has not been retested.

The plugin runs with the permissions of the current dsh process. Review the source code and license before installing.

Data & Privacy

When enabled, the plugin uses the model channels already configured in DSH for rephrasing. The selected model will receive the persona, the current user message, the execution agent’s final response, and any relay history you have opted to include. If a persona file is configured, the DSH host will read the specified file and send the persona-relevant content to the model as part of the request. Do not place API keys or any content you do not want to send to the model provider into the persona or conversation. The plugin does not require a separate API key.

Plugin data is stored in $DSH_HOME/persona-voice/ (defaults to ~/.dsh/persona-voice/); disabling the plugin will not delete history:

  • settings.json: Configuration
  • rates.json: Manually entered model pricing
  • <session-id>.json: Original and persona versions per turn
  • debug.log: Debug log

Ecosystem Context

DSH’s philosophy is “everything is a plugin”; the community directory is an independent site with no official affiliation to DeepSeek or High-Flyer.

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

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

Xiaoye