插件目录 / Developer / dsh-inject-system-prompt
dsh-inject-system-prompt
已验证 · 实测可装 lovstudio
功能简介
Inject an extra system-prompt section into a DeepSeek Harness agent
可用 — 实测通过,早期项目
Inject an extra system-prompt section into a DeepSeek Harness agent 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
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
| 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
systemPromptservice, 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
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-inject-system-prompt」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:lovstudio/dsh-inject-system-prompt Headless(CLI)profile:
dsh plugin --profile headless add github:lovstudio/dsh-inject-system-prompt 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。