tianji-qingtian/dsh-composer-polish
DeepSeek Harness 插件:输入框草稿一键 ✨ 润色,flash 改写、自动回填
Project Overview项目介绍
dsh-composer-polish is a native plugin built exclusively for the DeepSeek Harness composer, adding one-click draft polishing functionality to the DSH editor. After installation, it places a ✨Polish button right next to the send button in the composer input toolbar. To install the plugin, you first need to have the DSH CLI installed on your system PATH; if you have not installed DSH globally, you can use npx @deepseek-ai/dsh to run the install command. The install command is dsh plugin --profile <your-profile> add github:tianji-qingtian/dsh-composer-polish#v0.1.5, and after running it you just need to restart DSH to activate the plugin.
This plugin is designed for any DSH user who prefers to draft ideas first before polishing the final text. It works for all types of text, from professional emails and project documentation to casual chat messages, and it handles technical drafts with code blocks and technical terms without altering their content. When you finish your rough draft, you just click the Polish button, wait a few seconds for the deepseek-v4-flash model to finish the rewrite, and the polished text will be automatically filled back into the input box for you to review or edit before you send it. The plugin preserves your original language and tone, only removing redundant filler words without making unnecessary stylistic changes.
You do not need to build the plugin from source when installing, because the pre-built artifacts are already committed to the repository, so the install process finishes quickly without extra steps. There are a few known limitations to note: any draft longer than 50 KB is truncated client-side before being sent for polishing; if you edit the draft while polishing is in progress, the result is discarded to avoid overwriting your new changes. To protect privacy, the raw draft is never saved to the session log, only the final polished result is logged. The plugin is released under the open source MIT license, so it is free to use and modify.
这是一款为DeepSeek Harness(DSH)打造的原生插件,专为DSH编辑器提供一键文本润色功能。插件安装后会在输入框发送按钮旁添加一个✨润色按钮,用户写完零散草稿后点击按钮,即可调用deepseek-v4-flash模型零前缀重写草稿,润色后的文本会直接回填到输入框供用户预览编辑,无需额外发送对话。安装该插件需要先确保你的系统PATH中已有DSH CLI,再通过dsh plugin --profile <profile-name> add github:tianji-qingtian/dsh-composer-polish#版本号命令添加,重启DSH即可生效。
该插件面向所有习惯先打草稿再润色文本的DSH用户,适用于整理工作邮件、项目文档、日常对话内容等多种场景,哪怕是带有代码块、技术术语的技术草稿也能正常处理。典型工作流非常简单:输入零散草稿后点击润色按钮,等待数秒即可获得润色后的文本,你可以再微调编辑后再发送对话。插件会保留原稿的语言和用户原有语气,仅去除冗余内容,不会改变原文结构或修改代码、技术专有名词。
该插件安装不需要本地构建,因为预构建的产物已经提交到仓库中,仅依赖系统中安装好的DSH CLI即可。它存在几个已知限制:超过50KB的草稿会被客户端截断后再发送;如果润色过程中用户修改了草稿,结果会被丢弃以避免覆盖新编辑;原始草稿不会保存到会话日志中,仅润色结果会被记录。插件遵循MIT许可证开放源代码,允许免费使用和修改。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-composer-polish(tianji-qingtian/dsh-composer-polish)
仓库:https://github.com/tianji-qingtian/dsh-composer-polish
本站详情页:https://www.yhbd.top/plugins/tianji-qingtian-dsh-composer-polish/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 5 · 最近提交 2026-09-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add "github:tianji-qingtian/dsh-composer-polish#v0.1.6"
把 tianji-qingtian/dsh-composer-polish 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-composer-polish
One-click draft polisher for the DeepSeek Harness (dsh) composer. Type a rambling draft, hit the ✨ 润色 / Polish button in the input tool row, and a few seconds later the polished text replaces the draft in the input box — you preview, maybe edit, then send. No scoring, no evaluations: draft in → better draft out.
The harness is in developer preview and iterates quickly — expect compatibility-breaking changes.
中文说明见 README.zh.md。
Features
- ✨ button in the tool row — sits in
conversation.input.right, the official seat for clickable controls beside the send button. Disabled while the draft is empty or pure whitespace, shows a spinner while polishing, and never lets double-clicks fire a second request. - Zero-prefix flash rewrite — the host half rewrites the draft with a single
deepseek-v4-flashstream (reasoningEffort: 'off', ~2000 token cap). The main model never runs and its prefix cache is never touched. If the pinned model id is missing from the provider catalog, it retries once with a flash-class model discovered viallm.listModels. - Fill-back, not chat — the polished text goes straight into the input box through
inputActions.setDraft, the official public draft write path. You can edit it again or polish a second time; nothing is sent until you press send. Image attachments are never touched — only the text is replaced. - Fails silent — a failed or empty rewrite leaves the draft untouched (console log only, no toasts).
- Privacy — the
/polishcommand registers withrecordInput: false, so the raw draft never lands in the session log; only the polished result is recorded incommand/done. - No custom wire protocol — Client→Host rides the harness's built-in
commandsremote (the same channel the shipped/commands use). - i18n zh/en — button label and tooltip follow the harness
localeservice. - Language and voice follow the draft — the rewrite answers in the draft's language and keeps the user's voice (it strips filler but won't turn the text more formal, salesy, or robotic); code blocks, file paths, command lines, identifiers, and technical terms stay verbatim.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
extracurricular-ai/dsh-filesnap
SenmuuuuW/dsh-whale-report
SnowCrescenter-tech/dsh-milestone
PerryLink/dsh-checkpoint-rewind
XieZongChen/dsh-md-notes
TencentCloud/tencentcloud-agentobs-sdk-dsh