Introduction

When using DeepSeek Harness (DSH) for agent development or multi-turn conversations, if you want all sessions to follow the same underlying rules or background information, repeatedly pasting the content into the system prompt of each message is very inefficient. The dsh-global-context plugin solves this problem by using an injection mechanism, decoupling global instructions from the context of individual conversations.

Plugin Overview

This is a DSH plugin maintained by user ZZJQ678. It adds a “Global Prompt Configuration” tab to the conversation view, allowing users to configure a piece of text. This text is inserted at the beginning of the system prompt for every session, and it takes effect immediately on the next message after saving.

Core Features

The plugin mainly provides the following capabilities:
1. Injects custom prompts to the beginning of the system prompt for every session.
2. Adds a “Global Prompt Configuration” tab to the conversation view, supporting real-time editing.

Installation and Activation

Run the official installation command in the terminal. After installation, you need to restart DSH to ensure it takes effect.

dsh plugin --profile web add -w github:ZZJQ678/dsh-global-context

Typical Usage

  1. Open the conversation view and click the new “Global Prompt Configuration” tab.
  2. Enter the instructions or background information you want to inject in the text box.
  3. Click save. The saved content appears at the beginning of the system prompt for every session and takes effect on the next message.

The configuration file is saved by default at $DSH_HOME/global-context.md. The path is shown at the bottom of the plugin interface, or you can directly open and edit the file with a text editor.

Use Cases and Notes

This plugin is suitable for developers who need to maintain consistent instructions across multiple sessions. When using it, note the following:
1. Be sure to restart DSH after installing the plugin.
2. To stop the injection, simply clear the configuration content and save.
3. The compatible plugin version is dshReleases 0.1.2-rc.1.
4. The source code is open source under the MIT license. It is recommended to review the source code before installation.

Summary

With this plugin, you can uniformly manage global instructions without modifying the individual settings of every session. The plugin directory and GitHub link are as follows:
- Plugin directory: https://www.skillhub.cn/plugins/ZZJQ678/dsh-global-context
- GitHub: https://github.com/ZZJQ678/dsh-global-context