dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
一键提示词优化:按可配置策略改写输入框草稿,提供可编辑模板、Few-shot 示例、指定模型与推理强度。
One button prompt optimizer with configurable strategy.
A prompt optimizer for the DeepSeek Harness (DSH) composer. It turns a rough draft into a clearer, more actionable instruction and streams the result back into the composer for you to review — one click, with the model and generation strategy fully under your control.
Ctrl+Z / Ctrl+Y in the composer.Requires DeepSeek Harness 0.2.x (0.2.0-rc.1 or newer).
Install from npm:
dsh plugin --profile web add @panando/dsh-prompt-optimizer
Or from GitHub:
dsh plugin --profile web add github:panando/dsh-prompt-optimizer
Restart DSH afterwards.
Update and remove:
dsh plugin --profile web update @panando/dsh-prompt-optimizer
dsh plugin --profile web remove @panando/dsh-prompt-optimizer
| Action | Result |
|---|---|
| Click the optimizer with a non-empty draft | Streams an optimized instruction into the composer. |
| Click again while generation runs | Cancels the current request. |
Ctrl+Z / Ctrl+Y in the composer | Moves backward / forward through generated draft history. |
| Press Enter after reviewing | Sends the visible composer draft through DSH. |
Open Settings → 提示词优化 / Prompt Optimizer.
Project-context controls are hidden while project-context collection is disabled.
Requires Node.js 22.19 or newer.
npm ci
npm run build # generate lib/ artifacts
npm test # run the test suite
Run the complete local check before proposing a change:
npm run check # build + test + npm pack --dry-run
src/index.cjs DSH host integration, model routing, and RPC
src/core.cjs Prompt assembly, settings, and bounded request data
src/optimizer-template.cjs Local default optimization prompt and few-shot section
src/client-factory.cjs Composer button and settings interface
src/features.cjs Feature switches for archived capabilities
cordis.patch.yml DSH bundle configuration (enables the plugin entry)
scripts/build.mjs Build host and client artifacts
lib/ Generated package artifacts
Issues and focused pull requests are welcome. Please describe the user-visible
problem, keep changes focused with tests, and include the result of
npm run check.
Why does an empty composer draft do nothing? Empty-draft prompt design is currently disabled. Enter a draft first.
Does this send my project files to the model? No. The active path sends only the composer draft and the configured prompt. Project-context collection is disabled.
Which model generates the result? The model selected for the current DSH session by default; you can pin a specific one in settings.
Can I change the default prompt? Yes — the Prompt half, the Few-shot half, and your custom few-shot examples are all editable in settings.
MIT — see LICENSE.
This project is a fork of dsh-prompt-for-me by the dsh-prompt-for-me contributors (MIT). We gratefully acknowledge the original authors for the plugin architecture, the host/client split, the model-catalog and settings services, and the streaming composer integration that this project builds on.
Changes made in this fork:
@panando/dsh-prompt-optimizer; package name, plugin id, RPC route, settings storage keys, and the CSS prefix (dsh-pfm- → dsh-po-) were renamed.flex-basis was resolving against the wrong axis).The default prompt template is derived from Trae and adapted for this plugin. This attribution does not imply endorsement or affiliation.
This software is provided “AS IS”, without warranties of any kind. To the fullest extent permitted by law, the authors and contributors are not liable for any damages arising from the use of this software. You use it at your own risk and are responsible for complying with applicable laws and provider terms. Do not use this software for unlawful purposes.