Introduction¶
When having multi-turn conversations with models in DeepSeek Harness (dsh), you often have to think of and type the next prompt yourself. Some IDE or conversational products provide grey suggestions for “the next message” in the input box, which you can accept with a keyboard shortcut to continue editing. DSH itself does not have this capability built in; the community plugin dsh-ghost-prompt (repository MochiNek0/dsh-ghost-prompt) uses the model to predict what you want to say next after each normal turn ends, and displays it as ghost text in the Web client’s input box. Below we introduce what it does, how to install it, how to use it, and what to watch out for.
What Is This¶
dsh-ghost-prompt is published by maintainer MochiNek0 and categorized as a client-side plugin in the SkillHub directory. In one sentence: it adds “predict next message” to dsh — after each conversation turn ends, the model predicts your next user message and displays it as grey ghost text in the input box; press → to accept and turn it into real input, or simply start typing to ignore the suggestion. Behaviorally, it’s similar to the prompt suggestion feature in Claude Code / Codex.
The plugin’s bundle name within dsh is next-prompt. The current README’s attached package.json shows version 1.2.1, licensed under MIT, requiring dsh >=0.2.0.
Core Features¶
All the following capabilities come from the project’s README and can be verified in the GitHub repository before installation.
When Predictions Are Triggered¶
- Automatically predicts after each normal turn ends (
turn/endiscompleted). - Does not predict on errors, cancellations, or sub-agent sessions.
- Only initiates prediction when a browser interface is “watching” the session: headless and scheduled tasks don’t consume extra tokens; goal auto-continues don’t trigger predictions either. If multiple tabs are open for the same session, the model is only called once.
Input Box Interaction¶
- Ghost text appears when the input box is empty; press → to fill the input box (cursor moves to the end, and you can continue editing before sending). The accept key can be changed to Tab, and you can also click the suggestion tag to accept (works on touch screens).
- When the input content matches the beginning of the prediction (case-insensitive for English), the remaining part continues to appear in grey behind it; Ctrl+→ (⌥→ on macOS) accepts word by word, Esc closes it.
- When the input doesn’t match the prediction, the suggestion is temporarily hidden; deleting back to the prediction’s beginning or clearing the input will make it reappear. Pressing Esc invalidates the prediction for this turn, and ongoing prediction calls on the Host side are also aborted.
Settings and Usage¶
- The sidebar Plugins → Input Prediction allows one-click toggling and selecting a prediction model (defaults to following the current session’s model).
- The same page provides Token Usage statistics: lists input / cache hit / output tokens for prediction and speed-testing calls by model (from provider responses; cleared after dsh restarts).
- The interface supports both English and Chinese, following Settings → General → Language; the speed-testing example conversation switches with the language.
Installation and Activation¶
The official installation command (for Web profile) is:
dsh plugin --profile web add dsh-ghost-prompt
For local development, the README states that after cloning the repository, you can run at the root directory:
dsh plugin --profile web add link:.
Then add dsh-ghost-prompt to the profile’s package.json under dsh.profile.bundles (dsh plugin add usually handles this automatically).
Community plugin directory page: https://www.skillhub.cn/plugins/MochiNek0/dsh-ghost-prompt. SkillHub is an independent community site with no official affiliation to DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin,” and installation sources should follow the README and directory page.
Configuration¶
Most options can be modified in the Plugins → Input Prediction interface. They can also be written to the profile’s cordis.patch.yml:
- id: next-prompt
config:
enabled: true # Master switch
provider: '' # Empty = follow session model; fill in a provider id you've configured in dsh (provider and model must be set together)
model: '' # Model id for prediction, also empty means follow session
maxContextChars: 8000 # Upper limit of recent conversation sent to prediction model, smaller is faster
maxOutputTokens: 512
timeoutMs: 30000
acceptKey: arrow # Key to accept entire prediction: arrow (→) or tab
Typical Usage¶
- Install and enable the plugin for the web profile using the command above, then restart or refresh the dsh Web client.
- Complete a normal conversation turn (assistant reply finishes, turn status is completed).
- When focus is in the input box and it’s empty, observe the grey ghost text; press → (or Tab if you selected it in settings) to accept the entire suggestion, then edit or send directly.
- If you only want to accept part of it, first type a beginning that matches the prediction, then use Ctrl+→ / ⌥→ to accept word by word; press Esc if you don’t need the suggestion for this turn.
- If the prediction model or context length causes slowness, reduce
maxContextCharsin the configuration, or specify a separateprovider/modelfor prediction in the sidebar (both must be set together).
The Host side provides POST /api/next-prompt/suggest (NDJSON streaming) and other interfaces; the browser mounts a component at the conversation.input.overlay slot, connecting to the prediction stream when turns end, with ghost text appearing character by character. Implementation details can be found in the README’s “Implementation Notes” section.
Use Cases and Caveats¶
Who it’s for: Developers who frequently write long prompts, repeat follow-up questions, or complete next sentences in dsh Web; users who want to reduce pauses from “thinking about what to write next” and are willing to make an extra model call (with token costs).
Important notes:
- The plugin runs with the current dsh process’s permissions and sends recent conversation fragments to the configured model for prediction. Before installation, please read the source code and the MIT license to confirm it meets your security and compliance requirements.
- Predictions are only initiated in sessions with “a browser watching,” but they still consume provider tokens; you can view usage statistics on the settings page.
- Requires the Web client (
--profile web); no automatic prediction in headless scenarios — this is by design, not a bug.
Developer build and test commands (from README):
pnpm install
pnpm run build
pnpm test # build, then node --test
Conclusion¶
dsh-ghost-prompt turns “the next user message” into ghost text suggestions in the input box, accepting with → / Tab and discarding with Esc, with the ability to toggle models and view tokens in the sidebar. If you’re doing agent work or multi-turn debugging in DSH, it’s worth trying.