DSH Plugin dsh-prompt-expansion: Rewriting Prompts into Executable Structured Specifications

dsh-prompt-expansion is a DSH plugin maintained by qing-gu-web. It rewrites prompts into numbered requirement specifications by default, via the Composer button, the optimize_prompt tool, or the /optimize command, while preserving variables, code blocks, URLs, and numeric values both before and after rewriting. It can be installed via npm or the Discover index, and supports configuring modelSource, goal, format, and other options in cordis.patch.yml. In the event of a failure or validation error, the original input is returned unchanged. Prompts are sent exclusively to the selected model endpoint.

Read More