custom-first-control-prompt: A Custom Prompt Prefix Plugin for DeepSeek Harness

wm-coder/custom-first-control-prompt

Sessions & MessagesVerified
Listed on 2026-08-15
Page last updated 2026-09-18

A DSH plugin that injects custom system prompts and reference conversations ahead of every request, enabling deployment-level prompt prefix control without session-log writes.

custom-first-control-prompt is a session plugin for DeepSeek Harness (DSH) that lets you inject custom system-prompt sections and reference conversation history ahead of every ordinary conversation request via configuration, without touching core code. It solves the inflexibility of default prompts, supporting ordered section rendering, reference injection, zero log writes, and prefix-cache reuse. After enabling, define sections and history in the plugin config and restart the web app; it's ideal for DSH users who need fine-grained control over prompt content.

How to Install

install
npmdsh plugin --profile web add @wm-coders/dsh-custom-first-control-prompt
Category
Sessions & Messages
Platform
DSH Plugin
Author
wm-coder
Distribution
Plugin

custom-first-control-prompt Key Features

Inject custom system promptsInject reference historyZero log writesSubagent exclusion
Listed on dsh-plugin.org

custom-first-control-prompt Repo Summary

What Does It Do?

Custom First Control Prompt is a DSH plugin for DeepSeek Harness that injects custom system-prompt sections and reference conversation history ahead of every ordinary conversation request. It solves the problem of inflexible default prompts, letting you control the prefix content through configuration without modifying core code. Core capabilities include ordered system-prompt section rendering, reference conversation injection, and prefix-cache reuse optimization.

Core Features

  • Ordered system-prompt sections: configure multiple system-prompt fragments via sections with render order, placing them ahead of the deployment persona.
  • Reference conversation injection: configure user/assistant reference exchanges via history, injected as real alternating messages on every ordinary request.
  • Zero log writes: injected messages live only on the request path, keeping session logs clean.
  • Prefix-cache reuse: static content renders byte-identically on every request, preserving prefix-cache reuse for performance.
  • Subagent exclusion: use includeSubagents to skip sessions originating from subagents.

How to Use This Plugin?

After enabling it in DSH, define sections and history in the plugin configuration. sections sets system-prompt fragments, history sets reference exchanges; after configuration, restart the web app and the plugin will inject them automatically on every ordinary conversation request. Invalid configuration skips the offending entry with a warning.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: wm-coder/custom-first-control-prompt. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub

DSH Plugin FAQ