Skip to main content
L

dsh-inject-system-prompt

lovstudio/dsh-inject-system-prompt

Inject an extra system-prompt section into a DeepSeek Harness agent, shipped as a configurable bundle.

Install

dsh plugin --profile web add github:lovstudio/dsh-inject-system-prompt

README

dsh-inject-system-prompt

Inject an extra system-prompt section into a DeepSeek Harness agent, shipped as a configurable bundle.

The plugin registers one section in the harness's system-prompt assembly registry via ctx.systemPrompt.section(). Empty text drops the section, so the bundle is inert until you configure it.

Install

web is the profile that dsh web boots by default, so installing into it makes the plugin active the next time you start the Web UI.

# from git (append #<sha> to pin a commit for reproducibility)
dsh plugin --profile web add github:lovstudio/dsh-inject-system-prompt

# or from a local checkout / tarball
dsh plugin --profile web add ./dsh-inject-system-prompt

Then enable the prompt by overriding the row in $DSH_HOME/profiles/web/cordis.patch.yml (see the official publish guide for layer precedence):

- id: inject-system-prompt
  name: '@lovstudio/dsh-inject-system-prompt'
  config:
    text: |
      You are concise and always answer in Simplified Chinese.

Start the Web UI:

dsh web   # alias of dsh --profile web

Config

KeyDefaultMeaning
text''The section text to inject. Empty ⇒ no section.
nameinjected:promptSection name (must be unique within a scope layer).
order50Sort order. Bands: 0 = persona, 100–199 = tool guidance.
completefalseWhen true, this section becomes the complete system prompt.

Notes

  • Requires the systemPrompt service, provided by @deepseek-ai/dsh-base (the first bundle of every profile). No runtime dependencies.
  • Distributed as a bundle (dsh.bundle.patchcordis.patch.yml).

License

MIT

Related plugins