Introduction¶
When entering long instructions or complex prompts in the DeepSeek Harness (dsh) composer, switching windows, copy-pasting, and repeated typing can easily break your train of thought. Existing quick-reply features often lack flexibility, making it difficult to quickly insert structured preset templates. dsh-prompt-book provides a set of reusable, editable prompt presets that can be inserted directly at the cursor position while maintaining focus, so you can continue typing and sending without interruption.
Plugin Overview¶
dsh-prompt-book is a client-side plugin that adds a notebook icon button to the dsh composer toolbar. Clicking it opens a fixed-position preset panel that supports keyboard shortcuts and mouse interactions. It inserts the selected prompt at the current editor cursor position and returns focus to the input field.
Maintainer: yuanyuanzhang0815. The plugin is forked from dsh-prompt-chips, with enhancements including an editable preset list, drag-and-drop reordering, and local persistent storage.
Key Features¶
- Notebook button: Inserts a notebook icon in the composer toolbar (positioned between the permission selector and the ADHD badge).
- Preset panel: Opens a fixed-position 520px-wide panel on click, expanding upward or downward based on viewport height.
- Preset list: Includes 14 default Chinese prompt presets by default; each entry is editable, deletable, and reorderable via drag-and-drop.
- Insert & focus: Selecting a preset inserts it at the cursor position and keeps focus in the composer after insertion.
- Keyboard navigation: Use ↑/↓ to navigate entries, Enter to insert, 1–9 and 0 to insert the first 10 entries, and Esc to close the panel.
- Drag-and-drop reordering: Each row has a six-dot handle on the left side for drag reordering; you can also select an entry and press Alt+↑/↓ to reorder.
- Inline editing: Hovering over or focusing a row reveals a pencil icon, allowing you to edit the label and body inline with save and cancel options.
- Add & delete: A plus button at the top adds a new empty row; a minus button enters delete mode, showing a red delete button on all rows. Deletions can be undone within 5 seconds.
- Local storage: All changes are saved in the browser’s localStorage under the key
dsh-quick-prompts.presets.v2; the legacy key…presets.v1is automatically migrated.
Installation & Activation¶
Register the plugin using the official install command:
dsh plugin --profile web add github:yuanyuanzhang0815/dsh-prompt-book
After installation, restart dsh until the notebook icon appears in the toolbar. If the button does not appear, try restarting dsh again. No build step is required when installing from GitHub — client.js is pure browser JavaScript loaded by dsh’s module loader.
For local development, you can use link install:
dsh plugin --profile web add "link:$HOME/.dsh/plugins/dsh-prompt-book"
Remove the plugin:
dsh plugin --profile web remove dsh-prompt-book
Typical Workflow¶
- After installing the plugin, locate the notebook icon in the dsh composer toolbar.
- Click the icon to open the preset panel, which lists 14 prompts by default.
- Use keyboard ↑/↓ or mouse to select an entry, then press Enter or a number shortcut to insert it at the cursor position.
- Focus returns to the input field after insertion; continue typing and press Enter to send.
- Hover over a row in the panel, click the pencil icon to edit the label and body, or drag the handle to reorder entries.
- Click the plus button at the top to add a custom preset, or click the minus button to enter delete mode and remove entries via the red trash icon.
Use Cases & Notes¶
- Ideal for developers who frequently use structured prompts, such as code review, requirement decomposition, and solution comparison.
- The plugin runs entirely on the client side and does not automatically send requests; it only inserts text into the editor.
- It is recommended to review the source code and the MIT license before installation to ensure it meets your use case and security requirements.
Summary¶
dsh-prompt-book enables quick insertion of commonly used prompt templates into the dsh composer, reducing interruptions from copy-pasting and keeping the input flow continuous. Combined with keyboard shortcuts and drag-and-drop reordering, you can organize your preset list to fit your personal workflow and boost coding and collaboration efficiency.
- Directory page: https://www.skillhub.cn/plugins/yuanyuanzhang0815/dsh-prompt-book
- GitHub: https://github.com/yuanyuanzhang0815/dsh-prompt-book