Preface¶
When using agents in DeepSeek Harness Web, it is often necessary to repeatedly enter the same set of requirements across different sessions. If these requirements are kept in external notes, switching between sessions becomes inconvenient. dsh-prompt-manager is a local, bilingual prompt library plugin for DSH Web that centralizes commonly used prompts and injects them as system instructions into the current session.
What This Is¶
dsh-prompt-manager is maintained by SaiSenBox and is licensed under MIT. It is designed for DeepSeek Harness Web to solve the problem of “prompts needing to be manually re-entered and being inconvenient to reuse across sessions.” The plugin provides a prompt management interface, quick selection in the chat input box, JSON backup and import, and per-session prompt sets.
Core Features¶
The following verified capabilities are listed:
- Create, edit, delete, and search prompts in “Settings → Prompt Management.”
- Favorite commonly used prompts; the candidate list is sorted by usage count and most recent use time.
- Type
/promptor/提示词in the chat input box to open the list, or type/keywordto search. - The chat input box toolbar provides a “Prompts” button; the expanded panel allows searching and selecting multiple prompts simultaneously, as well as removing individual prompts.
- When enabled, the button displays the current prompt name or the number of enabled prompts; branches created from the current session inherit the prompts and display the same status.
- Supports exporting the prompt library as a JSON backup and importing it using “Merge” or “Replace” modes.
- Follows DSH’s language settings to switch between Chinese and English.
- Data is stored only locally (browser and local mirror files) and is not uploaded to the network by the plugin.
- Four example prompts are included on first use and can be modified or deleted at any time.
- Prompts are injected as system instructions in subsequent requests, not disguised as chat messages.
- Session branches inherit the prompt set from the most recent ancestor session and can individually add or remove prompts within the branch.
Installation and Activation¶
It is recommended to install the npm version using the DSH plugin command:
dsh plugin --profile web add dsh-prompt-manager
Restart DSH Web after installation.
If debugging from source code, you can run the following in the project directory:
powershell -ExecutionPolicy Bypass -File .\install.ps1
Typical Usage¶
-
Open the settings in the bottom-left corner of DSH Web, go to “Prompt Management,” and create, edit, organize, and back up prompts.
-
Return to the session input box, click the “Prompts” button to the right of the access mode, and search and select one or more prompts from the list.
-
You can also type
/提示词,/prompt, or/keywordfor quick selection; after selection, the slash text will disappear automatically. -
When editing, press
Ctrl + Enter(or⌘ + Enteron macOS) to quickly save. -
For migration, first export a JSON backup; when importing, choose “Merge” to keep existing entries while backup entries with the same ID will overwrite old ones, or choose “Replace” to fully replace the current prompt library with the backup.
Applicable Scenarios and Notes¶
It is suitable for scenarios where prompts need to be reused frequently and where you want to store commonly used requirements in DSH Web for quick access. It does not replace DSH’s session capabilities; it simply adds the selected prompts as system instructions to subsequent requests in the current session.
Notes before use:
- The plugin runs with the current DSH process permissions; review the source code, license, and dependencies before installation.
package.jsondeclares Node engines as^22.19.0 || >=24.0.0, and peerDependencies include@deepseek-ai/cordis ^4.0.1.- Prompts are stored by default in the browser’s
localStorageunder thedsh-prompt-manager.promptskey and are mirrored to the local file$DSH_HOME/dsh-prompt-manager/prompts.json; the environment variableDSH_PROMPT_MANAGER_DATA_DIRcan change the local mirror directory. - The set of prompts currently enabled for each session is stored in
dsh-prompt-manager.session-injections. - The system prompt itself only takes effect within the current DSH process; after DSH restarts, the web client restores injection from browser-local records for sessions that still exist.
- By default, the plugin only allows local pages to read or modify prompts and injection states; remote management requires explicitly setting
DSH_PROMPT_MANAGER_ALLOW_REMOTE=1. - An empty prompt library is a valid state and will not regenerate examples after restart.
- Persistent files are atomically replaced using temporary files in the same directory and are restricted to the current user as much as possible; if a file is corrupted, the plugin will not silently overwrite it—the original file is preserved as
prompts.json.corrupt-*first.
To uninstall, run:
powershell -ExecutionPolicy Bypass -File .\uninstall.ps1
This script removes the plugin and profile registration but retains prompt data in the browser.
Conclusion¶
The value of dsh-prompt-manager lies in bringing frequently used prompts from external notes back into the DSH Web session input box and allowing branch sessions to inherit the same set of prompts. It is suitable for DSH users who have clear needs for prompt reuse and prefer data to remain on their local machine.
Repository address: https://github.com/SaiSenBox/dsh-prompt-manager
Plugin directory listing page: https://www.skillhub.cn/plugins/SaiSenBox/dsh-prompt-manager (This link comes from the plugin listing and was not included in the scraped material.)