Adds a prompt enhancement button to the composer toolbar that rewrites the draft through a model call, keeps @file references verbatim, and offers one-click undo.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:xindady/dsh-prompt-enhancer
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
This plugin publishes its README in Chinese only.
一个 DeepSeek Harness 插件:在输入框工具栏加一个 ✦ 按钮,点击即可把当前草稿改写成更清晰、更具体的提示词。
- 结果直接写回输入框,可撤回
- 草稿中的
@文件引用逐字保留 - 输入框为空时不显示按钮
使用
- 在输入框里写下你的提示词(为空则按钮不显示)
- 点击工具栏右侧的 ✦ 图标
- 稍等片刻,草稿会被替换为优化后的提示词
- 不满意就点 撤回,恢复原文
按钮有三种状态:
| 状态 | 外观 | 说明 |
|---|---|---|
| 待优化 | ✦ | 点击开始优化 |
| 优化中 | 旋转图标 | 自动禁用,防止重复点击 |
| 可撤回 | ↺ 撤回 | 点击恢复原始提示词 |
优化完成后如果手动修改了草稿,撤回按钮会自动变回 ✦。
安装
方式一:插件管理器(推荐)
在对话中让 Agent 安装本目录,或使用插件管理工具:
plugin_manager { "action": "install_bundle", "target": "<本目录绝对路径>" }
安装后可在 侧边栏 → 插件 页看到「提示词增强」,可随时启停。
方式二:手工挂载
在 profile($DSH_HOME/profiles/<name>)下:
- 让包可被解析:
pnpm add link:<本目录绝对路径> - 在
cordis.patch.yml追加:
- insert:
- id: prompt-enhancer
name: 'dsh-prompt-enhancer'
替换已安装的插件后需重启进程才能加载新代码。
要求
- Harness 已配置可用的模型服务
- 优化使用当前部署的默认模型,可在插件配置中指定
provider/model覆盖
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
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★ 10703
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★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
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★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.