dsh-prompt-optimizer

A prompt optimizer in the composer input tool row: pick a category and a template, then ✨ rewrites the draft in place with one-click undo. Pick from the Basic, Context and Image categories; you can cancel a run, and it shows elapsed time and token usage. Ships 15 templates covering task-instruction rewriting, step planning, safety-research framing, system-prompt role cards, and text-to-image / image-to-image prompts; context templates read the recent turns of the session for coreference resolution. Calls go through the host model service, and a settings section exposes the model and the budgets. Output guards check that user-written constraints survive, warning rather than auto-retrying. Adapted for dsh 0.1.7 and 0.2.

Models & CostsNOASSERTION☆ 0

Overview

A prompt optimizer in the composer input tool row: pick a category and a template, then ✨ rewrites the draft in place with one-click undo. Pick from the Basic, Context and Image categories; you can cancel a run, and it shows elapsed time and token usage. Ships 15 templates covering task-instruction rewriting, step planning, safety-research framing, system-prompt role cards, and text-to-image / image-to-image prompts; context templates read the recent turns of the session for coreference resolution. Calls go through the host model service, and a settings section exposes the model and the budgets. Output guards check that user-written constraints survive, warning rather than auto-retrying. Adapted for dsh 0.1.7 and 0.2.

Installation

Install from GitHub

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

Installation notes

  • May run terminal commands