DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

SongMiao-tech /

SongMiao-tech/dsh-prompt-optimizer

已验证

Prompt optimizer plugin for DeepSeek Harness: rewrite a composer draft into a clearer, more executable prompt with one click.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@4e304b82

dsh-prompt-optimizer

A prompt-optimizer plugin for DeepSeek Harness (dsh). It adds an ✨ Optimize Prompt button right below the chat composer: click it to rewrite your draft into a clearer, more executable prompt — then apply it back into the input box with one click.

Features

  • Button rendered under the composer (via the conversation.composer.dock slot)
  • Reads the current composer text on click; friendly prompt when empty
  • Rewrites the draft through the host's ctx.llm with a fixed six-step procedure (intent → context → hidden constraints → gaps → restructure → language check)
  • Before/after dialog with a Replace into input button that writes the result back
  • Output always matches the input language; code, terms, and URLs are preserved

Requirements

  • DeepSeek Harness dsh (web profile) with a configured model (e.g. a DeepSeek API key in Settings → Models)

Install

dsh plugin --profile web add https://github.com/SongMiao-tech/dsh-prompt-optimizer

Or clone and install from source:

git clone https://github.com/SongMiao-tech/dsh-prompt-optimizer.git
cd dsh-prompt-optimizer
pnpm install
pnpm run build

Then register the bundle in your profile's cordis.patch.yml:

- insert:
    - id: prompt-optimizer
      name: '@deepseek-ai/dsh-prompt-optimizer'
    - id: ui-prompt-optimizer
      name: '@deepseek-ai/dsh-client-ui-prompt-optimizer'

Usage

  1. Type a rough draft in the composer
  2. Click ✨ Optimize Prompt
  3. Review the rewrite in the dialog
  4. Click Replace into input to swap it in, then send

Development

pnpm install
pnpm run build     # tsc + tsdown for both packages
pnpm run test      # vitest unit tests

Structure

.
├── cordis.patch.yml            # bundle manifest patch (host + client rows)
├── packages/
│   ├── prompt-optimizer/       # host half: promptOptimizer Remote over ctx.llm
│   └── ui-prompt-optimizer/    # client half: dock button, dialog, write-back
└── scripts/                    # vendored tsdown client-bundle preset

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 4e304b82f5fb

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于