dsh-prompt-enhance: Prompt Enhancement Next to the Composer Send Box

Preface

When writing Composer prompts in DSH, drafts often sound too colloquial and lack constraints, requiring multiple revisions before they become clear. Copying the draft elsewhere for the model to polish, then pasting it back, breaks the flow of the session. DeepSeek Harness’s plugin mechanism allows embedding such capabilities directly into the interface: dsh-prompt-enhance adds a star-shaped button to the left of “Send Message,” performing a single-turn rewrite of the input draft using the current session model—without reading history, without touching attachments, and offering one-click restore or cancel after editing.

The following introduces the plugin’s positioning, capabilities, and installation/usage instructions. For factual information, refer to the GitHub repository README.

What Is This

@istarry/dsh-prompt-enhance (community directory entry dsh-prompt-enhance) is published by maintainer iStarryDust and categorized under model reasoning. In one sentence: it provides a configurable “Enhance Prompt” button to the left of the Composer send action, driving a single LLM call via editable templates to rewrite drafts into clearer prompts.

Core Features

Composer Interaction

  • Click the star button: performs a single-turn rewrite of the current draft in the input box (follows the current session model; does not read session history; attachments are unaffected).
  • After rewriting completes: the button text changes to “Restore Original”; clicking it again restores the original draft.
  • While rewriting is in progress: clicking again is treated as cancel; the original text remains unchanged.

Dual Templates and Single Call

Each enhancement corresponds to a single-turn LLM call. Two Markdown templates take on the system-side and user-side roles respectively:

File Purpose
system-template.md Rewrite rules (fixed delivery): e.g., role, rewriting approach, language following, length limit, etc. Changing it equals changing “how to rewrite.”
user-template.md Request wrapping: carries the draft with each request. Changing it equals changing “how the draft is handed to the model.”

The contents of both files can be written freely—no fixed format is required:

  • The {input} placeholder is optional: when present, the draft is inserted at that position; when absent, the draft is automatically appended to the end of the template (separated by a blank line).
  • Files cannot be saved as empty: an empty file is treated as “no file” and falls back to the built-in default.

The README mentions that rewrite constraints on the system template side include rules like “≤800 characters.” The specifics depend on your local template or the built-in default.

Template Storage and Activation

On first use, the plugin seeds the built-in default templates into the Harness home directory (Windows example below; on Linux/macOS, this corresponds to the .dsh path under the user’s home directory):

C:\Users\<you>\.dsh\prompt-enhance\prompts\
├── system-template.md
└── user-template.md
  • Directly editing the files above takes effect immediately for the next enhancement—no DSH restart required.
  • Existing files are not overwritten; deleting a file reverts to the built-in default.
  • The “Restore Default Templates” option in the settings page writes the defaults back to these two files.

The prompts/ inside the plugin package serves only as factory defaults for first-time seeding.

Settings Page

Path: Settings → Enhance Prompt. Configurable options:

  • Display toggle
  • Override model (provider / model, empty follows the session)
  • Temperature, output limit
  • In-place editors for both templates (equivalent to directly editing the files)

Package Structure (for reference against the source code)

The bundle-related structure listed in the README includes: cordis.patch.yml (host service prompt-enhance, Composer button ui-prompt-enhance, settings page ui-settings-prompt-enhance), prompts/, packages/, node_modules/, etc. The currently released version in package.json is 0.1.1, licensed under MIT.

Installation and Activation

Run the official installation command in the terminal:

dsh plugin add @istarry/dsh-prompt-enhance

After installation, restart the DSH service, then verify that the star button appears to the left of the Composer send button.

Typical Usage

  1. Write your draft in the Composer input box (attachments are allowed; enhancement will not modify them).
  2. Click the star button and wait for the single-turn rewrite to complete. If unsatisfied, click “Restore Original” to return to the original draft.
  3. If the rewrite style doesn’t match expectations, edit system-template.md or user-template.md under ~/.dsh/prompt-enhance/prompts/ (see the Windows path above), or modify them inline in the settings page; the next enhancement will reflect your changes after saving.
  4. If you need to use a specific model for enhancement, fill in the override provider/model in the settings page; leaving it empty matches the session model.

Use Cases and Notes

Who it’s for: Users who frequently write long prompts in the DSH Composer, want local one-click polishing, and want customizable rewrite rules; developers willing to fine-tune the “rewrite strategy” through templates rather than modifying plugin code.

Notes:

  • The plugin runs with the current DSH process permissions. Before installing, it is recommended to review the GitHub source code and the MIT license to ensure its behavior aligns with your environment policies.
  • Enhancement does not read session history and is only suitable for optimizing the current draft; it cannot perform context completion for you.
  • The community directory skillhub.cn is an independent site with no official affiliation to DeepSeek/Hithink; the DSH ecosystem emphasizes “everything is a plugin,” and this plugin is one such model reasoning extension.

Conclusion

dsh-prompt-enhance integrates “single-turn prompt rewriting” into the Composer: a star button, restorable/cancelable operations, editable dual templates, and centralized management of toggles and model parameters in the settings page. For installation instructions and template details, refer to the directory page and the repository README.

  • Directory page: https://www.skillhub.cn/plugins/iStarryDust/dsh-prompt-enhance
  • GitHub: https://github.com/iStarryDust/dsh-prompt-enhance
羽毛球分组比赛记分
小程序二维码

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

Xiaoye