DeepSHPlugins
prompt-for-me 项目预览
GITHUB / COMMUNITY PROJECT

prompt-for-me

UI 增强JavaScriptMIT

DSH 输入框的上下文感知下一句建议:重复 Trigger 可持续换一条,发送前始终由用户确认。

4 StarsChuanTianML 更新时间 2026-08-29
访问 GitHub 仓库
prompt-for-me 项目预览

项目介绍

中文

DSH 输入框的上下文感知下一句建议:重复 Trigger 可持续换一条,发送前始终由用户确认。

English

Context-aware next-message suggestions in the DSH composer, with repeated Trigger cycling and explicit user review before sending.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
ChuanTianML
仓库
ChuanTianML/prompt-for-me
GitHub Stars
4
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-29
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

57/ 100
维护活跃
92
文档与实用信息
85
生态关注度
20
安装便捷信号
55
项目声明信号
100

近 13 天仍在更新;README 含完整安装与使用说明;关注度尚低(4)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:ChuanTianML/prompt-for-me

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

Prompt for Me

中文

npm version npm downloads GitHub stars

Prompt for Me (中文名:Prompt 嘴替) predicts the next message you may want to send from the DeepSeek Harness composer. After a completed agent turn, it quietly offers one suggestion as ghost text. Your draft stays empty until you accept it, and the plugin never submits on your behalf.

Prompt for Me interaction flow

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.
  • 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.

Interaction reference

SituationResult
A turn completes and the composer is eligibleOne automatic suggestion appears outside the draft.
Tab, Right Arrow, or the check controlThe visible suggestion becomes one undoable draft edit.
Enter while only a ghost is visibleNothing is accepted or sent.
Start typingThe ghost hides; your text wins.
Clear the typed textThe hidden suggestion can reappear without another model call.
EscapeThe visible suggestion is dismissed.
Sparkles button or Mod+Shift+SpaceA fresh suggestion is generated and directly fills or replaces the draft.
Edit and EnterOnly the final text is submitted; adoption becomes positive feedback only now.

Install

The release tarball is the simplest option because it contains prebuilt Host and Client artifacts:

dsh plugin --profile web add https://github.com/ChuanTianML/prompt-for-me/releases/download/v0.6.0/dsh-prompt-for-me-0.6.0.tgz

Restart dsh web after installation.

You may also install a pinned Git tag:

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

pnpm 10 may ask you to allow the package's prepare script for a Git install. Add dsh-prompt-for-me: true under allowBuilds in the Web profile's pnpm-workspace.yaml, then run the command again. The script only copies the checked-out Host files and wraps the checked-out Client factory; it performs no downloads.

Update or remove it with:

dsh plugin --profile web update dsh-prompt-for-me
dsh plugin --profile web remove dsh-prompt-for-me

Current DeepSeek Harness builds provide the native inline suggestion API. If that API is absent but completed-turn projection is available, the plugin falls back to an explicit preview card with Use and dismiss controls. The manual Sparkles workflow remains direct-fill in either presentation.

Web UI settings

Open Settings → Plugins → Configurable, then expand Prompt for Me. The card follows Harness settings structure, tokens, spacing, and staged Save/Discard behavior. Saved values live in the shared Host user-settings document and take effect immediately without a restart.

  • Suggest after the Agent replies is on by default. Turning it off withdraws any unaccepted automatic ghost and stops future automatic generation; the manual Sparkles Trigger remains available.
  • Manual generation shortcut defaults to Mod+Shift+Space. Select the current shortcut and press a new Command/Ctrl or Alt combination, or disable the shortcut. Harness still owns ghost acceptance, which defaults to Tab.
  • Advanced settings → Suggestion model follows the current Session by default. It can instead pin one provider/model from the current Harness model directory.

The UI deliberately omits context-range controls, quick/personalized modes, a personalization reset, token limits, and timeouts. The plugin owns those product decisions instead of asking users to tune suggestion quality.

Model and API key

The plugin calls ctx.llm on the Harness Host. By default it reuses the current session's provider and model, falling back to the Harness default selection. The provider therefore uses the API key already configured in DeepSeek Harness. The browser never receives or reads that key, and this plugin has no separate key.

Most users can pin an auxiliary model from the Web UI advanced settings. Deployment maintainers may also set both provider and model as a composition base in cordis.patch.yml or an overriding profile patch; a saved Web UI choice takes precedence:

- id: prompt-for-me
  name: dsh-prompt-for-me
  config:
    provider: deepseek-official
    model: deepseek-chat

Data and privacy

