Skip to content

dsh-suggested-replies

⭐ 3 · ✅ active · plugin

Type plugin Category UI & experience
Stars ⭐ 3 Status ✅ active
Author Anionex Updated 2026-08-14
Subcategory 💡 Generative UI Capabilities ui

One-liner

Predicted next-message candidates above the DSH Web composer, one click to fill the draft.

About

DSH Web 的“预测回复”插件:AI 回复结束后,生成几条用户下一步可能会发送的消息候选,并将它们显示在聊天输入框上方。点击候选只会将文本填入输入框,不会自动发送。

✨ Key Features

  • 正确位置:注册 conversation.input.dock,位于 DSH 的消息输入卡片上方;不会放到输入框下方的 conversation.composer.dock。
  • 单行展示:候选始终保持在一条横线上;宽度不足时横向滚动查看,不换到第二行。
  • 只填入草稿:点击候选会替换当前草稿为该候选,不会调用发送动作。
  • 候选内容:优先覆盖合理的下一步执行、验证/追问、或决策/选择;候选跟随最近对话语言,彼此去重且可直接发送。
  • 失败兜底:辅助模型没有返回规定 JSON 时,插件仍按最近对话语言生成配置数量的保守候选,不再把空数组当成成功结果隐藏整行。
  • 上下文范围:辅助提示词只截取直接用户消息和 AI 回复;AGENTS、运行时快照和 Skill 目录等注入上下文不会挤占最近对话窗口。

📦 Install

dsh plugin --profile web add @anionex/dsh-suggested-replies

🚀 Quick Start

dsh plugin --profile web add /absolute/path/to/dsh-suggested-replies

📚 Learn more

本地开发目录安装

dsh plugin --profile web add /absolute/path/to/dsh-suggested-replies 安装或更新后,重启正在运行的 dsh web 服务,并在浏览器硬刷新页面。新建或重新打开一个会话后进行验证。

设置与配置

Web 设置页中的“下一步建议”分区提供 enabled 总开关。它写入 $DSH_HOME/settings.yaml 的 suggested-replies 区域,下一轮立即生效。 其余部署参数在 cordis.patch.yml 或 profile overlay 中配置: 示例 overlay: - id: suggested-replies config: suggestionCount: 4 maxSuggestionChars: 120 timeoutMs: 10000 suggestionProvider: deepseek-official suggestionModel: deepseek-v4-flash