dsh-global-prompt: DSH Web Global Instruction Editor

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:

  1. 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.
  2. Automatic File Creation: On first save, if the file does not exist, ~/.dsh/AGENTS.md will be automatically created (UTF-8 encoding, no BOM).
  3. 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.
  4. Immediate Effect: New sessions immediately read the latest content when opened; already-opened sessions re-read on the next file tool call or turn.
  5. 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.

  1. 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
  1. Restart the Web instance to enable the plugin:
dsh web

Usage

  1. Open http://127.0.0.1:3080.
  2. Go to Settings -> Global Instructions.
  3. Modify the content in the editor and click save.

Notes

  • Restarting dsh web is 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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye