Introduction¶
When doing multi-turn dialogue in DeepSeek Harness (DSH) Web, the input box is often empty right after the assistant finishes a round. You have to come up with a complete instruction from scratch for what to ask next or what constraints to add. Unlike “ghost completion” like Codex in IDEs, Harness doesn’t automatically draft a follow-up in an empty composer by default.
Below is an introduction to the community client plugin dsh-next-step-suggestion (maintainer Panmax): when a round ends normally and the input area is editable, it previews a short, directly sendable follow-up instruction using gray ghost text; pressing Tab turns it into an editable draft, without auto-submitting.
What is this¶
dsh-next-step-suggestion is a client plugin for DeepSeek Harness Web, positioned as Codex-style ghost next-step prompt suggestions. The source code shares the same name as the npm package, repository Panmax/dsh-next-step-suggestion, MIT License; community directory page at skillhub.cn. Categorized as a client plugin, current npm version is 0.3.1, requires Node ^22.19.0 || >=24.0.0, and dsh >=0.2.2-rc.1 <0.3.0-0.
The plugin does not modify the session log body; in the background, it initiates at most one tool-less ctx.llm call per (sessionId, turn), using only limited context such as recent human-machine text and tool call counts, without sending the complete transcript, system prompt, reasoning traces, or raw tool outputs to the auxiliary model.
Core Functionality¶
Trigger Conditions¶
The ghost preview is suggested when the following conditions are met simultaneously:
- In the foreground session, a round ends normally with
turn/endandreason.kind === 'completed'; - composer is editable, Plan Mode is not enabled, and text/reference chips/attachments are empty;
/,@completion menus, or composer takeover are not open.
The following cases are skipped: during streaming output, tool execution, permission prompts, ask_user_question waiting, read-only/disabled composer, cancellation, or error termination.
Acceptance Method¶
The ghost preview is rendered separately from Lexical editor content. When the composer is focused, pressing Tab or → (ArrowRight), or clicking/touching the Tab badge, converts the preview into an editable draft with a cursor at the end, without auto-sending. When the focus is outside the composer, pressing Tab still triggers the browser’s default focus traversal; when / or @ menus are opened or Shift+Tab is pressed, the preview hides to make room for the built-in menus.
Visibility and Multi-Session¶
Suggestions are isolated by sessionId: switching sessions hides the previous session’s preview; returning to the original session can restore the cached suggestion or fill in the just-completed round in the background (cold history sessions are not filled). Input, IME, pasting, or adding references/attachments will only temporarily hide the preview; when the composer becomes empty again, the same suggestion will reappear, and the model will not be requested again. Only starting a new round of sending will clear the suggestion.
Installation and Enablement¶
CLI¶
Install, enable/disable, or remove from npm under the Web profile:
# Install from npm
dsh plugin --profile web add dsh-next-step-suggestion
# Enable or disable at any time (hot-reloads with HMR)
dsh plugin --profile web enable dsh-next-step-suggestion
dsh plugin --profile web disable dsh-next-step-suggestion
# Remove the bundle
dsh plugin --profile web remove dsh-next-step-suggestion
Web UI¶
- Open the left sidebar Plugins.
- Click Add plugin, enter
dsh-next-step-suggestionand install. - Toggle Next-step suggestion at any time; after closing, it will unload the overlay slot, remove plugin styles, and immediately stop all background generation requests.
The plugin runs within the DSH Web client process, with permissions consistent with the current Harness process. It is recommended to read the repository source code and MIT license before installation to ensure auxiliary LLM calls and data boundaries meet your environment requirements.
Typical Usage¶
After a round of dialogue ends, keep the input box empty and satisfy the trigger conditions to see the gray ghost suggestion. After confirming the main idea:
- Press
Tab(or→, or tap theTabbadge) to fill the suggestion into the editor; - Modify the text as needed;
- Manually click send.
If you are typing or have just pasted content, the preview will hide; after clearing the composer, the same suggestion will appear again without waiting for a second generation.
Configuration¶
In Plugins → Next-step suggestion, you can choose to follow the current session model or fix a lighter provider/model, and expand advanced restrictions. You can also set optional fields under the next-step-suggestion entry in cordis.patch.yml, for example:
- insert:
- id: next-step-suggestion
name: 'dsh-next-step-suggestion'
config:
maxInputBytes: 6000
maxOutputTokens: 4096
timeoutMs: 30000
# Optional explicit route override (defaults to the active session's model):
# provider: deepseek
# model: deepseek-flash
| Field | Default | Description |
|---|---|---|
maxInputBytes |
6000 |
Upper limit of UTF-8 bytes for the recent round summary sent to the auxiliary call. |
maxOutputTokens |
4096 |
Output token limit (compatible with thinking models that have unclosable reasoning tokens). |
timeoutMs |
30000 |
End-to-end timeout for a single background suggestion call (milliseconds). |
provider / model |
Follow session routing | Optional; must be specified simultaneously to override the current session model. |
Architecture Overview (Optional Reading)¶
- Host (
index.js, etc.): RegisterPOST /api/next-step-suggestion/suggestinctx.webServer, authenticated viactx.connection.requestRejection; validate agent idle andturn/end(completed); deduplicate by(sessionId, turn); preparectx.llm.prepareCallwith minimum reasoning effort and no tools; abort ongoing calls when the agent runs or the session is destroyed. - Client: Hook into
conversation.input.overlay, subscribe to session/input/turn related projections and input triggers; use--dsw-*theme tokens for styling; arbitratekeydownin the bubble phase after Lexical key priorities.
Use Cases and Notes¶
Suitable for developers doing long-term multi-agent dialogue on the Web who want to reduce “blank box staring” and require previewable, Tab-adopted, and never auto-sent behavior. Not suitable for treating every suggestion as a mandatory plan: generation has timeouts and token limits, and deliberately does not carry the full session and original tool outputs.
The DSH ecosystem advocates “everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation with DeepSeek / Huaxuan. For more interaction details, see Keyboard & Interaction Matrix in the repository README.
Conclusion¶
dsh-next-step-suggestion provides a controlled next-step instruction ghost preview in an empty composer in Harness Web, using a two-stage acceptance with Tab, background single-round single-call, session-isolated, and non-destructive display. Directory: skillhub.cn/plugins/Panmax/dsh-next-step-suggestion; Source code and docs: github.com/Panmax/dsh-next-step-suggestion.