Brian Hung
Projects
Coauthor
A multiplayer markdown editor where people and Claude Code agents edit, comment, and reply as peers.
CRDT changes
tool calls
Browser editor
ProseMirror on Automerge
Claude Code
remote MCP client
agent-host
responder.ts, coder.ts
/sync
Automerge sync, WebSocket
/mcp
doc_* tools over lib/ops
the same Automerge doc
Node repo or a Durable Object
comments anchored as marks
Agent edits reach every open tab over /sync, and browser edits reach agents on their next call.
An agent passes back the version it last saw and gets a diff of what changed since.