dsh-prompt-forge

Prompt optimizer for the composer: a button in the tool row rewrites your draft through a model channel you already configured, streaming into a panel that floats above the composer without taking up layout. Your draft changes only when you click Accept — and Accept is refused while the answer is still streaming, so a half-finished reply can never be written back. It asks first when the draft carries @ references or attachments, which a whole-draft replace would flatten into plain text. No global keyboard shortcuts, and no API key ever reaches the browser: the host half makes the call.

Overview

Prompt optimizer for the composer: a button in the tool row rewrites your draft through a model channel you already configured, streaming into a panel that floats above the composer without taking up layout. Your draft changes only when you click Accept — and Accept is refused while the answer is still streaming, so a half-finished reply can never be written back. It asks first when the draft carries @ references or attachments, which a whole-draft replace would flatten into plain text. No global keyboard shortcuts, and no API key ever reaches the browser: the host half makes the call.

Installation

Install from GitHub

dsh plugin --profile web add github:zhaoxiagongsi001/dsh-prompt-forge

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.

Installation notes

  • May run terminal commands