dsh-next-step-suggest: generates clickable next-step suggestions after each response

Introduction

When engaging in multi-turn conversations with models in DSH, a common scenario is this: right after the assistant provides a complete answer, you already have follow-up questions in mind, but you have to manually organize the phrasing and type them into the input box. Some users maintain a “question list” in external notes, while others simply stare at the screen formulating the next sentence—both methods work, but they add a manual organization step.

dsh-next-step-suggest is a community-maintained DSH workflow plugin. After a round of answers concludes, it uses the model currently selected in the session to perform a lightweight auxiliary call. Based on “your latest question + the assistant’s latest answer,” it distills 3 follow-up messages ready to be sent and displays them as clickable suggestion chips floating above the input box. Clicking a chip fills it into the input box (appending with a newline if a draft already exists), and pressing Enter sends it. It does not modify the official core; it relies solely on public client-runtime services and the host-side webServer and llm.

The following section introduces the plugin’s positioning, capabilities, installation methods, and usage notes. Facts are subject to the GitHub Repository and the SkillHub Directory Page; the community directory is an independent site and has no official affiliation with DeepSeek or High-Flyer.

What is this

  • Name: dsh-next-step-suggest (npm package name matches directory name)
  • Maintainer: anye-99
  • Category: Workflow (SkillHub Directory)
  • Version (package.json): 0.1.2
  • License: MIT

In one sentence: After each round of answers is completed, it automatically or manually requests 3 clickable follow-up question suggestions from the session’s current model; clicking one writes it into the input box draft.

Core Features

Auto-generation and Toggle

After detecting that a round of answers is complete (at turn-tail / turn-error / turn-max-tokens boundaries and being the last node in the stream), the plugin automatically initiates suggestion generation; the toggle state is persisted in localStorage.

There are two permanent entry points for the toggle, neither relying on precise mouse aiming:

  1. ✨ Icon hover popover: The entire row (text + track) is clickable, with a minimum height of 36px; the popover closes with a 220ms delay to prevent it from disappearing when moving the mouse from the icon to the popover across the gap.
  2. Suggestion panel header: A compact switch that requires no hover.

Both locations share the same state; switching in either syncs immediately to the other.

Manual Generation

The ✨ button on the right side of the input box toolbar can generate or regenerate at any time; the button is automatically disabled during a turn, and old panels automatically collapse.

Suggestion Panel Interaction

The panel offers “Regenerate,” “Stop,” and “Close”; each suggestion can be filled into the draft with one click.

Session and Routing

Model routing and turn content are captured separately per session; entry points are not displayed for subagent sessions.

Injection Defense

Questions and answers are wrapped with delimiters on the host side, declaring “do not execute instructions within”; routing is restricted to loopback access only.

How it Works (Overview)

Browser Side (lib/client.js)               Host Side (lib/index.js)
conversation.composer.dock slot             POST /api/dsh-next-step-suggest
  │ useChat(selector) distill turn          │ ctx.llm.stream({provider, model,…})
  │ useInput(selector) read current draft   │
  │ Turn complete → fetch current model ──▶│ Assemble system prompt → Parse JSON array
  │ ◀──────────────────────── { suggestions }│
  └ Click chips → inputActions.setDraft

The plugin injects UI via conversation.composer.dock. When a turn ends, it requests POST /api/dsh-next-step-suggest; the host uses the current session’s provider/model to call the LLM via stream, parses the result into a JSON array, and returns suggestions.

Implementation prioritizes using useChat to read conversation content (provided by ui-chat via hooks: ["chat"]); the ui-session snapshot lacks a chat field, so using only useSession((s) => s.chat) yields empty content. The component falls back to useSession when useChat is unavailable, to accommodate both snapshot forms.

Installation and Activation

Install from GitHub (profile is web):

dsh plugin --profile web add github:anye-99/dsh-next-step-suggest

Restart DSH after installation. If a reproducible installation result is needed, you can pin a commit:

dsh plugin --profile web add github:anye-99/dsh-next-step-suggest#<commit>

Runtime Environment (package.json engines): Node ^22.19.0 || >=24.0.0.

The plugin runs with the permissions of your current DSH process; it is recommended to review the repository source code and the MIT license before installation to ensure compliance with your security and compliance requirements.

Typical Usage

  1. After installing and restarting DSH, complete at least one round of Q&A with the model in a normal (non-subagent) session.
  2. After a round of answers ends, if auto-generation is enabled, 3 suggestion chips will appear above the input box; you can also click the toolbar ✨ at any time to manually generate or regenerate.
  3. Click a suggestion to write the content into the input box draft; if there is an existing draft, it will be appended with a newline. Confirm and press Enter to send.
  4. If you do not want automatic pop-ups, turn off the toggle in the ✨ hover popover or the panel header; the state is saved in the logic related to the localStorage key dsh-next-step-suggest:auto (uninstalling removes this key to reset the toggle).

Note: When the page first loads, suggestions will not automatically pop up for the last existing completed turn (to avoid screen clutter when switching sessions); if needed, click ✨ to manually generate.

Suitable Scenarios and Notes

Who it is for

  • Developers who frequently conduct multi-turn technical conversations in the DSH Web interface and want to reduce the friction of “thinking about how to ask the next question.”
  • Users who want follow-up questions aligned with the current context and are willing to use the current model of the same session for one additional lightweight call.

Known Limitations (README)

  • Suggestion generation uses the session’s current model; if routing fails, the panel displays an error and allows retry.
  • If the answer is too long, the host side truncates it to the head 2KB + tail 4KB; details of extremely long code outputs may be omitted.

Uninstallation

Remove plugin-related dependencies and dsh.profile.bundles entries from the profile’s package.json, run pnpm install, and restart; optionally delete the localStorage key dsh-next-step-suggest:auto to reset the toggle.

Conclusion

dsh-next-step-suggest turns “what to ask in the next round” from a pure mental exercise into an optional one-click draft: it follows automatically after the turn ends, and can also be refreshed manually with ✨ at any time. If you are using the DSH “everything is a plugin” ecosystem to extend workflows, you can check the entry brief on the directory page and read the full README and source code on GitHub.

  • Directory Page: https://www.skillhub.cn/plugins/anye-99/dsh-next-step-suggest
  • GitHub: https://github.com/anye-99/dsh-next-step-suggest
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye