Adds a sparkle button to the chat composer that rewrites a plain-text draft using the currently selected model and puts the result back in the input box.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:legendbone/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 持久化插件:在聊天输入框工具栏添加星光按钮,使用当前会话选择的模型优化提示词,并将结果回填到输入框。
功能
- 挂载到
conversation.input.right,位于模型选择器之前。 - 通过插件自己的
promptEnhancer/enhanceRemote 调用 Host 模型服务。 - 保留原始意图、语言和约束,只返回优化后的提示词正文。
- 成功后只替换草稿,不自动发送消息。
- 优化期间防止重复点击;组件卸载时取消请求。
- 如果等待期间草稿发生变化,保留用户的新内容。
- 提供中英文界面文案、加载状态和错误提示。
当前限制
- 仅支持纯文本提示词。
- 含结构化
@引用或处于命令输入阶段时按钮禁用,避免破坏引用芯片和命令状态。 - 已有附件保持不变。
- 每次主动优化都会产生对应模型提供商的 token 消耗。
项目结构
.
├── client.js # Client:Remote 挂载、按钮和草稿回写
├── index.js # Host:Remote 服务注册和模型流式请求
├── remote-info.js # 包内 Typert RemoteInfo 实现
├── cordis.patch.yml # Harness Loader 配置
├── package.json # 包、Client 和资源导出清单
├── icon.svg # 原创插件图标
├── locale/ # 插件管理器中英文元数据
└── docs/design.md # 设计、行为约束和验证记录
安装依赖
需要 Node.js 与 pnpm:
pnpm install --ignore-scripts
静态检查
node --check index.js
node --check remote-info.js
node --check client.js
安装到 Harness
在 Harness 插件管理器中选择从本地目录安装,并选择本仓库根目录。安装后启用 @local/dsh-prompt-enhancer。
也可以由具备 Harness 插件工具的智能体调用 plugin_manager.install_bundle,将仓库绝对路径作为 target。
使用
- 在聊天输入框输入纯文本提示词。
- 点击模型选择器左侧的星光按钮。
- 等待优化结果回填,确认后自行发送。
详细设计与当前验证范围见 docs/design.md。
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
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★ 10645
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★ 8283
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
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★ 5336
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1060
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.