跳到主要内容

dsh-inject-system-prompt

已验证

@lovstudio/dsh-inject-system-prompt · v0.1.1 · MIT

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

安装

dsh plugin add @lovstudio/dsh-inject-system-prompt

用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。

源码

标签

说明文档

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

Key Default Meaning
text '' The section text to inject. Empty ⇒ no section.
name injected:prompt Section name (must be unique within a scope layer).
order 50 Sort order. Bands: 0 = persona, 100–199 = tool guidance.
complete false When 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.patch → cordis.patch.yml).

License

MIT