返回目录

custom-first-control-prompt

编辑精选维护状态: 活跃

wm-coder/custom-first-control-prompt

让 DeepSeek Harness 在对话开头优先注入自定义提示词,方便统一控制 agent 行为与回答风格。

前往 GitHub
$ dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt

57

星标

2

Fork

JavaScript

语言

MIT

许可证

2026-08-15

创建于

2026-09-01

最近推送

一个原生的 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?

安装步骤

  1. 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

  2. 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

  3. 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

  4. 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 适配与能力边界

DSH 适配原生运行时

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 logs
  • Prefix-cache reuse via byte-identical static content

    static prompt contentbyte-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.
2026-08-152026-08-21v0.2.3

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` 卸载。

08数据与来源

  • 作者声明github.comd2c9a0535c45…

    dsh plugin --profile web add github:WM-CODER/custom-first-control-prompt

  • 作者声明github.comd2c9a0535c45…

    Deployment-configured prompt prefix. Ordered system-prompt sections render ahead of the deployment persona

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-01。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。