dsh-inject-system-prompt
其他 活跃维护

dsh-inject-system-prompt

lovstudio/dsh-inject-system-prompt

轻量级提示注入工具,无需改动原有代理配置,即可向AI代理的工作流中追加自定义系统提示片段,支持按需灵活调整提示内容,适配各类提示工程调试与测试需求

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lovstudio/dsh-inject-system-prompt
git clone https://github.com/lovstudio/dsh-inject-system-prompt.git
git clone git@github.com:lovstudio/dsh-inject-system-prompt.git
README.md main

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