DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-prompt-optimizer

d

dsh-prompt-optimizer

Identified

Rewrites the composer draft into a precise prompt with a configurable model and a fully editable rewriting instruction; reads the content behind @file, @folder and @session references for context, kee

提示词优化 · Prompt Optimizer

Prompt Optimizer

简体中文 · English

license DSH 0.2.1-rc.3 topic dsh-plugin

在 DeepSeek Harness 的输入框里,把你随口说的大白话改写成清晰、具体、可执行的提示词。

点一下按钮,草稿被替换成改写结果;不会自动发送,你检查完再自己发。

它做什么

  • 一键改写 —— 输入框工具栏右侧(模型选择器左边)一个按钮,对当前草稿做改写。
  • 模型你说了算 —— 从 DSH 中已配置的模型里挑,按厂商分组;也可以留空跟随当前会话。
  • 改写规则可整段替换 —— 发给模型的系统提示词就是一段可编辑文本,你可以完全换成自己的风格。
  • 会读你 @ 的东西 —— 草稿里的 @文件、@文件夹、@会话 会被读取内容交给改写器,让它知道实际涉及哪些代码。读取范围限于会话工作目录,并且有大小上限。

安装

dsh plugin add @huanhuan123/dsh-prompt-optimizer

使用

写好草稿 → 点工具栏里的魔棒按钮 → 一两秒后输入框内容被替换 → 检查后自己按发送。

按钮在草稿为空、或输入框处于非普通状态(例如正在打斜杠命令)时不可点。改写失败会在按钮旁显示原因,原草稿一个字都不会变。

设置

入口:设置 → 提示词优化,或 设置 → 插件 → 本插件所在行 → 配置。

设置项默认说明
启用优化按钮开关闭后按钮从输入框隐藏
优化用的模型跟随当前会话只能选 DSH 中已配置的模型
改写指令(系统提示词)内置模板整段可改
读取 @ 引用指向的内容开关闭则只依据你自己的文字改写
最大输出 token2000改写结果的长度上限
超时(毫秒)30000
草稿字数上限4000超出时按钮不可点
单文件读取上限(字符)80000 表示不读取文件内容
引用内容总量上限(字符)32000所有引用合计
按钮位置右工具栏右工具栏 / 左工具栏
同位置内排序40越小越靠左,用来避开同位置的其它插件
图标颜色跟随主题7 个预设色,均取自宿主主题变量
图标大小中小 / 中 / 大

已知边界

  • 只改写草稿:不自动发送,也不会替你做别的决定。
  • 读取引用内容时不会走出当前会话的工作目录。
  • 改写是一次独立的模型调用,不写入对话记录;token 消耗按你选中的模型计。
  • 改位置即时生效,不需要重载插件;颜色与大小也一样。

License

MIT

Comments

Loading…

Similar plugins

dsh-prompt-optimizer

One-button prompt optimizer: rewrites the composer draft via a configurable strategy, with an editable template, few-shot examples, pinned models and reasoning effort.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add @panando/dsh-prompt-optimizer

Optimize Prompt button under the composer: one click rewrites your draft into a clearer, more executable prompt, with a before-and-after dialog and one-click replacement.

UI & ExperienceManifest valid

★ 0

↓ 185/wk

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

by XXXXXQ-0206

Adds a composer button that optimizes the current prompt or designs the next one from the current session and project context.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Sep 13, 2026

dsh plugin --profile web add dsh-prompt-for-me

by xindady

Adds a prompt enhancement button to the composer toolbar that rewrites the draft through a model call, keeps @file references verbatim, and offers one-click undo.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-prompt-enhancer

A DSH composer control that reforges a rough draft into a precise prompt, with one-click revert.

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-prompt-reforge

by winditer

Polishes the draft in the composer into a clearer, better-structured prompt from the ✨ button or Alt+O; streams the result live over SSE with reasoning shown first, and follows the session's default m

UI & ExperienceManifest valid

★ 4

↓ 356/wk

MIT

TypeScript

Sep 7, 2026

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