custom-first-control-prompt
Run the following command in DeepSeek Harness:
dsh plugin install WM-CODER/custom-first-control-prompt
Paste the following prompt into your AI chat to install this plugin:
To install this plugin in DeepSeek Harness, run `dsh plugin install WM-CODER/custom-first-control-prompt`; the full source repository is https://github.com/WM-CODER/custom-first-control-prompt.
About this plugin
In DeepSeek Harness, the system prompt a model sees on each request is usually built from a built-in persona and tool guidance. If you want to inject a fixed deployment-level instruction or reference examples before every ordinary conversation, directly rewriting the request path or session often pollutes logs, breaks prefix-cache reuse, and is hard to maintain. custom-first-control-prompt is designed for exactly this: it intercepts and prepends content on the llm/stream request path, with zero session-log writes, so the injected material exists only in the model-visible request and never appears in the chat transcript.
The plugin's core capability has two layers. The first is ordered system-prompt sections: each section registers through the standard system-prompt assembly waterfall, supports variable interpolation and scope shadowing, and can be positioned by order (for example, ahead of the persona) to create a deployment-level prompt prefix. The second is reference conversation history: configured user/assistant texts are built into real alternating message objects, deep-frozen and prepended to every ordinary request. Because the content renders byte-identically, prefix caches stay reusable, reducing token costs; meanwhile session history remains clean, so compaction, forks, and other mechanisms are unaffected.
It suits teams or advanced users who need fine-grained deployment-level prompt control—especially those wanting to inject few-shot examples, fixed behavior rules, or a consistent override of the default persona—while also caring about KV-cache stability and log cleanliness. The panel provides visual config editing and LLM-listener debugging without hand-written patches, though config changes require a web restart before they apply to new requests.
Use Cases
- Inject deployment-level instructions or rules uniformly into every ordinary conversation
- Insert few-shot example exchanges without polluting session logs
- Maintain a stable KV-cache prefix to reduce token costs
Best For
- Teams needing fine-grained prompt control over model deployments
- Advanced users who value KV-cache stability and clean logs
- Context providers who want a consistent override of the default persona
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.