一个原生的 DeepSeek Harness 插件,在每次 Web 对话前追加部署级系统提示前缀与固定参考问答,且不写入会话日志。
DSH 适配
原生运行时
作者声明
安全审计
未审计
最后核验
2026-09-01
许可证
MIT
01它能帮你完成什么?
Insert a deployment-configured system-prompt prefix and fixed reference exchanges into every DeepSeek Harness conversation
Ordered system-prompt sections rendered ahead of the deployment persona, plus reference user/assistant messages injected as real alternating messages on every ordinary request
Teams running DeepSeek Harness (dsh) web deployments who need a stable, cache-friendly system-prompt prefix and fixed few-shot examples
02如何接入 DeepSeek Harness?
安装步骤
- 01
Add from GitHub (recommended — built artifacts are committed, so no build approval is needed): `dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt`
$ dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt
- 02
Add from npm: `dsh plugin --profile web add @wm-coders/dsh-custom-first-control-prompt`
$ dsh plugin --profile web add @wm-coders/dsh-custom-first-control-prompt
- 03
Add from a local directory during development: `dsh plugin --profile web add ./path/to/custom-first-control-prompt`
$ dsh plugin --profile web add ./path/to/custom-first-control-prompt
- 04
After installation, restart the web app (`dsh --profile web` or run `restart-web.ps1` / `restart-web.sh`)
$ dsh --profile web
验证接入成功
作者未说明
回滚
- Uninstall the plugin: `dsh plugin --profile web remove @wm-coders/dsh-custom-first-control-prompt`
03DSH 适配与能力边界
Native DSH plugin installed via `dsh plugin add` — injects a deployment-configured system-prompt prefix
Ordered system-prompt sections
deployment-configured text fragments (sections[].text)→sections rendered ahead of the deployment persona on every request
Reference user/assistant exchanges injected per request
config.history entries (user / assistant pairs)→real alternating messages prepended on the request path for every ordinary conversation request
intercepts `llm/stream` and injects messages on the request path; writes nothing to session logsPrefix-cache reuse via byte-identical static content
static prompt content→byte-identical rendering on every request, preserving prefix-cache reuse
04适合谁?何时不该用?
适合
- Teams running DeepSeek Harness (dsh) web deployments who need a stable, cache-friendly system-prompt prefix and fixed few-shot examples
05兼容性、维护与安全提示
- By default the prefix and reference exchanges are not applied to subagents (`includeSubagents: false`); enable it explicitly in config if subagents should receive them.
- If `sections` is absent or empty, the plugin registers nothing — no system-prompt prefix is injected.
- Reference exchanges are injected by intercepting the `llm/stream` request path and are not written to session logs; they appear only on the request, not in stored history.
MIT · latest release v0.2.3 (2026-08-21), last push 2026-08-21
06常见问题
如何在 DeepSeek Harness 中安装 custom-first-control-prompt?
运行 `dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt`(GitHub,推荐)、`dsh plugin --profile web add @wm-coders/dsh-custom-first-control-prompt`(npm),或添加本地目录。安装后用 `dsh --profile web` 或 `restart-web.ps1` / `restart-web.sh` 重启 Web 应用。
这个插件实际会向对话注入什么?
它把有序的系统提示段落排布在部署 persona 之前,并将已配置的参考 user/assistant 问答以真实的交替消息形式注入到每一次普通请求中,通过 `llm/stream` 拦截实现,且不写入会话日志。
它会保留提示缓存吗?
会——静态内容在每次请求中逐字节一致地渲染,因此前缀缓存可以在请求之间复用。
它会影响子代理(subagent)吗?
默认不会。`includeSubagents` 配置项默认为 false,因此子代理不会收到前缀与参考问答,除非你显式开启。
如何卸载?
运行 `dsh plugin --profile web remove @wm-coders/dsh-custom-first-control-prompt` 卸载。
07相关的 DSH 工作流
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先装运行时注入器,再加载任务感知的推理模式路由预设(已实测 P1-P23)。
brooks-lint
作者 hyhmrright
基于 12 本经典工程书籍的 AI 代码评审工具,提供腐化风险诊断、书籍引用、严重度标签及 6 种分析模式。
oh-dsh
作者 hust-open-atom-club
一套 DSH runtime,Desktop、Web 与 TUI 三种开发体验。
perfect-web-clone
作者 ericshang98
网页像素级克隆工具:粘贴 URL,即可得到一份精确测量还原的 Vite + React 复刻页面。
08数据与来源
dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt
Deployment-configured prompt prefix. Ordered system-prompt sections render ahead of the deployment persona
页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-01。发现错误?提交更正。
最佳 DeepSeek Harness 插件
从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。
