Preface¶
When developing with DeepSeek Harness, maintaining user global instruction files like ~/.dsh/AGENTS.md typically requires manually opening the file directory. This plugin adds an editing panel to the Web settings interface that directly reads and writes the same file. This is a maintained and fixed version of couplingartist/dsh-global-prompt, solving the installation issue of the original version.
Core Features¶
The plugin provides the following capabilities:
- Direct Web Editing: Adds a “Global Instructions” section to the settings interface. Provides a multi-line editor, save button, file path display, and character count.
- Automatic File Creation: On first save, if the file does not exist,
~/.dsh/AGENTS.mdwill be automatically created (UTF-8 encoding, no BOM). - Single Source of Truth: The Web settings page and external editors read and write the same file; there is no second copy of the data.
- Immediate Effect: New sessions immediately read the latest content when opened; already-opened sessions re-read on the next file tool call or turn.
- Security Limits: The HTTP API only allows loopback (127.0.0.1) access; request body size limit is 1 MiB.
Installation and Activation¶
First install the plugin, then restart the Web instance.
- Run the following command to install the plugin:
dsh plugin --profile web add @zfgcta/dsh-global-prompt
Or:
dsh plugin --profile web add github:HelloQingTao/dsh-global-prompt
- Restart the Web instance to enable the plugin:
dsh web
Usage¶
- Open
http://127.0.0.1:3080. - Go to Settings -> Global Instructions.
- Modify the content in the editor and click save.
Notes¶
- Restarting
dsh webis required for the plugin to load. - The HTTP interface only allows local loopback (127.0.0.1) access.
- Request body size limit is 1 MiB.
- Based on the MIT License.
Conclusion¶
This plugin solves the editing problem of global instruction files through the Web interface. For more details, please check the GitHub repository.