Community plugin

5aaee9 / @indexyz/dsh-prompt-suggestions

Suggest the user's next message as dim composer text after a successful reply

  • TypeScript
  • MIT
  • 5 stars
  • Dec 3, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

@indexyz/dsh-prompt-suggestions is a DSH plugin published from the dsh-prompt-suggestions package in the 5aaee9/pi-agent-extensions repository.

  • Listing statusManifest verified
  • Manifest checkedDec 3, 2026
  • Package@indexyz/dsh-prompt-suggestions
  • Package pathdsh-prompt-suggestions
  • Package version0.1.1
  • DSH engine>=0.2.0-rc.2 <0.3.0-0
  • Source commitbab25f7
  • Repository createdAug 5, 2026

Capabilities and topics

composercordisdeepseek-harnessdsh
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

@indexyz/dsh-prompt-suggestions

Dim next-message suggestions for the DeepSeek Harness composer.

After a successful reply, the empty composer shows a short message the user is likely to send next. Press Tab or → to add it to the draft, then Enter yourself. Press Esc to dismiss it. The plugin never sends the suggestion automatically.

Install

dsh plugin --profile web add @indexyz/dsh-prompt-suggestions

From a checkout, build the generated Host and browser artifacts first because a link: install reads files from disk without building:

npm install
npm run build --workspace @indexyz/dsh-prompt-suggestions
dsh plugin --profile web add ./dsh-prompt-suggestions

Restart the Harness for the Host half and refresh the page for the browser half. The bundle patch inserts the prompt-suggestions row automatically; no manual profile patch is needed.

Settings

Settings → General → Next-message suggestions has one global switch. The value is stored in the prompt-suggestions Host settings namespace and applies immediately. The switch reports read-only profiles, revision conflicts, and unavailable settings without affecting the rest of the page.

Behavior

  • A suggestion is generated only after a live completed turn that contains a direct human message and visible assistant text. Failed, aborted, interrupted, blocked, max-token, text-free, restored, replayed, and replayed/forked turns do not trigger generation.
  • The composer marks its session watched on the first query, even when the draft is not empty. A session whose composer was never open does not spend a request.
  • The suggestion uses the conversation's current provider/model and the lowest reasoning effort that route advertises (low, then off/minimal/none, otherwise the lowest available).
  • Only the eight most recent visible user/assistant exchanges are sent, bounded to 4,096 UTF-8 bytes. Reasoning, tool results, tool arguments, system prompts, synthetic context, attachments, hooks, connectors, and environment state are never sent.
  • The auxiliary call is tool-free, writes no session events, inherits no goal, does not appear in the conversation, and is discarded after the turn. It has a 30-second deadline and 512 output tokens.
  • A new turn, session switch, or disabled switch invalidates the pending result and aborts the in-flight auxiliary call.

Keys and priority

InputResult
Tab / →Append the suggestion to the editable draft; no submit
EscDismiss the suggestion
Typing or pastingHides the suggestion; clearing the draft re-shows it
Existing draft, attachment, open menuNo ghost text / no key interception
Custom bare Tab or Right-Arrow bindingThe custom shortcut wins

IME composition is ignored, and the ghost row is hidden from the accessibility tree.

Cost and privacy

Each eligible live reply adds one auxiliary model request. The request is real token and latency cost, so keep the switch off if that is not wanted. Opening a session after a reload does not generate for its already-completed history; the first live completed turn after the composer is watched does.

The suggestion is ephemeral Host memory: a reload, session replay, or Harness restart drops it. It is never persisted and never submitted. Model output is normalized to one plain-text line capped at 200 Unicode code points; empty, tool-call, non-stop, or malformed output produces no suggestion.

Limits

  • This package targets the pinned Harness version in its manifest and uses the composer's current DOM contract (data-composer-card, data-composer-placeholder, contenteditable). A composer rewrite may require a small update; failure degrades to no ghost text.
  • A reasoning route can still return reasoning-only or truncated output. Those cases are treated as "no suggestion" rather than shown partially.
  • The page reload/restored-turn behavior is intentional: replay is not a generation trigger.

Development

npm run check --workspace @indexyz/dsh-prompt-suggestions
node dsh-prompt-suggestions/test/smoke-release.ts dsh-prompt-suggestions

The release smoke verifies the installed manifest, bundle patch, generated Host entry, browser module-loader registration, both slot registrations, locale copy, and disposal. The package declares this script as release.smoke, so the release engine runs the same check against the packed and installed tarball.

The Host half builds to lib/ with tsc; the browser half builds to one client.js with tsdown. Both are Git-ignored and built by prepack. The openspec/ directory is development-only and excluded from the tarball.

License

MIT

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/5aaee9/pi-agent-extensions/dsh-prompt-suggestions)
@indexyz/dsh-prompt-suggestions — DSH Plugin