dsh-prompt-optimizer

Rewrites the message you type into the DSH composer into a precise prompt before the model ever sees it, with one cheap side call on the session's own route. The rewritten text is what gets logged and sent, so the transcript always shows exactly what the model received; hover the whale to compare before and after. Slash commands, very short or very long messages and image-only messages are left alone, and any failure sends your text untouched. The composer whale is the switch: dark silhouette when off, gold when on.

Overview

Rewrites the message you type into the DSH composer into a precise prompt before the model ever sees it, with one cheap side call on the session's own route. The rewritten text is what gets logged and sent, so the transcript always shows exactly what the model received; hover the whale to compare before and after. Slash commands, very short or very long messages and image-only messages are left alone, and any failure sends your text untouched. The composer whale is the switch: dark silhouette when off, gold when on.

Installation

Install from GitHub

dsh plugin --profile web add github:devzer0o0/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.