After each reply, shows a gray next-prompt suggestion in the empty composer that Tab or → accepts; in an empty composer, ↑ / ↓ browse the messages you sent in the session. Settings can be changed on the Plugins page; nothing is sent automatically.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-next-prompt
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Tleon-H/dsh-next-prompt
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
简体中文 | English
A DeepSeek Harness (DSH) desktop plugin that adds two small features to the input box:
- → / Tab: accept a suggested next prompt. When the agent finishes replying, a light gray suggestion appears in the empty input box, guessing what you are likely to say next based on the recent conversation. Press
Tabor→to put it into your draft. - ↑ / ↓: browse what you sent. With the input box empty, press
↑to fill in the last message you sent in this session; keep pressing↑to go further back and↓to come forward again.
Both only fill the input box. Nothing is ever sent automatically.

Illustrative animation; the real look follows your DSH theme.
This plugin was called
dsh-prompt-prefillbefore 0.5.0. If you installed the old one, rundsh plugin --profile desktop remove dsh-prompt-prefillfirst, then install as below.
Tested on DSH desktop 0.2.1-rc.3, 0.2.1-rc.2 and 0.2.0-rc.2 (other versions are untested).
Install
dsh plugin --profile desktop add dsh-next-prompt
From DSH 0.2.1 on, no restart is needed: run the command while DSH is open and the plugin takes effect right away. On earlier versions, fully quit DSH (including the tray icon) and reopen it after installing; it is best to quit DSH before installing too, otherwise the command waits for DSH to release its file lock.
- Latest code from the repository:
dsh plugin --profile desktop add github:Tleon-H/dsh-next-prompt - Web version of DSH: replace
--profile desktopwith your own profile (usually--profile web) - Update:
removeandaddagain (DSH before 0.2.1 also needs a restart) - Uninstall:
dsh plugin --profile desktop remove dsh-next-prompt
Usage
- When a reply finishes and the input box is empty, a gray suggestion appears within a few seconds. Press
Tab/→to accept,Escapeto dismiss; it hides as soon as you start typing. - Just opening or browsing a session never calls the model. No suggestion is generated while the agent is replying, or when the last turn failed or was aborted.
- After you quit and reopen DSH, switching back to a session brings its last suggestion back, as long as nothing new was said since (no extra model call). Suggestions dismissed with
Escapestay dismissed. - When the conversation has no obvious next step, the model may return no suggestion, and nothing is shown.
- The plugin does not intercept keys with modifiers, during IME composition, or when the input box is not focused.
Configuration
Open this plugin on DSH's Plugins page and click its next-prompt row to edit the settings below; saved changes take effect immediately, with no reinstall or restart. You can also set them in cordis.patch.yml. The most useful ones:
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
provider / model |
'' |
Pin a model for generating suggestions; both must be set. Empty means follow the current session |
timeoutMs |
20000 |
Timeout per generation (ms) |
maxRecentTurns |
3 |
Number of recent messages sent to the model |
persistSuggestions |
true |
Save each session's latest suggestion to ~/.dsh/plugin-data/dsh-next-prompt/suggestions.json so it survives a restart; turn off to keep it in memory only |
See the comments in cordis.patch.yml for the rest.
The plugin reuses the models and API keys you already configured in DSH and needs no credentials of its own. If your chat model is slow or always reasons, or you use a plugin that switches models automatically, pin a fast non-reasoning model, for example:
provider: 'deepseek'
model: 'deepseek-flash'
Only the text of the last few messages is sent to the model. Common key and token formats are masked first, but this pattern-based masking cannot catch every secret.
Notes
- The gray text is an overlay aligned with the input box; very long suggestions may be cut off visually, but accepting still inserts the full text.
- Once you edit a recalled message,
↑/↓move the cursor again; in a multi-line message the caret has to reach the start (↑) or end (↓) before it moves on. Pressing↓on the newest message clears the input box. - Text only; image attachments are not restored.
- Do not install alongside other plugins that also intercept
Tab/→/↑/↓(see similar plugins).
More docs (Chinese)
- Troubleshooting & diagnostics
- Developer notes: how it works, pitfalls, tests
- Changelog
This is a small personal project. If you find it useful, a ⭐ on GitHub is the only way I know someone is using it. Bug reports and ideas via issues are welcome, but replies are not guaranteed.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10696
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10696
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7509
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5395
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1082
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.