rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
SOCOOL666/dsh-global-prompt
Global prompt (全局提示词) plugin for the agent runtime (DSH). Set it once in Settings → General; injected via ctx.systemPrompt.section() into every new conversation and subagent. Live save, no restart, no context bloat.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SOCOOL666/dsh-global-prompt
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A global prompt plugin for DeepSeek Harness (DSH). Write a prompt once in Settings; every new conversation and subagent gets it in its System Prompt automatically.
This is a DeepSeek Harness plugin. It adds a Global prompt section with a textarea and a Save button under Settings → General. Whatever you save is injected as a System Prompt section into every new conversation and subagent you create afterwards.
If you have instructions that should apply to every chat — tone, language, output format, a role — you no longer need to paste them each time or bury them in one conversation. Set them once and they apply globally.
ctx.systemPrompt.section(), never appended to conversation history; your old turns do not repeat it. An empty prompt costs no context at all.git clone https://github.com/SOCOOL666/dsh-global-prompt.git
Then pick the cloned dsh-global-prompt directory in the Plugin Manager.
npm install -g dsh-global-prompt
# or install a packed tarball
npm install -g ./dsh-global-prompt-1.0.0.tgz
Then enable the plugin in the Plugin Manager.
Note: a local-directory install is a linked install. The plugin resolves
schemasteryfrom DSH's own profile directory, which is a built-in DSH dependency — you do not need to install anything extra.
Click Settings in the lower-left corner and open General.
Find the Global prompt row.
Type the prompt you want injected, for example:
Always reply in English. Be concise and structured, and list the key reasons at the end.
Click Save. Seeing Saved means it was written successfully.
From then on, every new conversation and subagent includes this text in its System Prompt.
| State | Meaning |
|---|---|
| Unsaved changes | Text edited but not saved yet |
| Saving… | Writing the configuration |
| Saved | Saved; effective from the next request |
| Save failed, retry | Write failed (for example, the profile config is not writable) |
Clear the textarea and click Save. While it is empty the plugin stays registered but injects nothing, costing no context.
systemPrompt section named global-prompt:user. Its text is a function: every time DSH assembles a System Prompt (including for subagents), it reads the latest saved text.settings.update() to write this plugin's slice of the profile config. The fields are declared .volatile(), so a save updates the value in place without remounting the plugin./global-prompt/api, which only accepts loopback addresses.>=0.2.0-rc.1 (developed and verified on 0.2.2-rc.3)systemPrompt (required), webServer, settings / configEditor (optional injection)>=18cordis.patch.yml is writable; managed profiles may forbid config edits.npm run check # syntax check
npm run pack:check # preview the packed file list
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、llm-agents、llm-tools、deepseek-harness。