DeepSeek Harness Plugin: dsh-prompt-workbench

Preface

Writing prompts in DeepSeek Harness (DSH) is the highest-leverage step in agent development, yet it is the most frequently skipped. You input a vague sentence, the agent starts guessing, and only after a few rounds of interaction do you realize it has deviated from your true intent. dsh-prompt-workbench aims to solve this problem. It is not just an “Enhance” button; it is a workbench that transforms vague inputs into executable prompts without leaving your current editor.

Plugin Introduction

fufuyin/dsh-prompt-workbench is a plugin for DeepSeek Harness that provides a prompt rewriting workbench. It features four rewriting modes, interruptible streaming output, and real token-level diff comparisons.

Core Features

  • Multi-dimensional Prompt Analysis: Runs locally in the browser, scoring across six dimensions: goals, context, constraints, output, acceptance criteria, and examples.
  • Structured Suggestions: Provides fix suggestions sorted by severity, with the ability to directly insert corresponding skeletons.
  • Formatted Output: Renders rewritten results by structure (headings, lists, code) and provides a structure coverage view.
  • Four Rewriting Modes:
    • Refine Requirements: Transforms vague wishes into verifiable requirements.
    • Add Constraints: Clarifies scope, boundaries, and acceptance criteria.
    • Structure Rewrite: Reorganizes hierarchically without altering content.
    • Condense Expression: Removes redundancies and merges overlapping information.
  • Token-level Diff: Displays added and deleted tokens, falling back to plain text when limits are exceeded.
  • Streaming & Interruption: Incremental output with mid-process stopping support; 180-second timeout per single call.
  • Dual-UI Synchronization: Toolbar capsule and floating panel share state to ensure consistency.
  • Native Theming: Adapts to both Light and Dark modes.
  • Prompt Hygiene: Preserves @path references, {variables}, <slots>, TODOs, URLs, and code blocks.

Installation and Activation

Install the plugin using the official command:

dsh plugin --profile web add github:fufuyin/dsh-prompt-workbench

After installation, refresh the page or restart the Web Profile. The ✦ Prompt Enhance button will appear in the toolbar.

Typical Usage

  1. Type or paste your draft into the editor.
  2. Click ✦ Prompt Enhance in the toolbar to open the panel.
  3. Read the analysis bar in the left input box to view coverage across the six dimensions and identify vague phrases.
  4. Modify based on the suggestion list or directly insert missing skeletons.
  5. Select a rewriting mode (e.g., “Refine Requirements”) and output language, then press Enter or click Start Enhance.
  6. Switch views in the right panel: view formatted results, view token-level diffs (with highlighted additions/deletions), or view structure coverage.
  7. Use Replace Input Box to write the result back, or use Append/Copy.

Use Cases and Notes

This plugin is suitable for agent developers who need to repeatedly polish their prompts. Upon installation, it runs code with the permissions of the current DSH process and sends drafts to the model routing currently used by the session. The analysis process is completed locally in the browser and does not send analysis requests.

Please note the following limitations:
* Draft Length Limit: 24,000 characters.
* Diff Size Limit: 700 tokens per side.
* Concurrency Limit: Tracks up to 8 tasks.
* Timeout Limit: 180 seconds per single model call.
* Permissions & Storage: No persistent server-side settings; all settings are stored in the browser’s localStorage.

Summary

By providing streaming output, interruptible runs, and real token-level diffs, this plugin transforms prompt engineering from a process of “gut feeling” into a “verifiable” practice.

GitHub Repository

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

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

Xiaoye