Share Markdown for human + agent review, right from your editor. Publish a
local .md to Draftmark, then read and answer reviewer
comments as native VS Code comment threads — without leaving your editor. Runs
in VS Code and its forks (Cursor, Windsurf, VSCodium).
Share Current File → creates a Draftmark doc, writes a .draftmark.json
mapping (shared with the dm CLI), and shows a status-bar indicator.
Publish Update → pushes local edits as a new version (no-ops if unchanged).
Inline comments → reviewer comments render as VS Code comment threads on
their anchored lines. Reply, resolve, dismiss, and reopen in place; agent
authors get a 🤖 badge.
Anchor-drift reconciliation → when the file diverges from the reviewed
version, comments re-anchor by a unique snippet match; anything ambiguous
goes to a Detached Comments panel instead of onto a wrong line.
Polling + notifications → optional background polling toasts you about new
comments and reviews across your shared docs.
Requirements
A Draftmark account API key (acct_…). Get one via dm login or your account
settings, then run Draftmark: Sign In (stored in VS Code SecretStorage).
Commands
Command
What it does
Draftmark: Sign In / Sign Out
Store / clear your account API key
Draftmark: Share Current File
Publish the active .md to Draftmark
Draftmark: Publish Update
Push local changes as a new version
Draftmark: Open in Browser
Open the shared doc
Draftmark: Show Comments / Refresh Comments
Reload reviewer comments
Settings
draftmark.baseUrl — API base (default https://draftmark.app/api/v1).
draftmark.pollIntervalSeconds — poll cadence for new activity (default 60,
0 disables; minimum effective interval 15s).
Development
npm install
npm run build # esbuild → dist/extension.js
npm run watch # rebuild on change
npm run typecheck # tsc --noEmit
Press F5 ("Run Extension") to launch an Extension Development Host.
Publishing to the Marketplace requires a publisher; the manifest currently uses
a draftmark placeholder.