dsh-prompt-optimizer

Rewrites the composer draft into a precise prompt with a configurable model and a fully editable rewriting instruction; reads the content behind @file, @folder and @session references for context and keeps the reference chips intact; offers a one-click undo that restores the text you wrote yourself, and places the button in either composer toolbar with an adjustable colour and size.

Overview

Rewrites the composer draft into a precise prompt with a configurable model and a fully editable rewriting instruction; reads the content behind @file, @folder and @session references for context and keeps the reference chips intact; offers a one-click undo that restores the text you wrote yourself, and places the button in either composer toolbar with an adjustable colour and size.

Installation

Install from npm

dsh plugin --profile web add @huanhuan123/dsh-prompt-optimizer

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:qwh15622336051/dsh-prompt-optimizer

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.