linhx1999/dsh-writing-pad 预览 preview

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许可证开源。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

npm version npm downloads license

简体中文文档 English documentation

面向 DeepSeek Harness Web 的会话级 Markdown 写作板。它直接停靠在对话右侧,让起草、预览和 AI 局部改写保持在同一个工作流中。

dsh-writing-pad 在 DeepSeek Harness Web 中的写作板侧栏

亮点

  • 随时打开:可从输入框工具栏展开或收起写作板,并在切换会话或发送新会话首条消息时保持打开状态。
  • 专注局部改写:划选正文后可输入多行额外要求、保存默认要求并调整输入区域高度。
  • 写作主动入板:用户请求起草、撰写、续写或生成可用文本时,模型会优先通过 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> 标签。脚本不会推送标签,确认无误后按提示手动推送。

使用

  1. 在输入框工具行点击“写作板”。
  2. 输入或粘贴 Markdown 正文,并按需切换“编辑/预览”。
  3. 选中需要修改的内容,光标会自动跳到额外要求输入区。
  4. 输入要求;Enter 发送,Shift+Enter 换行,也可将当前内容设为默认。
  5. 模型写回后审核 Diff,选择“接受修改”或“拒绝修改”;直接离开审核则默认接受。

语言

写作板的客户端控件、状态提示和对话中的写作请求摘要随 dsh 宿主语言(中文/English)自动切换。额外要求为空时,插件会按发送时的界面语言选取默认改写要求并将其随请求发送;用户保存的默认要求始终保留原文。Host 工具描述、工具结果标记、XML 线格式和重放解析保持现有中文规范,不随界面语言改变。

数据与恢复

  • 编辑内容会防抖暂存在当前 Host 进程中。
  • 写作板非空时,从主输入框发送的每条真实用户消息都会携带独立的完整草稿上下文;用户原文位于上下文之外。选区改写请求仍通过自身的“额外要求”字段携带全文,两者都只产生一条 user 消息,界面会隐藏其中的全文。
  • XML 中的草稿、额外要求和选区元素采用分行布局,便于直接检查会话记录,同时不改变 CDATA 中的原始文本。
  • 重启后可从最近的写作请求和成功的写作工具结果恢复草稿及待审核候选;旧版 writing_draft 事件仍可兼容恢复,当前浏览器会重放已保存的审核决议。
  • 尚未随任何用户消息发送的手工编辑不能跨 Host 进程恢复。

卸载

dsh plugin --profile web remove dsh-writing-pad

许可证

MIT

← 上一个 Prev dsh-complete-chime 下一个 Next deepshell-agent →