Introduction¶
When writing prompts and sending messages in DeepSeek Harness (DSH), certain phrases keep coming up: 继续, 提交, 推送, 发版. Typing them every single time is a waste of time. DSH’s philosophy is “everything is a plugin,” which makes high-frequency actions perfect candidates for buttons right next to the input box—just one click to execute. dsh-quick-phrases is the UI enhancement plugin designed for exactly this purpose: a row of phrase buttons beside the input box, with display names decoupled from the actual sent content, a management page for adding/removing/editing/reordering, and configurable display position.
What It Is¶
dsh-quick-phrases is a plugin that adds a quick-phrase button row to the DSH input box. The display name shown on each button and the content actually sent are edited separately. There are four defaults: 继续, 提交, 推送, 发版. Click behavior is configurable: the default is “send directly”—one tap fires it when the input box is empty; when there’s already content, it inserts at the cursor position instead of overwriting what you’re writing. The entire row supports three modes: fully visible, collapsed into a pill, or completely hidden. The display position can be switched between below the input box, above the input box, or to the right of the toolbar. All data is stored locally in localStorage—no network calls, no file read/write.
Core Features¶
- A row of phrase buttons: Display names and sent content are decoupled. Four defaults provided; add, remove, or edit via the management page.
- Configurable click behavior: Default is “send directly”—fires immediately when the input box is empty; inserts at cursor when there’s existing content.
- Configurable display position: Below the input box (default), above the input box, or right side of the toolbar.
- Three states for the row: Fully visible, collapsed into a pill, or completely hidden.
- Swappable management entry: The trailing “Manage” label can stay as a text button, be replaced with a gear icon, or be hidden entirely. The management page remains accessible from Settings.
- Per-phrase visibility toggle: Each card on the management page has an eye toggle. Hiding a phrase removes its button from the row while keeping the card labeled “Hidden.”
- Auto-degradation on narrow screens: Based on available width, controls are progressively dropped—first “Collapse,” then “Manage,” then phrases from the tail end. On extremely narrow screens, only the first available phrase is retained.
- Management page: Drag handles for reordering, inline rename on cards, live preview with character count, two-step delete confirmation, and one-click restore defaults.
Installation & Activation¶
Prerequisite: DSH Desktop or Web, version ^0.2.2-rc.3 (0.2.2-rc.3 and above, but not 0.3.0 or later).
Recommended: install via npm:
dsh plugin --profile <your-profile> add dsh-quick-phrases
After installation, restart DSH (or press Ctrl+R on the session page) to activate.
The plugin is also available in the plugin marketplace: in DSH, go to Plugins → Discover → Index sources, and add this repository’s index URL:
https://raw.githubusercontent.com/pengtang1024/dsh-quick-phrases/main/index.json
Then search for the plugin by name in Discover to see the plugin and its versions. Clicking Install routes through plugin_manager.
Typical Usage¶
After installation, a row of phrase buttons appears beside the input box. The four defaults are: 继续, 提交, 推送, 发版. Click to send directly when the input box is empty; click to insert at the cursor when there’s existing content.
In Settings, go to Quick Phrases, where you can:
- Choose the display position: below the input box, above the input box, or right side of the toolbar.
- Choose the click behavior: “Send directly” or “Fill into input box.”
- Choose the row display mode: fully visible, collapsed into a pill, or completely hidden.
- Choose the management entry: text button, gear icon, or hidden.
- Choose what happens when the input box has content: auto-collapse or stay visible.
- For each phrase: set the display name and sent content, drag to reorder, use the eye toggle to hide individual phrases, use
✕with two-step confirmation to delete, and use “Restore Defaults” for a one-click reset.
The trailing “Collapse ▾” button temporarily collapses the entire row. Setting the row display to “Collapsed pill” or “Completely hidden” in Settings makes it a persistent pill or hides the row entirely.
Use Cases & Notes¶
Ideal for developers, product managers, and ops engineers who frequently send fixed messages. The plugin runs with the current DSH process’s permissions. Review the source code and license (MIT) before installing. Data is stored only in local localStorage—switching machines or clearing site data will cause loss.
Closing¶
dsh-quick-phrases saves time on repetitive typing through simple buttons and a clear management page. For more details, visit the plugin directory: https://www.skillhub.cn/plugins/pengtang1024/dsh-quick-phrases; source code and issue tracking are on GitHub: https://github.com/pengtang1024/dsh-quick-phrases.