On each automatic or explicit generation request, the Host may send these bounded text fields to the selected model provider:

  • the current draft;
  • the last three direct-human/assistant turns from the current session;
  • current-session submitted suggestion edits, exact accepts, and rejected suggestions;
  • bounded raw examples from manual prompts and suggestion interactions in up to 20 earlier sessions;
  • up to ten suggestions skipped during the current cycle, so the model can avoid repeating or paraphrasing them.

The current draft and recent turns determine the task, intent, and message content. Current-session feedback adjusts the immediate wording. Cross-session memory may influence only durable style, detail, and workflow preferences. Manual prompts and submitted suggestion edits carry more weight than exact accepts; rejected suggestions are weak negative evidence. Editing a suggestion and triggering again rejects the original suggestion but does not treat the unsubmitted edit as a positive preference.

Harness records injected workspace instructions, runtime context, and skill catalogs in user-role events. The plugin excludes these non-human sources from conversation turns and preference memory. If both the draft and direct-human conversation are empty, generation stops before the model call.

Common API-key, token, password, and Bearer-token patterns are replaced with [REDACTED_SECRET] before the model call. Attachments, tool arguments, files, credentials, and binary blocks are not collected. The plugin has no analytics endpoint and sends data only to the model route already selected in Harness.

Interaction records are stored only in this browser's localStorage under dsh.prompt-for-me.outcomes.v2. Each record contains its session ID, final action, origin, and the relevant original/final text. Merely seeing or adopting ghost text is not positive feedback; it becomes evidence only after submission. Version 1 records migrate automatically and remain untouched. The plugin does not expose a reset control that asks users to manage this history.

DeepSeek Harness 0.1.0-rc.6 does not expose downstream registration for custom durable session-event types. For that reason, the standalone plugin does not append its auxiliary model request or outcomes to the Harness session log; doing so would make persisted sessions unreadable to the stock runtime. This is the main difference from the experimental in-tree implementation and will be revisited when a public event-registration API exists.

The generation RPC uses NDJSON. Each complete candidate is validated before it reaches either the transient suggestion surface or the draft; partial model tokens and incomplete JSON never enter the composer. Background failures stay quiet. Explicit failures remain visible on the Sparkles control.

The auxiliary request always uses reasoning effort off. The model receives one system instruction plus one JSON user message with current, currentSessionFeedback, userPreferenceMemory, and currentCycleSkipped. It receives no tool schemas or attachments.

The Host retains the latest 50 privacy-safe performance records in memory and logs each record as prompt-for-me metrics. Records contain model route, text byte/item counts, history/input preparation time, first model chunk/reasoning/text times, suggestion arrival time, total model/request time, and provider token usage. They contain no prompt, candidate, or outcome text. Query the current process with:

curl -sS -X POST -H 'content-type: application/json' \
  -d '{"method":"metrics"}' \
  http://127.0.0.1:3080/dsh-prompt-for-me/rpc

Configuration

The Web UI exposes only the three everyday choices above. The table below documents cordis.patch.yml composition controls for deployment maintainers; ordinary users are not expected to tune the stable generation limits:

FieldDefaultMeaning
automatictrueOffer a non-draft suggestion after eligible completed turns.
maxCandidateBytes4096UTF-8 limit per suggestion.
maxDraftBytes32768UTF-8 limit for a draft or edited outcome.
maxCurrentCycleSkipped10Skipped suggestions retained as hard negative context for the next Trigger.
maxCurrentCycleSkippedBytes16384Shared JSON budget for suggestions skipped during the current cycle.
maxCurrentTurns3Most recent current-session turns retained.
maxCurrentContextBytes16384JSON budget for the retained turns.
maxCurrentFeedbackBytes4096JSON budget for current-session suggestion feedback.
maxPreferenceMemoryBytes8192JSON budget for cross-session preference memory.
maxHistorySessions20Earlier sessions inspected.
maxManualPrompts8Earlier manual prompts retained.
maxEditedSuggestions6Edited suggestion pairs retained per feedback tier.
maxAcceptedExact6Exact accepts retained per feedback tier.
maxRejectedSuggestions4Weak rejection signals retained per feedback tier.
maxLocalOutcomes50Browser-local interaction records retained.
maxLocalOutcomesBytes131072Shared JSON budget for browser-local records and their RPC copy.
maxOutputTokens2048Auxiliary model output budget.
timeoutMs30000Auxiliary model-call timeout.
shortcutMod+Shift+SpacePortable Trigger, or disabled.

Development

Requires Node.js 22.19 or newer.

npm run check

The command rebuilds the static Host/Client artifacts, runs the Node test suite, and verifies the npm package contents.

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目