dsh-inject-system-prompt
Manifest validInject an extra system-prompt section into a DeepSeek Harness agent
dsh-inject-system-prompt
Inject an extra system-prompt section into a DeepSeek Harness agent, shipped as a configurable bundle.
The plugin registers one section in the harness's system-prompt assembly registry via ctx.systemPrompt.section(). Empty text drops the section, so the bundle is inert until you configure it.
Install
Prerequisites: Node.js 22.19+ or 24+, pnpm 11 (corepack enable or npm i -g pnpm) — dsh plugin forwards to pnpm inside the profile directory.
From a DeepSeek Harness source checkout (recommended — you get the harness source too):
git clone --depth 1 --branch dsh-v0.1.2-rc.1 https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness && pnpm install && pnpm run build
pnpm dsh plugin --profile web add -w github:lovstudio/dsh-inject-system-prompt#v0.1.2
pnpm dsh web
Without a checkout (npx; compiled harness only):
npx @deepseek-ai/dsh plugin --profile web add -w github:lovstudio/dsh-inject-system-prompt#v0.1.2
npx @deepseek-ai/dsh web
web is the profile dsh web boots. The tag pins a commit whose lib/ is prebuilt and committed, so nothing is compiled on your machine. Verified on 2026-09-04 against dsh-v0.1.2-rc.1 in both forms. Remove with dsh plugin --profile web remove @lovstudio/dsh-inject-system-prompt.
Then enable the prompt by overriding the row in $DSH_HOME/profiles/web/cordis.patch.yml (see the official publish guide for layer precedence):
- id: inject-system-prompt
name: '@lovstudio/dsh-inject-system-prompt'
config:
text: |
You are concise and always answer in Simplified Chinese.
Start the Web UI:
dsh web # alias of dsh --profile web
Local development
index.js is both the source and the shipped artifact, so this package needs
no transpilation step. Install it into the isolated development profile with a
link:
pnpm install
DSH_HOME=/Users/mark/.dsh-lov-dev pnpm --dir /path/to/deepseek-harness dsh plugin --profile web add -w link:/path/to/dsh-inject-system-prompt
Editing the linked checkout leaves the Harness repository and the default
~/.dsh profile untouched.
Config
| Key | Default | Meaning |
|---|---|---|
text | '' | The section text to inject. Empty ⇒ no section. |
name | injected:prompt | Section name (must be unique within a scope layer). |
order | 50 | Sort order. Bands: 0 = persona, 100–199 = tool guidance. |
complete | false | When true, this section becomes the complete system prompt. |
Notes
- Requires the
systemPromptservice, provided by@deepseek-ai/dsh-base(the first bundle of every profile). No runtime dependencies. - Distributed as a bundle (
dsh.bundle.patch→cordis.patch.yml).
License
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 18.3k
CC0-1.0
Python
Oct 10, 2026
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.2k
CC0-1.0
Python
Oct 10, 2026
by pax-beehive
Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub
★ 450
MIT
TypeScript
Oct 6, 2026
by xiajiajun516
DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.
★ 176
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add dsh-config-managerby yjh051108
推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。
★ 164
TypeScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby jigjoy-ai
A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.
★ 124
MIT
TypeScript
Oct 2, 2026