DSH Prompt Shortcuts: Pin Frequently Used Prompts Above the Input Box

Preface

When chatting with Agents in DeepSeek Harness (DSH), instructions of the same kind tend to appear repeatedly: telling the model to “continue”, asking for “suggestions”, confirming “adoption” of a certain plan, or a fixed prompt for running tests or writing commit messages. Typing them out each time, or copy-pasting from notes, breaks the flow. Some people in the community write prompts in separate documents, but switching windows is still cumbersome.

The following introduces the client plugin Prompt Shortcut Buttons (npm package @cdredfox/dsh-prompt-shortcuts, maintained by cdredfox). It stores commonly used prompts as a row of buttons above the input box; clicking one fills in (replaces) the current input box content; when there are many entries they can be pinned or searched, and when the width is insufficient they are automatically folded into “More”. Data is stored in a Host-side JSON file, not relying on browser cache.

What is this

This is a Web client plugin mounted on the DSH conversation.input.dock slot—that slot is the “full-width entry above the input box”, in the same position as the official queue hint bar. Once installed, every time you open a conversation you will see your own shortcut button bar right above the input box.

Core features

Shortcut button bar above the input box

Each pinned (enabled: true) prompt corresponds to one button. Clicking it replaces the current content of the input box; hovering the mouse shows the full prompt. Styling uses DSH theme variables, adapting to light/dark themes and font size changes.

Automatic folding and “More”

The button bar is fixed to a single row and does not wrap when it cannot fit. Entries not displayed (including those manually unpinned, or pushed off due to width) go into the “More” dropdown, and clicking them likewise fills in the input box.

Maintenance panel

Click “Add Instruction” to open the panel: a card grid lists all prompts with search; you can edit, pin/unpin, or delete individual entries (deletion has a secondary confirmation). Clicking the card itself fills in the input box. To edit a single entry, click “Edit” on the card, change the content, then click “Back to list”, and click “Save” to write it.

Data storage

Prompts are saved in a Host-side JSON file:

$DSH_HOME/prompt-shortcuts.json

When DSH_HOME is not set, it is ~/.dsh/prompt-shortcuts.json. Writing uses atomic replacement with serial queuing; switching browsers or clearing site data will not lose configuration. Optional plugin config items dshHome and file can override the path. First use comes with three default prompts: Continue, Suggest, Adopt.

Since 1.1.0 the storage has switched to a Host file; old data from 1.0.x in the browser’s localStorage will not be automatically migrated; after upgrading, if you need to keep old data you must export it yourself (see the official README).

Agent tool

The plugin registers the Agent tool prompt_shortcuts, supporting list / save / remove, sharing the same storage as the UI. For example, in a conversation you can say: “Add a prompt for me, named ‘run tests’, content: run all tests and fix failing items.”

Installation and enablement

Environment requirements: the DSH version must include the conversation.input.dock slot; the Web side depends on @deepseek-ai/dsh-client-store (bundled with DSH Web). The package’s index.js and client.js can be loaded directly, with no build step and no extra runtime dependencies.

It is recommended to install the stable version from npm (replace web with the profile you actually use, e.g. tauri):

dsh plugin --profile web add @cdredfox/dsh-prompt-shortcuts

After installation, restart dsh web and refresh the browser, and the button bar will appear above the input box. To uninstall:

dsh plugin --profile web remove @cdredfox/dsh-prompt-shortcuts

The plugin runs with the current user’s permissions along with the DSH process; before installing, it is recommended to browse the repository source code and confirm that the MIT license meets your compliance requirements.

Typical usage

Action Result
Click a prompt on the button bar Replace the input box content
Click “More” Expand the list of prompts not displayed
Click “Add Instruction” Open the maintenance panel
Click a card in the panel Fill in the input box and close the panel
Click “Edit” in the panel Modify the name and content
Click “Pin” in the panel Control whether it is shown on the button bar
Click “Delete” in the panel Delete (requires secondary confirmation)

Example data file structure (can also be hand-edited; bad lines will be skipped when reading):

{
  "shortcuts": [
    { "id": "seed-continue", "label": "继续", "prompt": "继续", "enabled": true }
  ]
}

When debugging the HTTP interface, you can send JSON to the plugin route POST /api/dsh-prompt-shortcuts (token takes the value after ?token= in the startup log), for example to list all:

curl -X POST "http://127.0.0.1:3080/api/dsh-prompt-shortcuts?token=$TOKEN" \
  -H 'content-type: application/json' \
  -d '{"action":"list"}'

Applicable scenarios and caveats

For whom: Developers who frequently send fixed sentence patterns or short instructions repeatedly in DSH; people who want to consolidate things like “continue / review / run tests” near the input box but do not want to rely on browser local storage.

Known limitations (from the official README): Prompts only support plain text, no variables, templates, or attachments; the button bar only fills in content, editing must go through the maintenance panel; icons are inline SVG, the DSH official icon set is not open for plugin import.

The DSH ecosystem emphasizes “everything is a plugin”; community directories such as SkillHub are independent sites, with no official affiliation with DeepSeek / HF (High-Flyer). This plugin currently has 0 stars on GitHub; functionality and version are subject to the repository README and npm release (version in package.json is 1.1.2).

Conclusion

If you want to reduce repeated input and keep the prompt list in a Host-backupable JSON file, @cdredfox/dsh-prompt-shortcuts provides a row of shortcut buttons plus a maintenance panel, and lets the Agent maintain them via prompt_shortcuts. See the GitHub repository and the SkillHub directory page for details.

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

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

Xiaoye