DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-star-prompt-enhance

d

dsh-star-prompt-enhance

Manifest valid

A star button beside the composer that rewrites the current draft into a clearer, more complete prompt with the session default model; it reads up to five recent user prompts from the same session as

UI (client)hasBundlePatch

dsh-star-prompt-enhance

A DeepSeek Harness (dsh) plugin that adds a star button beside the message composer. One click rewrites the current draft into a clearer, more complete prompt — using the last few prompts of the same conversation as read-only context — then writes the result back into the draft so you can review it before sending.

What it does

  • Adds a small star (sparkle) button to the composer's right-side control row, next to the send button.
  • On click, the Host half reads up to the last five user prompts of the current session from the local session log, then asks the currently selected default model (agentDefaultModel.currentSelection()) to rewrite the draft: it keeps your intent, facts, URLs, paths and constraints, resolves references like "the second one" against the recent conversation, adds goal/scope/steps/acceptance criteria where they are missing, and never invents requirements.
  • The rewritten text replaces the draft in place via the composer's setDraft, so you can edit it, undo with the editor's own undo, or send it.
  • The button shows busy / done / error states, is disabled while the composer is submitting, and never sends the message for you.

Install

Requires dsh 0.2.1 or newer.

dsh plugin add dsh-star-prompt-enhance

Or from this repository directly:

dsh plugin add github:zhouzhou5210/dsh-star-prompt-enhance

Conversation context

  • The Host reads the session's own user/message events through the optional sessionQuery service: the last 5 prompts, each clipped to 1200 characters and 6000 characters in total.
  • The prompts are untrusted data used only to understand the draft; the model is told not to follow instructions inside them and not to add requirements the draft does not imply.
  • If sessionQuery is unavailable or the session cannot be read, the rewrite degrades to the draft alone instead of failing.
  • Only this session's user prompts are used — never other sessions, workspace files or attachments.

Privacy and behaviour

  • The rewrite call happens in the Host process through the public llm service; no API key ever reaches the browser.
  • The current draft plus up to five recent user prompts of this session are sent to the model with a short system prompt. Nothing else is sent, and nothing is written to disk by the plugin.
  • The button does nothing when the draft is empty or when the composer is mid-submit.
  • The HTTP endpoint is same-origin only and goes through the host's connection fence (Host/Origin check plus login cookie).

Layout

FilePurpose
index.jsHost half: registers POST /dsh-star-prompt-enhance/enhance on the host web server and calls llm.prepareCall / llm.stream.
client.jsBrowser half: registers the star button in the conversation.input.right slot and the zh/en strings.
cordis.patch.ymlInserts the plugin row into the profile.
locale/*.jsonPlugin metadata and display strings.

License

MIT

Versions

Latest versionPublishedSize
1.0.0——

Comments

Loading…

Similar plugins

dsh-prompt-enhance

by iStarryDust

The star button in the composer enhances the draft with the session model and toggles back to the original text; the enhancement template files are editable.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add @istarry/dsh-prompt-enhance

One-click prompt enhancement for the DeepSeek Harness composer: a chip beside the model selector rewrites the draft into a structured prompt using the session's own model.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-prompt-enhance

by xindady

Adds a prompt enhancement button to the composer toolbar that rewrites the draft through a model call, keeps @file references verbatim, and offers one-click undo.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-prompt-enhancer

by hzys7

Adds a sparkle button beside the model picker that rewrites the current draft into a spec sized to the draft — two or three steps for a small ask, a longer checklist only when the request has several

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add dsh-prompt-expander

by xiaoshengliang2002

Enhance the composer draft before sending: a sparkle button in the DSH web GUI rewrites your prompt in a structured or light mode, with an original-versus-enhanced preview.

Manifest valid

★ 0

MIT

JavaScript

Sep 15, 2026

dsh plugin --profile web add dsh-prompt-boost-pro

by sun04222

Adds an ✦ button to the DSH composer that rewrites the current draft into a clearer, more specific prompt in the same language, with one click to restore the original, plus an enhance_prompt tool the

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add dsh-prompt-enhance