Chuyển đến nội dung chính

dsh-inject-system-prompt

Đã xác minh

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

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

Cài đặt

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

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Thẻ

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

# from git (pins latest main)
dsh plugin --profile demo add github:lovstudio/dsh-inject-system-prompt

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

Then enable the prompt by overriding the row in your profile's 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.

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.patchcordis.patch.yml).

License

MIT