Settings panel for global and per-workspace AGENTS.md, with identity and persona injection, runtime-context toggle, and result notifications.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-global-prompt
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:sryimnoob123/dsh-global-prompt
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
给 DeepSeek Harness 的提示词管理装上图形界面:全局
AGENTS.md、各工作区AGENTS.md可视化编辑,改完即生效,不用再手动翻文件。
这是什么
DSH 的指令注入机制(dsh-agent-instructions)是读文件的:$DSH_HOME/AGENTS.md 就是全局提示词,写进去就生效。但没有面板,你得自己去翻安装目录改文件。
本插件在设置面板里开了三个 tab,把这件事变成点一点:
| Tab | 干什么 |
|---|---|
| 全局 | 编辑 $DSH_HOME/AGENTS.md,下一条消息就生效,不用重启、不用开新会话 |
| 项目 | 按工作区管理各自的 AGENTS.md,只对那个工作区生效 |
| 通知 | 任务完成/失败弹系统通知,点一下回到对应会话 |
特性
- 双向同步:插件外直接改
AGENTS.md,面板能读到(150ms 内自动回写设置);面板保存,文件被重写。两个方向都有内容守卫,不会互刷。 - 不丢数据:你手动维护过
AGENTS.md的话,插件启动时以磁盘为准回填设置,绝不会被默认空值覆盖;关闭「启用」也不会清空你的文件。 - 身份注入:可选在每次对话开头加一句「我是 DeepSeek Harness」。
- 人设注入:写一段人设,一直拼在对话里。支持
{{model}}、{{cwd}}占位符。 - 运行时上下文开关:不需要时抑制 DSH 自带的会话信息快照。
- 结果通知:桌面壳用系统通知,纯 Web 用浏览器通知。
安装
独立安装
dsh plugin --profile <你的profile> add dsh-global-prompt
随壳内置
dsh-desktop 安装器已捆绑本插件(默认启用,可在插件管理里关掉)。
原理:本插件的 bundle patch 会重新启用
dsh-agent-instructions(web-app bundle 默认禁用它),面板里写的 AGENTS.md 由官方机制注入——所见即所注入。
开发
纯 ESM,无构建步骤。结构:
index.js— 服务端:settings 注册、AGENTS.md 双向同步(目录监听 + 防抖)、两个 HTTP API、身份/人设注入、运行时上下文抑制client.js— 设置面板 UI(全局/项目/通知三 tab)lib/core.js— 校验与工具函数(persona ≤ 20000 字符、指令 ≤ 1MiB)test/global-prompt-sync.mjs— 双向同步防环自测(mock dsh-settings 语义)
跑测试:
node test/global-prompt-sync.mjs
兼容性
- 官方 dsh
>= 0.1.1-rc.1(npm latest 为 0.1.1-rc.2) - Node >= 20
- DSH Web 与 dsh-desktop Electron 壳均可
License
MIT
Links
More in this category
YuJunZhiXue/dsh-purge★ 7142
Adds a Settings card to edit prompt-inject.md, manage AGENTS.md or CLAUDE.md rule sets, check for plugin updates, and apply or restore reversible local package updates.
techflag/workdsh#enterprise-connection★ 243
Enterprise login, colleague mentions, shared text and files, and authenticated business requests for WorkDSH Desktop 2.0.6-alpha.3+ with WorkDSH Admin; distributed as a release archive.
kingcharleslzy-ai/dsh-purge★ 192
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
FNOSP/fnos-dsh#dsh-codex-auth-plugin★ 42
ChatGPT account sign-in for DeepSeek Harness through a Codex browser OAuth flow with no API key and no workspace selection: subscribes the login to pi-ai's Codex provider, lets you set the global default Codex model and reasoning effort for new sessions, refreshes the model list from the signed-in account's own catalog endpoint, and shows the five-hour and weekly usage windows in the composer.
huaizhuanghub/dsh-persona-dafeiyu★ 39
Persona library for DeepSeek Harness: injects the selected persona into the system prompt, offering three built-ins plus import from a file or pasted text, applied either profile-wide or per session from a switcher above the composer.
xxww0098/dsh-plugin-oauth-subs★ 21
Connect ChatGPT Codex, xAI Grok, Zhipu GLM, AWS Kiro, Google Antigravity, and Cursor subscriptions to DeepSeek Harness through OAuth and a local proxy.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.