dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
在输入栏添加按钮,可优化当前提示词,或结合会话与项目上下文设计下一步提示词。
A prompt optimizer for the DeepSeek Harness (DSH) composer. It turns a non-empty draft into a clearer, more actionable instruction and places the result back in the composer for you to review.
Prompt for Me runs inside a DSH Web session. It combines a locally bundled optimization prompt with the draft you enter, then calls the model route selected in DSH. The generated text streams into the composer; you decide whether to edit or send it.
The built-in prompt is a local template that identifies the assistant as a DeepSeek AI coding assistant. Prompt generation uses the model configured in DSH; the plugin does not call a separate prompt-optimization service.
Prompt optimization is the active generation feature. It requires text in the composer. Empty-draft prompt design and project-context collection are retained in the codebase but currently disabled. Optimization sends the draft and the configured local prompt to the selected DSH model; it does not collect project files or session history.
The request goes to the provider/model selected in DSH (or the optional custom route in Prompt Assistant settings). The provider's own data-handling terms apply to that request.
| Action | Result |
|---|---|
| Click Prompt Assistant with a non-empty draft | Streams an optimized instruction into the composer. |
| Click again while generation is running | Cancels the current request. |
Press Ctrl+Z / Ctrl+Y in the composer | Moves backward or forward through generated draft history. |
| Use Enter after reviewing | Sends the visible composer draft through DSH. |
An empty draft does not start prompt generation while prompt design is disabled.
Version 1.0.0 targets DeepSeek Harness 0.2.x (0.2.0-rc.1 or newer).
Install a versioned package archive from this repository's GitHub Releases page:
dsh plugin --profile web add https://github.com/XXXXXQ-0206/dsh-prompt-for-me/releases/download/v1.0.0/dsh-prompt-for-me-1.0.0.tgz
dsh web
For a fork or a later release, replace the owner, tag, and version with the matching values. A pinned Git source can also be installed with:
dsh plugin --profile web add github:XXXXXQ-0206/dsh-prompt-for-me#v1.0.0
Restart dsh web after installation or update.
dsh plugin --profile web update dsh-prompt-for-me
dsh plugin --profile web remove dsh-prompt-for-me
Open Settings → Prompt Assistant.
Project-context controls are hidden while project-context collection is disabled.
Requirements: Node.js 22.19 or newer.
npm ci
npm run build
npm test
Run the complete local check before proposing a change:
npm run check
npm run check rebuilds the generated files, runs the test suite, and checks the package contents with 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 Web profile bundle configuration
scripts/build.mjs Build host and client artifacts
lib/ Generated package artifacts
Bug reports and focused pull requests are welcome. Before opening a pull request:
npm run check and include the result in the pull request.See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md for project policies.
Why does an empty composer draft do nothing?
Empty-draft prompt design is currently disabled. Enter a draft before using Prompt for Me.
Does this plugin send project files to the model?
The active optimization path sends the composer draft and the configured prompt. Project-context collection is currently disabled.
Which model generates the result?
The current DSH session's selected model by default. You can pin a DSH provider/model in Prompt for Me settings.
Can I change the default prompt?
Yes. The prompt rules, template few-shot section, and custom few-shot examples can be edited in settings. Restore-default controls are available for the two template sections.
This project is licensed under the MIT License. See LICENSE.
The default prompt template is derived from Trae and adapted for this plugin. Its assistant identity and integration have been modified for this project. This attribution does not imply endorsement or affiliation.
This software is provided “AS IS”, without warranties or guarantees of any kind. To the fullest extent permitted by applicable law, the authors and contributors are not liable for any direct, indirect, incidental, special, exemplary, or consequential 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.