DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

lsfcy /

lsfcy/dsh-composer-predictions

Verified

Codex-style composer predictions for DeepSeek Harness: dim next-message ghost in the composer, Tab to accept

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@a9d57486

dsh-composer-predictions

CI

给 DeepSeek Harness 的输入框补上“下一句预测”:一轮对话结束后,在空的输入框里用灰字显示 你接下来可能发送的消息。Tab 填入草稿,Esc 或开始打字即忽略。不会自动发送。

English | 中文 · 在线试玩

示例

助手刚说完「测试全部通过」,空输入框里出现灰字:

顺手把这次改动提交了吗?提交信息我一起写好

按 Tab,它变成可编辑的草稿;按 Esc 或直接打字,它消失。

灰字预测:出现、Tab 接受

安装

仅适用于 DSH 的 Web / 桌面端(0.2.x),不能用于其他 agent/harness。

方式一(推荐,已在 DSH 会话里):让 agent 执行

plugin_manager  action: install_bundle
                target: @lsfcy/dsh-composer-predictions

即时生效,不用重启(页面没更新就刷新一次)。

方式二(终端):

dsh plugin --profile desktop add @lsfcy/dsh-composer-predictions

装完重启 DSH。桌面端 profile 是 desktop;其他入口用 ~/.dsh/profiles 里对应的名字,如 web。不想走 npm 时,也可以用固定版本: dsh plugin --profile desktop add git+https://github.com/lsfcy/dsh-composer-predictions.git#v0.1.0。

配置

设置 → 输入框预测:

配置 默认 说明
enabled true 总开关:关闭后不再请求,也不显示灰字。
provider 自动 留空用你当前选中的 provider。
model 自动 留空用该 provider 下最便宜的型号。
reasoningEffort 自动 留空用模型支持的最省推理档。

这些键同样可以写在 profile patch 的 bundle row config 里。

原理

  1. 宿主读取会话里真人的 user/assistant 消息,只取最近 12 条,压到 6000 字符。
  2. 只在一轮成功结束、且最后一条是 assistant 回复时预测。
  3. 调一次便宜模型,取一行(≤160 字符),按会话内容缓存 30 分钟。
  4. 客户端把它画成灰字;Tab 写入输入框。

成本

单次生成约 2–3k token(system 提示词 + 转录 + 输出上限 512),走最便宜型号和最低推理档。 命中缓存不产生费用;被中止的轮次不会调用模型。

限制

  • 它只是猜测,没有记忆:不做检索,不读长期画像,只看最近这段转录。
  • 只在成功轮次后出现,且永不自动发送。
  • 便宜模型可能平淡或猜错;在意质量可在配置里固定更强的模型。
  • 只给一行,不会给多步计划。
—/ 5

No ratings yet

Verified DSH bundle

Commit a9d57486c279

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout