An editable Markdown tab in the right sidebar: a block-level editing view, a preview and a source view over the same workspace file, so an agent can rewrite a section in chat while you edit it beside the conversation. Saving is a compare-and-swap on the file's mtime, so a write by the agent or another editor reloads the buffer when it is clean and raises a conflict when it is not, instead of overwriting either side. Also includes find and replace, an outline, pasted images written to an assets folder beside the document, HTML-to-Markdown paste, a TeX subset, a self-drawn mermaid subset (flowchart with subgraphs, sequence, pie) and per-language code highlighting. Not a CRDT: concurrent edits are detected and shown, never merged. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:UltraBlur/dsh-cowrite
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 里,和助手编辑同一份文档。
左侧继续对话,右侧直接改稿。Cowrite 把工作区里的 Markdown 文件变成一个可编辑的侧栏标签页。你可以请助手改一段,在旁边看到文件更新,再亲手调整措辞。不用在聊天、只读预览和外部编辑器之间来回切换,也不用把助手的回复复制回原稿。
它怎么配合写作
比如你在修一份项目提案:让助手先把方案拆成两节,再点开其中一段改措辞;需要通读时切到预览,想检查原始标记时切到源码。三个视图用的是同一个工作区文件,不用维护三份副本。
- 排版:整篇按成稿样式显示,点哪一段就编辑哪一段。
- 预览:只读视图,适合通读和检查排版。
- 源码:直接编辑全文,适合批量修改和精确调整。
输入后会自动保存。助手或外部编辑器写入同一个文件时,如果你没有未保存的改动,Cowrite 会刷新内容;如果有,它会提示冲突,让你决定保留哪一版,而不是静默覆盖。这是基于文件的共写,不是多人实时同步,也不会自动合并冲突。
写长文时用得上的功能
- 定位和修改:可折叠大纲、查找替换、选区计数、字号缩放,以及焦点模式和打字机模式。
- 插入和整理材料:粘贴或拖入图片时保存到文档旁的
assets/目录;从网页粘贴时可保留常见格式;表格可直接定位到单元格并增删行列。 - 检查排版和交付:预览脚注、带高亮的代码块、常见公式和 Mermaid 子集;可导出 HTML,也可通过浏览器打印为 PDF。公式和图表不是完整的 MathJax 或 Mermaid 实现。
安装
在 DeepSeek Harness 的插件管理器里安装 GitHub bundle,填入:
github:UltraBlur/dsh-cowrite
安装后,在会话右侧栏点 + → 共写文档,或按 Cmd/Ctrl + Shift + M。从顶部下拉框选择工作区文件即可。不需要 npm 账号。
MIT 许可。完整许可证见 LICENSE。
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.