dsh-prompt-refine
A ✨ button left of the send button: reads the draft and recent turns, asks the configured model for three suggestions each pairing an issue with a patch, lets you tick them individually with a live preview of the merged prompt, and writes the result back to the composer without sending.
怎么安装
dsh plugin add dsh-prompt-refine 简介
dsh-prompt-refine DSH 提示词优化插件 —— 在发送前点一下,让模型结合上下文告诉你这条 prompt 缺什么。 它做什么 在输入框发送按钮**左侧**加一个 ✨ 按钮。点击后: 1. 读当前草稿 + 最近几条对话历史 2. 调你已配置好的模型(自动读 ~/.dsh/settings.yaml 的 agent-default-model) 3. 弹窗列出 **3 条「问题 + 补丁」** 形式的建议 4. 勾选想要的 → 实时预览合并后的 prompt 5. 点「采纳 N 条并填入」→ 新 prompt 写回输入框 **不抢你的发送权**:填好后你自己按发送。Esc / 点遮罩 / 「跳过」都能随时退出。 为什么是「补丁」而不是「重写」 建议保留你原话,只补缺口: 原文 写个排序 scope 未说明排序对象 → 对一组整数数组进行升序排序。 format 未指定语言签名 → 请用 Python 实现,函数签名 sort_list(nums)。 constraint 缺边界约束 → 要求 O(n log n),处理空数组与重复元素。 三条可以同时采纳,不用三选一。 安装 方式一:npm 安装(推荐) bash cd ~/.dsh/profiles/web # 换成你要装进去的 profile pnpm add dsh-prompt-refine 包内自带 dsh.…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 0
- 月下载
- –
- 最近更新
- 2026-09-11
- 创建于
- 2026-09-10
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- dsh-plugin