Introduction¶
The core design philosophy of DeepSeek Harness (DSH) is “Everything is a plugin”. During the development and debugging of agents, developers often need to reuse a set of verified prompts or system instructions. If these prompts are scattered across local files or note-taking applications, the efficiency of invocation is low.
dsh-plugin-prompt-vault aims to solve this problem by embedding a personal prompt asset library directly into the Harness, allowing developers to quickly search, view, and inject prompts into the current session via the command line.
Overview¶
This is a memory-type plugin maintained by user 121212165. It stores personal prompt libraries in local files, supporting batch import, list retrieval, tagging, and injecting prompts into the current conversation session.
- Storage Location:
~/.dsh/prompt-vault/library.l - License: MIT
Core Features¶
This plugin provides the following capabilities:
1. Batch Import: Supports importing markdown files, automatically extracting ## Title as the identifier.
2. List and Search: Can list all prompts or filter by title, ID, or tag.
3. View Content: Displays the specific content of a prompt.
4. Inject into Session: Injects the selected prompt as a user message into the current session via command.
5. Tagging: Adds tags to prompts for easier management.
Installation and Activation¶
Please ensure that pnpm is installed and added to the PATH before installation.
- Install Plugin:
Execute the following command to install the plugin to the web profile:
dsh plugin --profile web add github:121212165/dsh-plugin-prompt-vault
-
Configure Mounting:
Manual configuration file editing is required. Merge the content ofcordis.patch.ymlfrom the plugin repository root into$DSH_HOME/profiles/web/cordis.patch.yml.
Note: The default file content is an empty array[]. It is recommended to replace the entire file or manually merge the array contents. Do not append directly (this will cause YAML parsing errors). -
Restart Service:
The dsh process needs to be restarted after modifying the configuration. Both the configuration layer and the client need to be refreshed for the changes to take effect.
Typical Usage¶
The plugin provides the following command-line operations:
/pv: List all prompts./pv anti-audit: Filter and search by title, ID, or tag./pv show anti-ai: Display the content of the prompt named “anti-ai”./pv send anti-ai: Inject the “anti-ai” prompt into the current session./pv import ~/prompts.md: Batch import markdown files./pv tag anti-ai quality: Tag the “anti-ai” prompt with “quality”.
Notes¶
- Environment Dependency: Depends on
pnpm. - Headless Mode Limitations: The
/pvcommand is unavailable in Headless CLI mode. Slash commands can only be triggered on the Web UI or TUI panel and must be verified via the Web UI. - Version Fix: Version v0.1.0 fixed the issue where the
sendcommand caused session interruption. Old versions wrapped messages using{kind:"plugin"}, which is deprecated; the new version uses theplugin:prompt-vaultkind, complying with the session format v4 specification to ensure smooth session injection.
Summary¶
This plugin is suitable for developers who need to frequently invoke fixed prompt templates. By replacing manual copy-pasting with localized file management, it improves workflow efficiency within the Harness.
For more details and source code, please visit the GitHub Repository.