Introduction¶
When working with DeepSeek Harness (DSH), you’ve likely hit this situation: “That prompt from last time was spot-on, I want to reuse it, but I’ve forgotten exactly how I phrased it.” Treating conversation history as a prompt library quickly turns it into a junk drawer; manually copy-pasting feels clunky. Prompt Vault is a local-first prompt library plugin that saves truly reusable prompts as searchable, taggable, one-click-copy cards, while letting the agent help you distill, deduplicate, and tag them during conversations.
What It Is¶
Prompt Vault is a DSH plugin maintained by xinx-chen. Its core responsibility is managing a set of structured prompt cards and providing full-text search and filtering capabilities. Data is stored solely in a single local JSON file—no network access, no uploads, no account required.
Core Features¶
Prompt Vault provides the following capabilities:
- Structured card fields: title, body, tags, notes, pinned flag, usage count, last-used timestamp.
- Full-text search & filtering: search across title, body, notes, and tags; filter by tag or pinned status.
- One-click copy: copy the prompt to the clipboard with a single click; the page remains open.
- Native agent integration: provides the
prompt_vaulttool (list/get/add/update/remove/use) and theprompt-vaultskill so the agent knows what’s worth saving; only portable question skeletons are stored—no project-specific details; at most one new entry per conversation, with a duplicate check performed before insertion.
Installation & Activation¶
Prompt Vault is a DSH bundle—no build step required, no runtime dependencies.
- Clone the repository to a stable local location:
git clone https://github.com/xinx-chen/dsh-prompt-vault.git
- Install the bundle from that directory in your DSH session:
plugin_manager install_bundle target=/absolute/path/to/dsh-prompt-vault
The install command links the directory to the currently active profile. Subsequent edits to the directory will take effect after a plugin reload.
- If the sidebar icon doesn’t appear, refresh the DSH window once.
The plugin manager UI may also offer an “Add plugin from directory” entry point; the exact label depends on your DSH version. The
install_bundlecommand above is the stable path.
Typical Usage¶
Open Prompt Vault from the sidebar (bookmark icon) to manually create a new prompt:
- Title: use as the capability name
- Body: use
【】as placeholders - Tags: add 2–4 tags
- Notes: add a one-line remark
Cards support pinning, expanding to view, copying, editing, or deleting.
You can also give the agent direct instructions:
- “Save that last prompt to my vault.”
- “Distill one reusable prompt from this conversation.”
- “What prompts do I have about code review?”
The agent will invoke the prompt_vault tool, check for duplicates first, then save and report back the title and id.
Data & Privacy¶
The vault is stored as a single JSON file:
$DSH_HOME/storages/prompt-vault/vault.json
The default location is ~/.dsh/storages/prompt-vault/vault.json.
- Writes are atomic (temp file + rename) and serialized before saving.
- If the file is corrupted, it is moved to
vault.json.corrupt-<timestamp>and the plugin starts with an empty vault. - No data is ever uploaded; uninstalling the plugin does not delete the file—back it up manually if needed.
- Limits: up to 1000 prompts, body ≤ 20,000 characters per prompt, notes ≤ 4,000 characters, up to 16 tags per prompt.
For development testing with a temporary directory, set DSH_HOME before launching DSH.
Compatibility & Limitations¶
- Requires DSH
0.2.3-alpha.2or later (dsh.engines.dsh). - The DSH plugin API is still evolving. This plugin uses public bundle hooks (
webServer,tools,skills,systemPrompt) and the Client slot API (sidebar.panellist,main); changes to these contracts may cause compatibility issues. - Node.js 22+ required.
- No cross-device sync; the Client cannot insert text directly into the input box—clipboard copy is the only mechanism.
Use Cases¶
- Developers or researchers who frequently reuse the same category of prompts
- Users who want to distill recurring patterns from agent conversations into a searchable library
- Privacy-conscious users who want prompts to stay on their local machine only
Before use, review the plugin source code and license to ensure it fits your use case.
Conclusion¶
Prompt Vault turns prompts from “scattered fragments buried in conversation history” into a “searchable, manageable, reusable” local library. After installation, you can build cards manually or let the agent help you distill and deduplicate. Plugin directory and source code are linked below.
- Plugin directory: https://www.skillhub.cn/plugins/xinx-chen/dsh-prompt-vault
- GitHub: https://github.com/xinx-chen/dsh-prompt-vault