ChuanTianML/prompt-for-me 预览 preview

ChuanTianML/prompt-for-me

DeepSeek Harness 编辑器中的上下文感知下一条消息建议。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), also known as Prompt 嘴替 in Chinese. It adds automatic next-message prediction functionality to DSH, generating a ghost text suggestion after the DSH agent completes a reply and the input composer meets all eligibility conditions. To install the plugin, users can run the DSH CLI command to add it from a prebuilt release tarball, or install a pinned Git tag directly via the DSH plugin manager. After installation, you just need to restart the dsh web process to activate the plugin.

The plugin only generates automatic suggestions when a set of conditions are met: after the agent turn completes, the session is idle, plan mode is off, and the input composer is completely empty with no images or pending intents. Users can accept the visible suggestion with Tab, the right arrow key, or the on-page check button. If you start typing, the ghost text hides automatically, and if you clear your typed text, the suggestion will reappear without needing an extra new model call. The Escape key dismisses the current visible suggestion entirely, and manual generation is always available via the Sparkles button.

This plugin is released under the permissive MIT open source license. Local development of the plugin requires Node.js version 22.19 or newer, and you can run the included npm run check command to rebuild artifacts, run tests, and verify the final npm package contents. Users can adjust core settings like automatic suggestion enablement, the manual trigger shortcut, and the suggestion model directly from the DSH Web UI plugin settings page, and changes take effect immediately without needing a full restart. The plugin stores a maximum of 10 skipped suggestions to avoid repeating unwanted outputs.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,中文名为Prompt嘴替,核心功能是在DSH AI代理完成一次回复后,自动预测用户接下来可能想要发送的消息,以幽灵文本形式展示在输入框供用户快速选用。用户可以通过DSH官方CLI命令直接安装,支持从发布压缩包或指定Git标签安装,安装后重启DSH Web端即可正常启用插件功能。

插件只会在代理回复完成、会话空闲、计划模式未激活、输入框为空且无附件的符合条件场景下生成建议,用户可以按Tab、右方向键或点击界面上的勾选按钮接受建议,开始输入文字会自动隐藏建议,清空输入框后建议会重新显示,按Esc可以直接关闭当前建议。想要手动触发可以点击Sparkles按钮或使用默认快捷键Mod+Shift+Space,直接生成建议填入输入框。

插件遵循MIT开源协议,本地开发需要Node.js 22.19及以上版本,支持最新DSH客户端的原生内联建议API,旧版客户端会自动回退到带操作按钮的预览卡片模式展示建议。普通用户可以在DSH Web端设置界面的插件配置页调整自动建议开关、快捷键、绑定模型等参数,修改后不需要重启即可生效,插件最多保留10条跳过的建议记录。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:ChuanTianML/prompt-for-me#v0.6.1

把 ChuanTianML/prompt-for-me 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Prompt for Me

中文

npm version npm downloads GitHub stars

Prompt for Me prepares your next message in the DeepSeek Harness composer. After the agent replies, you can accept a suggestion, edit it, or generate another. The plugin helps you draft; you decide when to send.

See it in action

1. Your next message, ready after the reply

When the composer is idle, a suggestion appears in light gray. It is not part of your draft yet, and nothing is sent automatically.

After the agent replies, a next-message suggestion appears in light gray with a checkmark to accept it

2. Accept it, then make it yours

Press Tab or click ✓ to turn the suggestion into editable text. Here, we add “Keep it under eight words.” You still decide when to send.

The accepted suggestion becomes an editable draft, with an added eight-word limit and an enabled send button

3. Want another direction? Click the sparkles

Click ✦, immediately left of Send, or use the default shortcut ⌘⇧Space / Ctrl+Shift+Space. A fresh next message goes straight into the draft for you to review or edit.

A manually generated follow-up is filled into the composer and remains unsent

Real product screenshots using a fictional project and demo conversations. Private session lists, workspace information, and runtime statistics are outside the captured area.

What it does

  • Generates only after a newly completed turn when the session is idle, plan mode is inactive, and the composer has exactly empty text, no images, and no queued intent.
  • Retains that completed turn while Host policy loads or the composer is temporarily ineligible, then generates once the requirements are met.
  • Cancels an in-flight automatic request if the composer becomes ineligible; late results cannot restore the suggestion. An explicit rejection by the native composer does not open a fallback preview.
  • Retires suggestions from the preceding context when a newer turn completes, including after submissions that settle too quickly for an intermediate composer state to render.
  • Shows native inline ghost text on compatible Harness clients. Older clients use a small preview card without mutating the draft.
  • Accepts a ghost with Tab, Right Arrow, or the adjacent check control. Enter never accepts ghost text.
  • Hides the ghost when you type, offers it again if you clear the draft, and dismisses it with Escape.
  • Keeps the Sparkles Trigger and Mod+Shift+Space shortcut. An explicit Trigger always requests a fresh suggestion and writes it directly into the draft, even while automatic generation is in flight.
  • Sends skipped suggestions with the next explicit request so the model avoids repeating or paraphrasing them. The bounded cycle stores at most ten.
  • Never bypasses Harness approvals, never invokes tools, and never sends a message automatically.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-calendar 下一个 Next dsh-tray →