dsh-master-prompt: Add Versioned Sub-Conversations to Any Session

Introduction

DeepSeek Harness (DSH) follows an “everything is a plugin” architecture. In multi-turn conversations, when you need to add new constraints or acceptance criteria to the main dialog, the typical approach is to edit them directly within the current conversation. This tends to clutter the conversation history with configuration details and makes it difficult to track the source of changes or roll them back.

The dsh-master-prompt plugin introduces a “main dialog + side dialog” separation mechanism: the main dialog stays on the left, while the side dialog runs on the right as a native tab. The side dialog is responsible solely for generating change proposals, while the main dialog handles adopting or rejecting them. The two collaborate through a versioned master prompt and a proposal system.

Plugin Overview

  • Name: dsh-master-prompt
  • Maintainer: ZHANGaohan13213
  • Type: DSH plugin
  • Repository: https://github.com/ZHANGaohan13213/dsh-master-prompt
  • Core value: In any session, any mode, and any workspace, opens a side dialog that only submits proposals for the current main dialog, managing conversation constraints and acceptance criteria through versioned master prompts and change proposals.

Installation & Activation

Run the following command in a DSH environment to install the plugin:

dsh plugin add github:ZHANGaohan13213/dsh-master-prompt

After installation, restart the DSH process for the plugin to take effect. The plugin requires DSH version >=0.2.2-rc.5.

Core Features

Side Dialog Entry Point

Click + Side Dialog in the input toolbar of any session to open a native side dialog tab in the right panel. The main dialog remains unchanged on the left.

Master Prompt Initialization

The first time you click + Side Dialog, the plugin initializes the master prompt (v0) for the current session and opens the side dialog tab in the right panel. The main dialog then gains write tools, while the side dialog gains proposal tools.

Multiple Side Dialog Tabs

Within a side dialog, you can click + Side Dialog again to open multiple side dialog tabs for the same main dialog. Each side dialog runs independently and generates its own change proposals.

Proposals & Submission

Once the side dialog completes its work, click “Done & Submit” (available in the right panel tab header or the input toolbar). The plugin generates a change proposal for the current side dialog. The main dialog reviews and processes these proposals via the “Panel.”

Panel & Version Management

Click “Panel” in the main dialog toolbar to view the proposal list, the current master prompt, and version history. Supported operations include adopting proposals paragraph by paragraph, directly editing the master prompt, and rolling back to a previous version.

Storage Structure

Each session that becomes a main dialog creates the following structure under its workspace directory:

<workspace>/.dsh/master-prompts/<main-dialog-session-id>/
  prompt.md            Current master prompt, editable directly
  meta.json            Version number, version list, side dialog snapshot mapping
  versions/vNNNN.md    Full text of each version
  proposals/<id>.json  Proposals (pending / superseded / merged / rejected)

When prompt.md is modified directly via an editor, the plugin records it as an external version on the next read.

Command List

  • /master-new: Create a new main dialog and pin it to the top (no longer mode-bound).
  • /master-child: Open a side dialog for the current session.
  • /master-sync: Sync the current side dialog to the latest master prompt of the main dialog.
  • /master-submit: Have the current side dialog generate a change proposal.

Runtime Rules

  • Side dialogs only submit proposals and cannot modify the master prompt directly; the main dialog can write directly.
  • Side dialogs are single-level; you cannot open a side dialog within a side dialog.
  • Each session has its own master prompt; different sessions and different workspaces do not share them.
  • The main dialog does not read the full chat history of side dialogs—it only receives proposal summaries.
  • Tools are exposed by role: after initialization, the main dialog has write tools, while side dialogs only have proposal tools.
  • Rollbacks generate a new version; history is immutable.

Limitations & Caveats

  • The longer the master prompt, the more it carries in every step; it is recommended to include only constraints and acceptance criteria.
  • Proposals recalculate diffs against the “current master prompt.” Parallel proposals do not cause hard conflicts, but conflicting paragraphs require per-paragraph selection.
  • Side dialogs operate based on a snapshot; subsequent changes in the main dialog are not pushed automatically and require a manual “Sync.”

Typical Workflow

  1. Click + Side Dialog in the input toolbar of any session; a side dialog tab appears in the right panel.
  2. Enter a task in the side dialog, such as adding acceptance criteria or adjusting constraints.
  3. When done, click “Done & Submit” to generate a change proposal.
  4. Click “Panel” in the main dialog toolbar to view the proposal list.
  5. Adopt proposals paragraph by paragraph, or directly edit the master prompt. Roll back to a previous version if necessary.
  6. Use /master-sync when needed to update the side dialog snapshot to the latest version of the main dialog.

Use Cases & Notes

This plugin is suitable for users who need to incrementally add constraints or acceptance criteria to complex conversations. The plugin runs with the current DSH process permissions. It is recommended to review the repository source code and license (MIT) before installation.

Conclusion

dsh-master-prompt provides DSH users with a structured way to manage master prompts and change history while maintaining conversation flow. Through the separation of main and side dialogs, proposal and version management becomes traceable and rollback-capable.

  • Plugin directory page: https://www.skillhub.cn/plugins/ZHANGaohan13213/dsh-master-prompt
  • Repository: https://github.com/ZHANGaohan13213/dsh-master-prompt
羽毛球分组比赛记分
小程序二维码

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

Xiaoye