Skip to main content
Z

dsh-next-step-hint

zevgit/dsh-next-step-hint

Ghost-text next-step suggestion in the composer: after each turn one background call on the session's own model writes the message you are most likely to send next, and Tab fills it into the draft.

Install

dsh plugin --profile web add github:zevgit/dsh-next-step-hint

README

Next Step Hint

A ghost-text next-step suggestion inside the DSH composer. After every turn ends, one background call on the session's own model writes the message the user is most likely to send next; it appears as placeholder text in the empty composer. Tab fills it into the draft, Esc ignores it, and nothing is ever sent for you.

What it does

  • One line, in your voice. The suggestion is a single message addressed to the assistant, in the language of the conversation, at most 240 characters. It is a prediction of your next message, not a plan from the agent.
  • Grounded in the turn that just finished. The call sees the session topic, the standing goal, the task list the turn worked from and the task still open, the last few requests you wrote yourself, and the reply that just ended.
  • Closes work out instead of inventing more. When the goal reports complete, or every task on the list is completed, the prompt switches from "what is next" to "what is still missing before this is done" — review the diff, run the checks, commit, report — and a session that already got its wrap-up line does not get asked again on every later turn.
  • Survives switching sessions. The suggestion is appended to the session log as an ignorable plugin record and projected as nextStep, so leaving a conversation and coming back shows the same line instead of paying for another call. A session that never had one gets a fresh suggestion when it is first shown.
  • Never blocks the turn. The prediction runs after turn/end, in the background, with a 90 s timeout; a failed or declined call simply leaves the composer empty. Subagent sessions are skipped, since their composer is never shown.
  • Cheap by construction. The call reuses the provider and model the session itself just ran on, asks for the lowest reasoning effort the model advertises (off, minimal, low), and caps the output at 700 tokens so a thinking trace cannot eat the sentence.

Install

dsh plugin add github:ZevGit/dsh-next-step-hint

Or install the prebuilt tarball, which skips the git clone:

dsh plugin add https://github.com/ZevGit/dsh-next-step-hint/releases/latest/download/dsh-next-step-hint.tgz

Both carry the same dsh.bundle manifest. Restart after installing; a browser UI change is part of the plugin.

Requirements

  • DeepSeek Harness >=0.2.2-rc.1 <0.3.0 (on Node 22 or newer).
  • A session model that accepts a completion request — the plugin uses the provider and model already configured for the session. No API key of its own is needed.
  • The Web client for the composer overlay. The Host half (prediction and session projection) works without it, but there is nothing to show the line in.

Behaviour worth knowing

  • Each finished turn with a model route costs one extra model call. It is not free, and it is not instantaneous: measured calls land between five and twenty-five seconds, which is why the line usually appears a moment after the reply.
  • The suggestion is text, never an action. Tab copies it into the composer so it stays editable; you still press send.
  • A suggestion is tied to the prompt revision that produced it. When the prompt changes in a new version, older suggestions are regenerated rather than shown under the new contract.
  • Declining is normal: the model may answer null when every concrete next move is arbitrary, and then no ghost text is shown.

Licence

MIT — see LICENSE.

Related plugins