Margin
PLUGINComment @ulpi on highlighted text in Google Docs, Slides or Sheets and Ulpi answers in the comment thread.
by pratikpoddar · v0.1.0
What it does
Comment @ulpi on highlighted text in Google Docs, Slides or Sheets and Ulpi answers in the comment thread. A gateway platform: each Drive comment thread is its own Ulpi session with the document text and the highlighted text as context; follow-ups in the thread continue it, Ulpi's status reply is edited in place into the answer, and replying "apply" replaces the highlighted text with the proposed wording (Docs and Slides, only when the text occurs exactly once).
Watch files with /margin watch or ulpi margin watch. Disclosure — sends the text of each watched file (up to MARGIN_MAX_DOC_CHARS, default 60,000 characters), the highlighted text and the comment thread to the user's configured model provider at the start of each thread; signs in with the user's own Google Cloud OAuth client through Ulpi and calls only www.googleapis.com, docs.googleapis.com and slides.googleapis.com through credentialed_provider_request, never holding the token; polls Drive comments.list every 10 s per watched file from a background loop inside the gateway; posts and edits its own comment replies and edits document text only on an explicit "apply" reply; by default only the signed-in Google account can trigger it (MARGIN_ALLOWED_USERS / MARGIN_ALLOW_ALL_USERS widen that); stores the watch list, poll cursors, handled comment ids and per-thread highlighted text and last proposal in Ulpi plugin state under ULPI_HOME (no document text, no credentials); no shell commands, no telemetry, no self-update.
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve