dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
输入框下方「优化提示词」按钮:一键把草稿重写为更清晰、更可执行的提示词,弹出前后对比,支持一键替换回输入框。
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.
conversation.composer.dock slot)ctx.llm with a fixed six-step procedure (intent → context → hidden constraints → gaps → restructure → language check)dsh (web profile) with a configured model (e.g. a DeepSeek API key in Settings → Models)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'
pnpm install
pnpm run build # tsc + tsdown for both packages
pnpm run test # vitest unit tests
.
├── 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