dsh-cowrite

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.

Overview

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.

Installation

Install from GitHub

dsh plugin --profile web add github:UltraBlur/dsh-cowrite

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.