Skip to content

Collaborate ​

For document owners and reviewers, this guide explains how to coordinate people and agents. The browser, CLI, and API share one document and history.

Assign permissions ​

Choose permissions for each participant's task:

  • Give readers a view link.
  • Give reviewers a comment or suggest link.
  • Give trusted maintainers edit access.
  • Create a distinct link for each agent.
  • Reserve the owner link for administration.

Comments ​

Comments are conversations attached to a document location. Use comments for questions, decisions, and review notes that don't change the source.

Agents can attach a comment to exact text, a Markdown line, or a character range. If the source moves, the quoted text remains visible.

Use Show to switch between Open, Completed, and All threads. Use Author to filter reviewers. Load more comments retrieves older records. Next comment moves to another open thread.

Resolve a thread when the decision is complete. Resolved threads remain under Completed. You can reopen a thread.

Anchored comments show their original quotation. If its context no longer identifies a passage, the editor shows Target is missing or Target is ambiguous and disables the jump. Select a new passage before submitting a draft whose target changed.

Suggestions ​

Suggestions propose insertions, deletions, or replacements. Use suggestions when changes need review. The document changes only when an editor accepts them.

Each suggestion retains the original text and its surrounding context. If the text moves, acceptance relocates the target only when the context identifies it safely.

If the target is missing or ambiguous, acceptance returns a conflict. Recreate the suggestion against the current text. Legacy suggestions without stored context can also require recreation after edits.

Use Show and Author to filter suggestions. Next suggestion moves to another pending suggestion. Accepted and rejected suggestions remain under Completed. Load more suggestions retrieves older records.

For an insertion, position the cursor before opening Suggestions. The composer previews the insertion boundary. Use cursor or Use selection updates the target explicitly.

Give edit access to participants who can change the document without review.

Retain review drafts ​

The browser retains unsubmitted comments, replies, and suggestions on this device. Reloading restores the text and original target. If you edit a composer while its request is pending, a successful submission preserves your newer draft.

Use Discard comment draft, Discard reply draft, or Discard suggestion draft to remove a draft. Clearing its text also removes the stored draft and target.

Use Export review drafts to download draft text and targeting context as JSON. You can also export drafts from Local recovery drafts if document access has ended. Exports contain no share keys or account tokens.

Drafts are separated by document, identity, and tab. Copied tabs retain separate records. Retained copies remain available in Local recovery drafts until you discard them. Guest drafts share the guest identity within a browser profile.

If local storage fails, the editor reports the failure. Export the drafts before leaving the page.

Real-time editing ​

The editor synchronizes changes and participant presence through a shared document room. Saved Markdown and revision history record the persisted state.

Agent attribution ​

Give each agent a separate share link. Set an author name through the CLI or API to attribute its work.

The following example names an agent and adds a comment:

bash
DOC='https://agentsmarkdown.com/d/DOC_ID?key=SHARE_KEY'
export AGMD_AUTHOR="release-reviewer"
agmd comments add "$DOC" "The checksum is missing." --line 18

Replace the following:

  • DOC_ID: The document ID from the agent's share link
  • SHARE_KEY: The key from the agent's share link

Prevent accidental overwrites ​

Markdown reads return a document version. Include that version in your write. If the document changed after the read, AgentsMarkdown rejects the write with a conflict.

The CLI handles this with docs pull and docs push. API clients must use If-Match or baseVersion.

For conflict handling, see Concurrency patterns.

Monitor activity ​

The activity panel records human and agent changes. To wait for activity through the API, use the append-only event feed:

text
GET /api/docs/{docId}/events?since=latest&wait=55

To wait through the CLI, run this command:

bash
agmd watch "$DOC" --json

Find documents in your workspace ​

The account library searches the titles of all documents that you own, including documents beyond the displayed page.

Choose Recently updated, Recently created, or Name, A to Z to sort the results. Use Previous and Next to change pages.

The result count covers the complete search. The URL retains your search, sort order, and page when you refresh or use browser history.

Create and share Markdown documents with people and agents.