返回目錄

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

56

星數

1

Fork

JavaScript

語言

MIT

授權條款

2026-08-15

建立於

2026-08-21

最近推送

一個原生的 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 外掛,絕不濫發。