Introduction¶
DeepSeek Harness (DSH) uses @deepseek-ai/dsh-system-prompt to split the system prompt into multiple sections sorted by order, distinguishing identity, deployment persona, tool/formatting guidance, environment facts, and so on. The default ordering is determined by DSH. If a developer wants to uniformly inject “operator behavior guidelines” into a profile, they must manually add the corresponding section to the system prompt of every individual session — which is repetitive and prone to omissions or ordering mistakes.
DSH OperatorSpec solves exactly this problem: it turns a set of “operator behavior guidelines” into a single system prompt section. While the plugin is enabled, every session and every model request in that profile carries this guideline; once disabled, the section disappears along with the plugin uninstall, and behavior reverts to DSH defaults.
What It Is¶
DSH OperatorSpec is a Host-side plugin (bundle) with no frontend code. It registers a single external:operator-spec section, with a default order: 9000, positioned between the default tone section and the runtime environment information. When enabled, DSH inserts this body text during system prompt assembly. The body text is read verbatim from the bundled spec.md by default — no variable interpolation is performed. It does not modify DSH’s internal logic; it only changes the instructions the model receives.
The plugin is maintained by Q2Ball (nailiang002-wq) and is categorized under Workflow. Current version is 1.0.0, licensed under MIT.
Core Features¶
- Injects a section named
external:operator-specinto the system prompt. - Default
order: 9000, positioned after the default tone section and before the runtime environment information. - Body text defaults to the bundled
spec.md; it is injected verbatim upon enablement with no variable interpolation. - The plugin entry acts as a profile-level toggle, taking effect for all sessions, including already-open ones (the next message will carry the new prompt).
Installation & Activation¶
The plugin must be manually placed in DSH’s plugin directory, then added and enabled via the Web GUI.
- Place the repository into DSH’s plugin directory, e.g.,
~/dsh-plugins/OperatorSpec. - Open the Plugins panel in the Web GUI → Add Plugin → select that directory.
- Enable “Operator Behavior Guidelines” in the plugin list.
Configuration¶
Modify the configuration directly in the plugin panel — no code changes required. The default configuration is as follows:
- insert:
- id: operator-spec
name: '@local/operator-spec'
config:
text: ''
order: 9000
complete: false
| Field | Default | Description |
|---|---|---|
text |
empty | If non-empty, overrides the body text in spec.md |
order |
9000 |
Sort position of the section within the system prompt; any finite number |
complete |
false | When true, this section replaces the entire system prompt; having other complete sections will cause an assembly error |
After modifying spec.md, you need to disable and re-enable the plugin (or restart DSH) for the section to be re-read.
Swap in Your Own Guidelines¶
The spec.md in the repository is the author’s own guideline, used only as a default. Simply replace it with your own document — it is just a static prompt; the section name, ordering, and injection method remain unchanged.
Boundaries & Trade-offs¶
- What it changes is the instructions the model receives (behavior guidelines, tone, refusal policy, and this layer).
- It does not bypass provider-side content moderation, nor does it alter the model’s own training behavior. Outputs blocked upstream are beyond the plugin’s reach.
- The body text is re-sent with every request:
spec.mdis approximately 20 KB, representing a fixed overhead of a few kilotokens per request. - Modifying
orderor the body text will invalidate the prompt prefix cache once.
Use Cases & Cautions¶
- Suited for developers who want to uniformly inject “operator behavior guidelines” or “persona specifications” into a profile.
- The plugin runs with the current DSH process permissions; review the source code and license before installation.
- Do not expect it to bypass content moderation or change the model’s own training behavior.
In Short¶
DSH OperatorSpec turns operator guidelines into a reusable, orderable system prompt section, eliminating the need for manual maintenance in every session. The plugin entry is a profile-level toggle with immediate enable/disable effects. See the catalog page and GitHub repository below for more details and source code.
- Catalog page: https://www.skillhub.cn/plugins/nailiang002-wq/dsh-operator-spec
- GitHub: https://github.com/nailiang002-wq/dsh-operator-spec