DeepSeek Harness plugin

zzy-dsh-prompt-optimizer

Adds prompt optimization, cancellation, and undo controls to the DeepSeek Harness composer.

Jump to install

Source facts

Repository
zhengzeyong9527-droid/zzy-dsh-prompt-optimizer
Latest update
Aug 19, 2026
Category
UI Enhancements
GitHub stars
1

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/zhengzeyong9527-droid/zzy-dsh-prompt-optimizer
GitHub: https://github.com/zhengzeyong9527-droid/zzy-dsh-prompt-optimizer
Plugin: zzy-dsh-prompt-optimizer
Author: zhengzeyong9527-droid
Install command: dsh plugin --profile web add github:zhengzeyong9527-droid/zzy-dsh-prompt-optimizer

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

zzy-dsh-prompt-optimizer

[中文](README.md) | [English](README.en.md)

![Release](https://github.com/zhengzeyong9527-droid/zzy-dsh-prompt-optimizer/releases/latest) ![License](LICENSE) ![DSH Plugin List](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin#ui-enhancements)

DeepSeek Harness(DSH)的提示词优化插件。插件在对话输入框增加“提示词优化”操作:优化完成后直接将结果填入输入框,并允许你随时撤回到原始提示词。

功能

  • 三种明确的优化模式:保真优化、开发化表达、规格扩展。
  • 优化中可取消,并显示加载状态。
  • 优化结果直接填入对话框,可一键撤回原始提示词。
  • 可选的会话内短期记忆:最多保留最近三轮已应用的优化结果。
  • 可选的当前会话上下文,并可设置字符预算。
  • 可选的工作区 Markdown 文档上下文,仅限当前会话的工作区根目录。
  • 可配置主模型、回退模型、超时和最大输出 token。
  • 不存储 API Key。

界面

输入框入口

<img src="assets/screenshots/composer-action.png" alt="提示词优化操作入口" width="520">

高级设置

高级设置按优化策略、会话上下文、工作区文档上下文和模型限制分段展示,避免长说明和输入项交错。

<img src="assets/screenshots/advanced-settings.png" alt="高级设置" width="520">

模型与执行限制

<img src="assets/screenshots/model-limits.png" alt="模型与执行限制" width="520">

优化模式

  • 保真优化:提升表达清晰度,但不虚构需求、事实、架构或范围。
  • 开发化表达:将用户已经提供的开发信息整理成更适合实现的表述,不替你选择技术栈或设计方案。
  • 规格扩展:允许补充必要默认项,但必须在 ## Default assumptions 下明确标示,供你审阅。

隐私与上下文

当前草稿会发送给你选择的 DSH 模型路由。所有额外上下文默认关闭。

启用会话上下文后,插件只读取当前会话 Surface 中的 user/messageassistant/message 文本。启用工作区上下文后,插件最多读取当前会话工作区根目录内三个相关 Markdown 文件。两个来源都各自受字符预算限制;服务不可用或读取失败时会自动降级为无该来源上下文。插件不会持久化完整草稿、会话历史或文档内容。

安装

将已发布的 npm 包安装到 Web profile:

dsh plugin --profile web add zzy-dsh-prompt-optimizer

重启现有 DSH Web 进程并刷新当前 URL。

许可证

MIT