Introduction

DeepSeek Harness (DSH) uses a plugin-based architecture. During development or usage, frequently copy-pasting fixed prompts is cumbersome and prone to paste errors. The dsh-prompt-presets plugin solves this problem: it lets you build a centralized prompt library in Settings, and then inject preset content into the composer draft area with a single click.

Plugin Overview

This plugin is maintained by zhangdong456 and released under the MIT License. It provides a visual preset management interface, supports full CRUD operations, and persists all data in a local settings file.

Installation and Enablement

Installing this plugin requires the official command-line tool and specifies the web profile configuration.

dsh plugin --profile web add github:zhangdong456/dsh-prompt-presets#main

After installation, you must restart DeepSeek Harness and press Ctrl+F5 in the browser to refresh the page before the plugin takes effect.

Core Features

The plugin has the following core capabilities:

  1. Preset library management: A single preset includes a title (no more than 50 characters) and content (no more than 10,000 characters). The list page displays the title and a first-line preview of the content.
  2. Full CRUD: Supports creation, editing, deletion (with inline confirmation), and reordering via keyboard shortcuts (↑/↓). All changes are persisted immediately.
  3. One-click injection: A Prompts button is available above the dialog input box. Clicking it opens a bottom-anchored menu; select a preset and click Insert into composer to insert it.
  4. Draft-friendly: The injection logic is preset + blank line + existing draft. If the current draft is empty, only the preset content is inserted. The system does not automatically send messages, so you always control the timing of sending.
  5. Persistent storage: Data is saved in the official settings file at $DSH_HOME/settings.yaml, under the prompt-presets namespace. Data is retained after restarts and supports manual editing.
  6. Theming and internationalization: Built entirely with official theme tokens, it includes built-in Chinese and English dictionaries and automatically follows the UI language.
  7. Zero custom RPC: The browser reads and writes data through the shared settings.describe / settings.replace interfaces, while the host only registers validation patterns.

Usage Flow

  1. Open Prompt Presets on the Settings page, click New Preset, enter the title and content, then click Save.
  2. In any chat interface, click the Prompts button above the input box.
  3. Select a preset from the list and click Insert into composer.
  4. After insertion, you can freely edit the text and then send it through the normal process.

Data and Privacy

  • Storage location: Preset data is stored in the $DSH_HOME/settings.yaml file under the prompt-presets key.
  • Privacy and security: Preset content is saved only on the local machine, and the plugin itself makes no network requests.
  • Format: It uses plain YAML. You can back up the file or edit the preset content manually.

Conclusion

If you need to manage commonly used prompt templates uniformly in DeepSeek Harness, this plugin provides a lightweight, local solution. All configuration is saved in your local settings file, and changes take effect immediately.