dsh-prompt-rewrite

uitested: passnpmMIT

Adds an Optimize prompt control next to the composer send button that rewrites the draft into a structured prompt (plain, sections, or role-task-goal) streamed from the session model, with Use, Undo, Copy and Close.

下载量 / Downloads
1,316
依赖体积 / node_modules
1.62 MB
测试时间 / Tested
2026-11-06
DSH 版本 / Version
0.2.2-rc.1

Install

dsh plugin --profile web add dsh-prompt-rewrite

Sandbox test results

StageResult
1 install✓
2 list✓
3 mount✓
4 boot—

Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).

README

dsh-prompt-rewrite · 输入框提示词改写

[English](./README.md) · [中文](./README.zh-CN.md)

发送前把草稿一键改写为结构化提示词:流式显示改写结果,可预览、可撤销,使用当前会话自己的模型。

快速开始

dsh plugin --profile web add dsh-prompt-rewrite

重启 Harness(或刷新 Web 界面)。输入框发送按钮旁会出现 ✨ Optimize prompt 控件。

功能

  • 一键改写:把口语化草稿变成清晰的纯文本、分段、或「角色·任务·目标」结构。
  • 流式预览:改写结果实时出现在输入框上方的面板里。
  • Use / Undo / Copy / Close:点 Use 才会替换草稿,其余动作都不改内容。
  • 用当前会话模型:与下一轮对话同一条路由,无需另配 API key。
  • 不写入会话日志:改写过程不污染会话记录。
  • 复用 oss-prompt-optimizer 作为改写引擎。

命名说明

本插件以 dsh-prompt-rewrite 发布:npm 上 dsh-prompt-optimizer 这个名字属于另一位作者,两者无关。旧名 @stijnus/dsh-prompt-optimizer 已标记弃用并指向本包。

要求

DeepSeek Harness >=0.2.1-rc.3 <0.3.0-0,Web profile(桌面版或 Web 界面)

相关链接

<sub>同系列插件:情绪板 · 输入补全 · 移动到工作区 · 工作区状态 · 提示词改写</sub>

<sub>⭐ 如果它帮你省了一步,点个 star 能让更多 DSH 用户发现它。</sub>

Rendered from the README published on npm. Formatted only, not edited.

Versions

Published on npm::5,最后更新 2026-10-28

Links

GitHub · Homepage · npm

Same category