dsh-global-prompt: Persist global prompts across sessions in DSH Web settings

Foreword

When building agents or fixed workflows in DeepSeek Harness (DSH), it is often necessary to repeat the same “general requirements” in every new session: role boundaries, output formats, prohibited actions, etc. Writing these into the system segment of a single session often requires pasting them again after switching sessions or refreshing; relying solely on temporary pasting also makes it difficult for teams or individuals to maintain consistency over the long term.

DSH’s profile and plugin system allows for behavioral extensions at the composition layer, but the official release does not include a built-in, web-facing, persistently editable entry point for global instructions. The community-maintained dsh-global-prompt addresses this gap: it provides a toggle and text box under Settings → Global Prompt, writes fixed instructions into the corresponding profile’s configuration, and injects them according to rules during prompt assembly. The following section introduces what it is, how to install it, and the scope and limitations to be aware of during use.

What is this

dsh-global-prompt is a community global prompt plugin for DeepSeek Harness: it persists cross-session fixed instructions via Web settings, relying on official ConfigForms and profile patches for persistence. It is a preview delivery of the current pinned development snapshot (plugin package version 0.2.0). The maintainer is Humengjiu, and it uses the MIT license. It is not officially included by DeepSeek; like the SkillHub community directory, it belongs to an independent ecosystem and is not equivalent to the official app store.

In one sentence: given a toggle and a text block, it allows the web profile where the bundle is installed to read real-time configuration during every assembly, contributing literal global prompt content in the appropriate position.

Core Features

Settings UI and Persistence

After installation, navigate to Settings → Global Prompt via the DSH Web sidebar. The interface includes:

  1. An enable toggle;
  2. A fixed instruction text box.

Configuration is saved to the profile’s cordis.patch.yml via official real-time ConfigForms. The default path for Web scenarios is $DSH_HOME/profiles/web/cordis.patch.yml. The server performs conflict checks on expired editing versions; save failures will prompt an error, and the current page draft is retained for retry. No writes to the Host will occur in remote connection or read-only states.

The plugin entry is enabled by default upon first installation; if updating from an older package, the official system retains the original enabled state. If the settings entry does not appear, you can enable dsh-global-prompt in the sidebar Plugins section and follow the prompts to restart.

Default feature values: Toggle off, text empty.

Impact on Prompt Assembly

When the toggle is on and the text is non-blank, user:global-prompt contributes the raw text after the deployment persona prefix; when off, cleared, or containing only whitespace, it contributes nothing.

Forms like {{variable}} in the text are preserved literally and will not be executed as DSH interpolation expressions. Every assembly reads the current real-time configuration; modifications notify prompt consumers, requiring no plugin restart.

The content increases model input tokens, and modifications change the KV-cache prefix. The scope of effect is limited to sessions within the profile where the bundle is installed. The official rule stating “full system prompt overrides other sections” remains in effect.

Compatibility and Validation Scope

Plugin Version Validated dsh
0.2.0 Official release 0.2.1-alpha.2 (tag dsh-v0.2.1-alpha.2, commit d743267388641bc76f17c45ce8b4c231aed1d32c)
0.1.0 Original development branch snapshot, see Historical Preview Version

README description: Web installation and web operations have been verified using the official npm release package on Windows; the desktop application uses the same Web plugin protocol, but standalone desktop installation acceptance testing has not yet been performed. No real model API calls, desktop application installations, or mobile acceptance tests have been conducted. The plugin is not published to npm and is currently delivered via GitHub preview packages (e.g., v0.2.0).

Installation and Enablement

First, confirm the environment, then install the preview package, and finally restart and edit in settings.

1. Confirm dsh Version

The target version is 0.2.1-alpha.2, consistent with the plugin 0.2.0 peer declaration.

2. Obtain Installation Package

Download dsh-global-prompt-0.2.0.tgz from GitHub Releases (see v0.2.0 Release Page). You can also use the download URL of this preview package in the DSH community plugin installation interface.

The installation package includes a profile composition layer that automatically registers the global-prompt entry; no modification to dsh source code is required, nor is the legacy --patch global-prompt.patch.yml needed.

3. Install to web profile

Execute in the terminal (change the path to your local absolute path; add quotes if it contains spaces):

dsh plugin --profile web add /absolute/path/dsh-global-prompt-0.2.0.tgz

4. Restart and Use Settings

Restart dsh Web, open Settings → Global Prompt, turn on the toggle, input the fixed instructions, and wait for the save to complete.

Upgrading from 0.1.0

The old version used a separate settings.yaml namespace; the new version switches to official volatile Config and profile patches. When upgrading, please retain the old files, stop using the old startup override files, and then install the new bundle. For migration steps and tools that do not overwrite original files, see the Upgrade Guide in the repository and scripts/migrate-settings.mjs (pnpm run migrate).

Typical Usage

Below is a minimal flow that can be directly reproduced (consistent with the README):

  1. After installing and restarting the Web, enter Settings → Global Prompt.
  2. Turn on the enable toggle.
  3. Write the fixed instructions you wish to apply to every session into the text box (e.g., unified response language, code style, or prohibited context types).
  4. Wait for ConfigForms to save successfully; if there is a conflict or failure, retry as prompted, as the draft will be retained.
  5. Start a new session or continue an existing one under this web profile, and observe whether the assembly result includes the corresponding section (Note: user:global-prompt is only contributed when enabled and non-blank).

There is no need to repeatedly paste the same general requirements in every message; after modifying the text, the next assembly will read the new configuration without requiring a plugin restart.

Scenarios and Notes

Who is it for

  • Developers primarily working on DSH Web (--profile web) with a dsh version aligned to 0.2.1-alpha.2.
  • Those who need to maintain a segment of literally fixed global instructions across sessions within the same profile and are willing to manage configuration via the official settings page and cordis.patch.yml.

Please be aware before use

  • The plugin runs with the current dsh process privileges; before installation, you should review the GitHub Source Code, LICENSE, and NOTICE yourself. The implementation originates from Humengjiu’s original PR idea for the upstream harness; this community package is independently maintained.
  • The global text enters the model input and affects tokens and the KV-cache prefix; it is not suitable for writing excessively long or frequently changing large blocks of content. The current implementation queues each text change for saving individually and is not yet debounced.
  • Future dsh versions may change the plugin API; this package declares accurate version requirements in the README, generally requiring no additional compatibility exemption configuration.
  • If relying on the official behavior of “full system prompt overrides other sections,” you must understand that the global segment is still subject to this rule and cannot be assumed to override all sections.

Links and Sources

dsh-global-prompt converges “cross-session fixed instructions” into a single toggle and a segment of persistent text, hooking into official Web settings and profile patches; provided versions are aligned, it is suitable as a supplement to the web profile’s global prompt rather than a replacement for dsh’s built-in system and deployment semantics. Before installation, verify the dsh and preview package versions, and confirm enablement in the plugin sidebar to begin editing.

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

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

Xiaoye