dsh-next-prompt
Manifest validAfter each reply, shows a gray next-prompt suggestion in the empty composer that Tab or → accepts, and ↑ in an empty composer recalls your last sent message; nothing is sent automatically.
dsh-next-prompt
简体中文 | English
DeepSeek Harness(DSH)桌面端插件,给输入框加两个小功能:
- → / Tab:采纳建议的下一句。 Agent 回答完后,输入框里出现一条浅灰色的提示词,是根据最近的对话猜你接下来想说的话。按
Tab或→填进草稿。 - ↑:填入上一次发送的内容。 输入框为空时按
↑,填入这个会话里你上一次发出的消息。
两者都只填进输入框,不会自动发送。
本插件原名
dsh-prompt-prefill,0.5.0 起改名为dsh-next-prompt。装过旧版的话,先dsh plugin --profile desktop remove dsh-prompt-prefill,再按下面的方法安装新版。
适用版本:DSH 桌面端 0.2.1-rc.2、0.2.0-rc.2(其他版本未验证)。
安装
dsh plugin --profile desktop add dsh-next-prompt
DSH 0.2.1 起,装完不用重启,DSH 开着时直接运行命令就行,插件马上生效。更早的版本装完要完全退出 DSH(包括托盘图标)再重新打开,安装前最好也先退出 DSH,否则命令会等待它释放文件锁。
- 想用仓库最新代码:
dsh plugin --profile desktop add github:Tleon-H/dsh-next-prompt - 用网页版 DSH:把
--profile desktop换成你自己的 profile(通常是--profile web) - 更新:先
remove再重新add(0.2.1 之前的 DSH 还要重启) - 卸载:
dsh plugin --profile desktop remove dsh-next-prompt
用法
- 回答结束且输入框为空时,几秒内出现灰字;按
Tab/→采纳,按Escape关闭,开始打字时灰字自动隐藏。 - 只是打开或翻看会话不会调用模型;Agent 回答中、上一轮出错或被中止时也不会生成。
- 关掉 DSH 再打开、切回某个会话时,只要之后没有新的对话,上次的灰字还在(不会重新调用模型)。按
Escape关掉的不会再出现。 - 对话没有明显下一步时,模型可能不给建议,这时不显示灰字。
- 带修饰键的组合键、输入法组字、输入框没有焦点时,插件不拦截按键。
配置
配置写在 cordis.patch.yml 里,常用的几项:
| 键 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关 |
provider / model | '' | 固定用来生成提示词的模型,两项都填才生效;留空则跟随当前会话 |
timeoutMs | 20000 | 单次生成超时(毫秒) |
maxRecentTurns | 3 | 发给模型的最近消息条数 |
persistSuggestions | true | 把每个会话最近一条灰字存到 ~/.dsh/plugin-data/dsh-next-prompt/suggestions.json,重开 DSH 后还原;关掉则只保留在内存里 |
其余配置项见 cordis.patch.yml 里的注释。
插件复用你在 DSH 里配好的模型和密钥,本身不需要任何凭据。如果当前模型带思考、比较慢,或者装了会自动切换模型的插件,建议固定一个响应快、不带思考的模型,例如:
provider: 'deepseek'
model: 'deepseek-flash'
发给模型的只有最近几条对话的文字,常见格式的密钥和 token 会先被替换成「[已隐藏]」,但不能保证识别所有敏感信息。
注意事项
- 灰字是对齐在输入框上的浮层,候选很长时可能显示不全,采纳后仍是完整内容。
↑只能填入上一条,只恢复文字,不恢复图片附件。- 不要和其他同样拦截
Tab/→/↑的插件同时安装,见同类插件。
更多文档
个人维护的小项目,欢迎通过 issue 反馈,但不保证及时回复。
License
MIT
Comments
Loading…
Similar plugins
by songshuhuoban
Suggests the next user reply in an empty composer after the assistant finishes, using the session model and rolling context summaries, with Tab to accept.
★ 0
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile web add dsh-next-input给 DSH 输入框加上输入预测:回合结束后自动建议你的下一句话,Tab 一键采纳;输入时按会话历史做前缀补全。输入预测 / 自动补全。
★ 0
dsh plugin --profile web add dsh-suggest-ghostby hiJoeLee
在每条回复下方给出可点的下一步建议,点一下就作为你的消息发出去
★ 1
MIT
JavaScript
Oct 6, 2026
dsh plugin --profile web add dsh-suggest-actionsby ChuanTianML
Automatic ghost suggestions and one-click next-message drafting for the DeepSeek Harness composer.
★ 4
↓ 388/wk
MIT
JavaScript
Sep 19, 2026
dsh plugin --profile web add dsh-prompt-for-meAnnotate on selection, persist through refresh; send the notes with your message and the model answers each one.
★ 0
↓ 69/wk
dsh plugin --profile web add dsh-inline-commentsby konglong87
dsh 常用内容插件:保存、编辑提示词,点击回填输入框,不自动发送。deepseek harness 插件
★ 0
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-input-list