tianji-qingtian/dsh-composer-polish 预览 preview

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许可证开放源代码,允许免费使用和修改。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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-flash stream (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 via llm.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 /polish command registers with recordInput: false, so the raw draft never lands in the session log; only the polished result is recorded in command/done.
  • No custom wire protocol — Client→Host rides the harness's built-in commands remote (the same channel the shipped / commands use).
  • i18n zh/en — button label and tooltip follow the harness locale service.
  • 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 →

← 上一个 Prev dsh-bell-notify 下一个 Next dsh-shell-command →