DSH (DeepSeek Harness) embraces an “everything-as-a-plugin” philosophy. When developing or debugging agents, you often need to inject specific system instructions or prompts into different sessions. Traditionally this requires modifying code or manually pasting text. The dsh-prompt-lib plugin provides a visual prompt library, allowing you to manage prompts centrally on the Settings page and quickly toggle them for each conversation within the chat interface.
Plugin Positioning¶
Maintained by user Stmol under the MIT license, this plugin adds a dedicated Prompts page to DSH. It lets you keep a local prompt library and apply prompts by simple checkboxes when creating conversations. Once activated, a prompt is injected into every model step of the session and into any sub-agents it spawns.
Core Features¶
- Prompt management: access the
Promptspage under theSettingsmenu to create, edit, and delete prompts. - Session-level toggle: select the desired prompts via controls in the chat editor.
- Global effect: selected prompts apply to every model step within the current session and to all sub-agents it launches.
Installation and Activation¶
Install the plugin using the official command. A restart of DSH is required after the first installation.
dsh plugin add @stmol/dsh-prompt-lib
The plugin lacks an auto-update mechanism; to update it, remove the plugin and then re-add it. Subsequent edits are applied live through HMR (Hot Module Replacement).
Typical Usage¶
-
Create a prompt:
OpenSettings>Prompts, enter a title and the instruction, then save. The title serves only for identification and search in the list; the actual text sent to the model is the instruction content. -
Activate a prompt:
Go to any chat interface and locate thePromptscontrol in the editor toolbar (to the right of the permissions dropdown). Click it and check the desired prompt(s). The button displays the number of currently active prompts. -
Effect rules:
Checking a prompt takes effect starting from the next model step. No application restart or new session is needed to see the effect. ClickClearor uncheck to cancel a prompt.- Default behavior: if a prompt is marked “Enabled by default in new conversations,” it will be auto-selected when a new session opens. Once you manually change the selection (check/uncheck) in a session, that session retains your configuration and no longer inherits the default.
Notes¶
- File permissions: the settings file must be writable. If permissions are insufficient, the Prompts page will disable editing controls, and the editor will show the specific reason for write rejection.
- Capacity limits:
- A single instruction may contain up to 8,000 characters.
- You can store up to 100 prompts.
- Up to 500 library entries are read during rendering.
Content exceeding these limits will not affect model output but remains in the configuration.
- Selection accumulation: the plugin retains the check history for each session. Even if a prompt is later deleted, previous session records still keep it (i.e., inject empty content), which may lead to unexpected default behavior.
- Sub-agent inheritance: if a session itself has no prompt selected, its sub-agents will inherit the parent session’s selection. Only when no prompt is chosen along the entire chain will the “default for new conversations” be used.
By centralizing prompt management, this plugin streamlines prompt reuse in agent development. You can view the source code or report issues on GitHub.