linhx1999/dsh-writing-pad
DeepSeek Harness 网页界面的 Markdown 写作板:支持每会话编辑、预览及会话内 AI 辅助重写。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness Web. It adds a session-level Markdown writing pad that docks to the right of the conversation window, so all drafting, previewing, and AI-powered partial rewriting can happen without leaving the DSH workflow. To install the plugin, you first need to have the dsh CLI installed on your system. Once the CLI is set up, you can run the command dsh plugin --profile web add dsh-writing-pad to install the latest stable version to your DSH web profile, then start the DSH web interface with dsh web.
After installation, you can open the writing pad by clicking the toggle in the input box toolbar. You can then type or paste Markdown content, and toggle between edit and preview mode as needed. When you select text to rewrite, your cursor automatically jumps to the extra requirements input field, and you can save a default requirement for future use. After you enter your requirements and send the request, the AI will return modified content that displays a diff of changes, and you can accept or reject each change individually. If you leave the diff view without taking action, all changes are accepted by default.
The plugin isolates draft content per session, so drafts from different sessions do not interfere with each other. It supports up to 50 levels of undo, full copy, and clearing all content with one click. All drafts are stored only in the host process memory, and never create or modify local workspace files automatically. If you restart DSH, drafts can be recovered from recent writing requests and successful tool results, but unsent manual edits cannot be recovered across restarts. To uninstall the plugin, you can run the command dsh plugin --profile web remove dsh-writing-pad. This project is released under the open source MIT license.
这是一款专为 DeepSeek Harness Web 打造的原生插件,提供会话级 Markdown 写作板功能。写作板直接停靠在对话窗口右侧,让文档起草、预览和 AI 局部改写都能保持在同一个工作流中,不需要切换窗口或额外工具。用户可通过输入框工具栏展开收起写作板,切换会话或发起新会话时写作板会保持原有状态,不会意外关闭。
插件针对文档创作场景做了优化,选中正文后可以输入多行改写要求,还能保存默认要求并调整输入区域高度。当用户请求起草、续写文本时,模型会优先调用工具生成完整草稿,选区改写也有专门的工具支持,工具被调用时写作板会自动打开,修改结果会展示差异并定位到首个变更点。
插件遵循会话级状态隔离,不同会话的草稿互不干扰,支持编辑/预览切换、全文复制、清空内容以及最多50步撤销操作。草稿仅暂存在宿主进程内存中,不会自动创建或修改本地工作区文件。安装需要先配置好dsh CLI,通过dsh plugin命令即可安装,卸载也只需要一行命令,项目采用MIT许可证开源。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-writing-pad(linhx1999/dsh-writing-pad)
仓库:https://github.com/linhx1999/dsh-writing-pad
本站详情页:https://www.yhbd.top/plugins/linhx1999-dsh-writing-pad/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-25 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-writing-pad
把 linhx1999/dsh-writing-pad 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-writing-pad
面向 DeepSeek Harness Web 的会话级 Markdown 写作板。它直接停靠在对话右侧,让起草、预览和 AI 局部改写保持在同一个工作流中。

亮点
- 随时打开:可从输入框工具栏展开或收起写作板,并在切换会话或发送新会话首条消息时保持打开状态。
- 专注局部改写:划选正文后可输入多行额外要求、保存默认要求并调整输入区域高度。
- 写作主动入板:用户请求起草、撰写、续写或生成可用文本时,模型会优先通过
write_full_draft生成完整候选稿;选区改写则使用rewrite_selected_text。调用工具时写作板会自动打开,候选修改到达后会展示 Diff 并定位首个变更。 - 状态清晰:界面会反馈暂存、复制、生成、待审核和失败等操作状态。
- 跟随宿主语言:客户端界面随 dsh 的中文/English 设置即时切换。
- 对话保持简洁:写作板非空时,完整草稿会作为独立上下文随主输入框消息送达模型;消息本身保持用户原文,不会显示或标记为“额外要求”。
- 会话级状态:不同会话的草稿互不影响,支持编辑/预览、全文复制、清空以及最多 50 步撤销。
- 不修改工作区文件:草稿暂存在 Host 内存中,不会自动创建或覆盖项目文件。
安装
需要先安装 dsh CLI。将最新稳定版插件安装到 Web profile:
dsh plugin --profile web add dsh-writing-pad
启动 Web 界面:
dsh web
本地开发时,可一键打包、通过 npm latest 标签运行最新版 dsh、重装当前插件并启动 Web:
pnpm dev
发布
先更新并提交 package.json 中的版本号,确保 npm login 已完成且工作区干净,然后运行:
pnpm publish
发布前钩子会执行类型检查、测试和打包校验,随后直接发布到 npm,不再要求额外输入确认。发布后钩子会验证版本并创建本地 v<version> 标签。脚本不会推送标签,确认无误后按提示手动推送。
使用
- 在输入框工具行点击“写作板”。
- 输入或粘贴 Markdown 正文,并按需切换“编辑/预览”。
- 选中需要修改的内容,光标会自动跳到额外要求输入区。
- 输入要求;Enter 发送,Shift+Enter 换行,也可将当前内容设为默认。
- 模型写回后审核 Diff,选择“接受修改”或“拒绝修改”;直接离开审核则默认接受。
语言
写作板的客户端控件、状态提示和对话中的写作请求摘要随 dsh 宿主语言(中文/English)自动切换。额外要求为空时,插件会按发送时的界面语言选取默认改写要求并将其随请求发送;用户保存的默认要求始终保留原文。Host 工具描述、工具结果标记、XML 线格式和重放解析保持现有中文规范,不随界面语言改变。
数据与恢复
- 编辑内容会防抖暂存在当前 Host 进程中。
- 写作板非空时,从主输入框发送的每条真实用户消息都会携带独立的完整草稿上下文;用户原文位于上下文之外。选区改写请求仍通过自身的“额外要求”字段携带全文,两者都只产生一条 user 消息,界面会隐藏其中的全文。
- XML 中的草稿、额外要求和选区元素采用分行布局,便于直接检查会话记录,同时不改变 CDATA 中的原始文本。
- 重启后可从最近的写作请求和成功的写作工具结果恢复草稿及待审核候选;旧版
writing_draft事件仍可兼容恢复,当前浏览器会重放已保存的审核决议。 - 尚未随任何用户消息发送的手工编辑不能跨 Host 进程恢复。
卸载
dsh plugin --profile web remove dsh-writing-pad
许可证
MIT
ZSeven-W/dsh-openpencil
joeseesun/qiaomu-rss-dsh
LAU-MARS/dsh-cad
penguin-oo/dsh-bookmarks
tylina/dsh-tylina
SherUnlocked-4869/dsh-plugin-msg-nav