Preface¶
When engaging in multi-turn conversations with an Agent in DeepSeek Harness (DSH), two common actions frequently arise: right after the Agent finishes answering, you might want to ask a follow-up or pivot the direction, requiring you to manually compose the next sentence from scratch; occasionally, you may need to paste back the content sent in the previous turn and modify a few words. DSH itself does not necessarily help you guess “what to say next,” nor does it restore the previous user message into an empty input box with a single click. The community plugin dsh-next-prompt (maintainer Tleon-H) targets this input layer specifically: after the answer concludes, it displays a grayish suggestion in the box that can be adopted; when the box is empty, pressing the up arrow key fills in the text sent in the previous turn of the current session. Both actions only write to the draft and do not auto-send.
What is this¶
dsh-next-prompt is a DSH client (Web platform bundle) plugin that hooks into the input area of the desktop client (or the corresponding Web profile) via cordis.patch.yml. The npm package name and plugin ID are both dsh-next-prompt; starting from version 0.5.0, it was renamed from the old name dsh-prompt-prefill. The package version referenced in the current documentation is 0.5.2, licensed under MIT. In terms of classification, it is a plugin that modifies client interaction, rather than a standalone backend service.
Core Features¶
The following two items are capabilities explicitly described in the README with clearly defined behavioral boundaries.
Next Prompt Suggestion (Ghost Text)¶
When the Agent has finished answering and the input box is empty, a light gray hint text usually appears within a few seconds. This is generated by the plugin calling a model based on the recent conversation (it is not merely a local template).
- Press
Tabor→: Fills the gray text into the input box draft. - Press
Escape: Dismisses the current suggestion; it will not automatically pop up again for the same turn (unless triggered again by a new answer completion). - Start typing normally: The gray text automatically hides.
- It does not auto-send; it is merely a pre-fill, and the decision to send is still up to you.
There are several limitations on triggering and display (all derived from official instructions): Simply opening or browsing a conversation will not call the model; suggestions are not generated if the Agent is still answering, the previous turn errored, or was aborted; the gray text may not appear if there is no obvious “next step” in the conversation; the plugin does not intercept key presses involving modifier keys, input method composition (IME), or when the input box is not focused.
When reopening DSH or switching back to a session: If there has been no new conversation since, and the suggestion was not dismissed with Escape, the previous gray text can still be restored (without calling the model again); if persistence is configured, it will be written to a local JSON file (see configuration below).
Previous User Message (↑)¶
When the input box is empty, pressing ↑ fills in the text of the last message you sent in the current session.
- Similarly, it only fills the draft, does not send.
- It only restores text, not images or other attachments.
- It can only go back to the previous message, not a full history stack.
Installation and Activation¶
The applicable DSH desktop versions listed in the README are 0.2.1-rc.2 and 0.2.0-rc.2 (other versions are unverified). If you have installed the old plugin ID, you should uninstall the old name before installing the new version.
If you have previously installed dsh-prompt-prefill, first run:
dsh plugin --profile desktop remove dsh-prompt-prefill
Install from npm for the desktop client (command provided in the official README):
dsh plugin --profile desktop add dsh-next-prompt
Notes:
- DSH 0.2.1 and later: Generally no restart is needed after installation; running the above command while DSH is running will take effect immediately.
- Earlier versions: You need to fully exit DSH (including the tray) and reopen it after installation; it is also recommended to exit before installation, otherwise the command may wait for a file lock.
- When using the Web version of DSH, replace
--profile desktopwith your profile (commonly--profile web). - To track the latest code on GitHub (optional method in README):
dsh plugin --profile desktop add github:Tleon-H/dsh-next-prompt - Update:
removethenadd(DSH versions prior to 0.2.1 may still require a restart after updating). - Uninstall:
dsh plugin --profile desktop remove dsh-next-prompt
The plugin reuses the models and keys you have already configured in DSH; it does not require additional credentials itself. Before installation, it is still recommended to review the source code and MIT license on the GitHub repository; the plugin runs under the permissions of the current DSH process, and like all DSH plugins, the trust boundary depends on your review of the DSH and plugin code.
Typical Usage¶
- Install and confirm the correct profile (desktop or web).
- In a conversation, wait for the Agent to fully finish answering while keeping the input box empty, and observe if gray text appears.
- To adopt it, press
Tabor→, continue editing the draft, and then send; if not needed, pressEscapeor start typing. - To resend the previous message, clear the input box, press
↑, modify it, and send manually.
If the model used in the current session involves thinking (reasoning) and is slow to respond, or if another plugin automatically switches models, the README suggests fixing a fast, non-thinking model in cordis.patch.yml for generating the gray text, for example:
provider: 'deepseek'
model: 'deepseek-flash'
Only the text of the recent few turns of conversation is sent to the model; common formats of keys and tokens are replaced with “[Hidden]” first, but it is not guaranteed to cover all sensitive information, so please be mindful of conversation content when using this.
Configuration Essentials¶
Configuration is written in the plugin package’s cordis.patch.yml (merged by DSH as a patch after installation). Common items are as follows (default values are based on the README table):
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
provider / model |
'' |
Model dedicated to generating prompts; effective only if both are filled, left blank follows the current session |
timeoutMs |
20000 |
Timeout for single generation (milliseconds) |
maxRecentTurns |
3 |
Number of recent messages sent to the model |
persistSuggestions |
true |
Whether to save the session’s latest gray text to ~/.dsh/plugin-data/dsh-next-prompt/suggestions.json for restoration after reopening DSH; false means memory only |
For other items, see the comments within cordis.patch.yml. If gray text does not appear, refer to the repository’s Troubleshooting and Diagnostics.
Applicable Scenarios and Notes¶
Who it is for: Users who frequently engage in long conversations in DSH, wish to reduce pauses on “what to write next,” or need to quickly modify and resend the previous message; users who accept an extra model call for generating suggestions (a dedicated small model can be configured to control latency).
Notes on usage:
- The gray text is a floating layer superimposed on the input box; long candidates may not display fully, but the content remains complete after adoption.
- Do not install simultaneously with plugins that also intercept
Tab/→/↑; the README points to similar plugin descriptions. - The DSH ecosystem emphasizes “everything is a plugin”; the community directory SkillHub Plugin Page is an independent site with no official affiliation with DeepSeek or Quantwai; installation sources should be based on the registry or GitHub you trust.
Links and Documentation¶
- Community Directory: https://www.skillhub.cn/plugins/Tleon-H/dsh-next-prompt
- Source Code and README: https://github.com/Tleon-H/dsh-next-prompt
- Developer Notes: https://github.com/Tleon-H/dsh-next-prompt/blob/main/docs/development.md
- Bug Reports: https://github.com/Tleon-H/dsh-next-prompt/issues
This is a personally maintained project; the README states that timely responses to issues are not guaranteed; functional boundaries are subject to the repository documentation and the current version.