Adds a one-click prompt optimization button to the DSH composer, with undo and an optional dedicated optimizer model.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:du-u-uck/DSH-Prompt-Optimization
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
DeepSeek Harness web plugin that adds a prompt optimization action beside the composer. The optimized draft replaces the current input and can be restored with one click. A dedicated optimizer model can be selected in Settings → Prompt Optimization.
Features
- One-click optimization — sends the current draft through a one-off host-side model request and writes the result back to the composer.
- Undo — restores the original draft for the current session.
- Default model — uses the current session model when no optimizer model is configured, otherwise falls back to the deployment default.
- Prompt Optimization settings — lists the same providers and models available in Settings → Models.
Screenshots
Before

After

Install
dsh plugin --profile web add github:du-u-uck/DSH-Prompt-Optimization
Restart DSH Web after installation.
Local development
pnpm install
pnpm build
powershell -NoProfile -File scripts/install-web.ps1
Architecture
- Host half:
lib/index.js - Browser client:
lib/client.js - Bundle manifest:
cordis.patch.yml
Limits
- Replacing the draft loses reference chips such as
@file; undo restores the saved text draft. - Optimization rewrites wording but does not add requirements that were not present in the draft.
- Requests are capped at 256 KB input, 4096 output tokens, and a 120-second timeout.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8370
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8370
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 4036
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 4004
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 3992
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1418
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.