DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
G

dsh-global-prompt-and-compress

Global Prompt And Compress

DSH 设置插件:管理全局与各工作区 AGENTS.md、身份/人设注入、结果通知。Global and per-workspace AGENTS.md editor, identity/persona injection, and result notifications for DeepSeek Harness. 附带:会话压缩按钮等基础小工具(收纳区)。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:ptrel1/dsh-global-prompt-and-compress#b24e2ec4ad5c1553f0faa58aba86f7bb9384f95a
READMECompatibilityVersions

Compatibility and provenance

Global Prompt And Compress is published as dsh-global-prompt-and-compress and currently resolves to version 0.2.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/28/2026

Versions

0.2.2stable
10/28/2026

Related plugins

Loading related plugins…

Latest
0.2.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/28/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

🧭 dsh-global-prompt

给 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


附带小工具

核心提示词注入之外,本插件顺带收纳常用的会话级小优化(依附本插件部署,不单独成包):

  • 会话压缩按钮:输入区右侧一键触发内置 /compact 压缩历史;提交中/压缩中自动禁用,成功变绿、失败变红(tooltip 提示)。
    • 真实失败原因只写会话日志 compaction/end 事件(如 provider 401 余额不足),UI 不回显。

收纳标准

  • 会话级、client 逻辑 <100 行、无需独立配置面板
  • 有 host 服务或独立配置的功能请独立成插件
  • 提示词主功能改动优先级永远高于附带工具