Introduction¶
The plugin-based architecture of DeepSeek Harness (DSH) allows users to extend workflows, but managing a long chain of fixed prompts directly in the chat input box is still prone to disrupting your flow: you have to copy-paste from elsewhere every time, or hunt for the right insertion point within a wall of text. Developers who frequently reuse certain instructions would prefer a centralized entry point for managing them, with the ability to quickly insert one at the cursor position when needed.
Below is an introduction to a preset prompt library plugin for the DSH desktop app. It organizes your commonly used prompts into labeled entries that you can insert at the cursor position in the input box with a single click. The library itself is a JSON file, which an agent can also read and modify directly to add or reorganize prompts.
Feature Overview¶
- The entry point lives in the toolbar row of the chat input box. Clicking it expands the panel upward from the button, so it never obscures the conversation body.
- Tag + content: supports creating, renaming tags, editing content, deleting, and pinning. Pinned entries are listed first.
- Insert at cursor: reads the current draft’s cursor position and inserts the prompt there—without overwriting existing text or disrupting the draft.
- Hover preview: hovering over a tag for about 0.24 s floats up the full content (scrollable), so even overly long tag names are fully visible.
- Grouping & search: “All / Pinned” segmented view + keyword search.
- Right-click context menu: pin prompt, rename tag, edit prompt content, delete prompt (deletion requires a second confirmation).
- Theme-aware: colors use only DSH’s theme tokens; when an acrylic/glass aesthetic plugin is active, the panel reuses that theme’s own blur parameters and background color instead of being re-styled as a dialog.
- Fully local: no network requests, no telemetry; the library file lives in the user’s profile directory.
Installation & Enablement¶
In the DSH desktop app, go to Settings → Plugins, search for dsh-tao-prompt, or install it from the plugin marketplace. You can also install it via the command line:
dsh plugin --profile <profile> add https://github.com/voidwrathhh/dsh-tao-prompt
After installation, restart DSH once (the host needs to load the new module), then refresh the page to activate the plugin.
Usage¶
- Open the panel: find the “Prompt Library” button in the chat input box’s toolbar row and click it.
- Insert a prompt: click the “+” at the leftmost side of a tag; the content will be inserted at the cursor position.
- Create new: click “New” in the upper-right corner of the panel.
- Pin / rename / edit content / delete: right-click a tag.
- Keyboard shortcuts:
Tabto focus a tagEnterto insertShift+F10or the Menu key to open the context menuEscto close the panel
If an insertion fails, a message will be shown (e.g., the input box isn’t ready yet)—it won’t fail silently. While the panel is open, it re-reads the library file every 2.5 seconds, so changes made by an agent are reflected without a restart.
Library File & AI Interface¶
Library file location:
%USERPROFILE%\.dsh\dsh-tao-prompt\presets.json
On first run, the plugin copies the bundled presets.json into this location as a seed; after that, this file is the source of truth. Deleting all prompts will not auto-restore the seed—you’ll simply end up with an empty library. To place the library on a different drive (or directory), set the environment variable DSH_TAO_PROMPT_DIR to point there.
The plugin accepts several JSON formats, all normalized into the standard structure:
// 1. Standard form
{ "version": 1, "items": [ { "name": "Code Review", "content": "Please review the following code…", "pinned": false } ] }
// 2. A bare array
[ { "name": "Translate to Japanese", "content": "Translate the following into Japanese:…" } ]
// 3. Name + content pairs
[ ["Code Review", "Please review the following code…"] ]
// 4. The simplest flat mapping
{ "Code Review": "Please review the following code…", "Translate to Japanese": "Translate the following into Japanese:…" }
pinned: truemeans pinned to top;idis optional—the plugin generates a stable id from “name + position”.- Limits: 500 entries, 200 characters for tag names, 40,000 characters for content.
- Writes use a
presets.json.tmp→renameatomic replacement, so no partial file is left behind.
You can also use HTTP (the host has registered the route):
curl http://127.0.0.1:<dsh-port>/dsh-tao-prompt/presets # GET to read, returns { version, seeded, items, file }
curl -X PUT -H 'content-type: application/json' \
--data @presets.json http://127.0.0.1:<dsh-port>/dsh-tao-prompt/presets
Data & Backup¶
- The file is the single source of truth; the browser
localStorage(keydsh-tao-prompt.presets.v1) is merely an offline mirror and fallback copy. - If writing back to the file fails, a banner appears at the top of the panel: “Saved locally, but could not write back to presets.json.”
- Backup = copy that
presets.json; when switching machines, simply place it back at the same path.
Compatibility & Development¶
The plugin is verified on DSH Desktop 0.2.2-rc.5. It uses only public slot registration and ctx.webServer.register—no private internal APIs.
The .tools/ directory in the repo contains offline self-test scripts (not shipped in the release package): a mini React runtime that actually renders client.js for behavioral assertions, plus standalone tests for the host-side routes.
node .tools/smoke.cjs # Client: registration, insertion, menu, search, hover preview, file sync
node .tools/hostcheck/hostcheck.mjs # Host: read, write, validation, atomic write
License¶
MIT, see LICENSE.
Conclusion¶
dsh-tao-prompt turns your prompt library into a local JSON file. Combined with DSH’s cursor-insertion capability, it makes reusing fixed instructions far more direct. If you need to manage a set of commonly used prompts in DSH, this plugin is a solid starting point—pair it with an agent to batch-maintain the file and keep the library consistent.
- Directory page: https://www.skillhub.cn/plugins/voidwrathhh/dsh-tao-prompt
- GitHub: https://github.com/voidwrathhh/dsh-tao-prompt