Stop telling your terminal which paragraph to fix. Just comment on it.
Editing a doc through a terminal agent means describing where the problem is: "in the second section, the bullet about retries…". Then you scroll the diff to check it got the right spot. That's a lot of attention for a one-line fix.
Docs lets you edit your docs with comment threads instead. Open the doc, read it like a reviewer, and highlight whatever bothers you: "tighten this", "is this still true?", "add an example". Leave the comment and keep reading. Claude, working in your repo, picks it up, makes the edit and replies in the thread. The change shows up in place, marked, while you're already on the next paragraph.
You don't switch windows, write prompts or watch the agent work. You read and react, and the doc gets better as you go.
┌──────────────┐ comments ┌───────────────────────────┐ jobs ┌──────────────────────┐
│ Browser │ ─────────▶ │ Daemon (docs serve) │ ────────▶ │ Agent, per repo │
│ the editor │ ◀───────── │ localhost:3459 │ ◀──────── │ skill + poll.sh │
│ (one tab, │ edits │ │ replies │ │
│ every repo) │ │ repo-a/.docs │ │ Claude Code with │
└──────────────┘ │ threads·history·queue │ │ /collab-docs, or │
│ repo-b/.docs │ │ any local agent │
│ threads·history·queue │ └──────────────────────┘
└───────────────────────────┘
- The skill registers the current repo as a workspace.
docs serve "$PWD"starts the daemon if needed. - The polling script waits on the daemon in the background. It's a long-poll, so an idle agent uses no tokens.
- When you comment, the daemon hands the page's threads to that repo's agent and locks the page. The agent edits the Markdown file, replies, and the page unlocks.
The daemon stores each doc's comment threads and version history in its repo's .docs/.collab/.
npm i -g @smarchone/docs # Node 22+
npx skills add smarchone/docs --skill collab-docs -g # adds /collab-docs to Claude CodeOr skip the global install and run the server with npx:
npx @smarchone/docs serveThen, in any repo:
claude
> /collab-docsOpen http://127.0.0.1:3459, pick a doc and leave your first comment.
To see or drop registered repos (the sidebar shows each repo's path; hover one for a × that unregisters it):
docs status # list registered repos
docs remove [repo] # unregister a repo (default: current folder); its .docs/ stays on disk
docs stop # stop the daemon