WM-CODER/custom-first-control-prompt10

@wm-coders/dsh-custom-first-control-prompt

DeepSeek Harness 的部署配置 Prompt 前缀插件:在角色设定前注入有序的系统 Prompt 片段,并将参考对话注入到每次普通会话请求中

AI 分析

在会话请求中拦截并注入自定义系统 Prompt 片段和历史对话。适合需要统一定制全局系统规则、注入参考范例且不写入会话日志的部署场景。

套件
@wm-coders/dsh-custom-first-control-prompt
版本
0.2.1
授權
MIT
最近更新
2026年8月20日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt

Configuration

- id: custom-first-control-prompt
  name: '@wm-coders/dsh-custom-first-control-prompt'
  config:
    sections:
      - name: house-rules
        order: -50
        text: |
          …stable system text…
    history:
      - user: …
        assistant: …
    includeSubagents: false
KeyDefaultMeaning
sectionsOrdered system-prompt fragments; absent or empty registers nothing.
sections[].namerequiredEntry name; the registry sees custom-first-control-prompt:.
sections[].orderrequiredRender position among all sections. Factory convention: harness identity −100, persona 0, tool guidance 100–199; values below 0 prepend ahead of the persona.
sections[].enabledtruefalse keeps the entry in configuration without registering it.
sections[].textrequiredStatic section text; keep it free of volatile values — any change breaks prefix reuse from the first changed token.
historyOrdered user/assistant reference exchanges injected ahead of every ordinary conversation request; both texts must be non-empty and free of reserved tags (case-insensitive: , , ``, <custom-history and all closing tags). Absent or empty injects nothing.
includeSubagentsfalsefalse skips sessions whose header meta marks subagent origin.

Invalid configuration fails plugin load naming the offending entry: empty text, duplicate section names, or a non-finite order. Per-entry section problems (blank/duplicate name, bad order, empty text) and per-pair history problems (empty text, embedded reserved tags) degrade to skipping that entry with a warning instead of failing the plugin tree.