One of my first tasks at Macro: make it possible for AI to edit documents across the platform. Or, put less generously, create swarms of agents that come in and attack your documents with requested changes while you are mid-edit.

Macro documents are a tree, not flat Markdown, and they sync live between peers with CRDTs. Our first pass let an LLM swap whole top-level blocks with generated Markdown. It was far too coarse — it either rewrote much more than you asked for or missed the point entirely — so we un-shipped it.
The second version hands agents an XML lens over the tree instead. A supervisor reasons about what needs to change and dispatches cheap, fast writer agents that emit tiny mutations against a thin library. Those operations get chopped into keystrokes and streamed to everyone on the document, so an edit arrives looking like a person typing rather than a block being replaced.
I wrote the whole thing up on my own site: the document views I tried and rejected, the edit library the writer agents code against, and a full trace of one "write hello world in my document" request. Read it on 404wolf.com →
Macro is open source, so you can also just read the AI editing worker.