Work in progress. This page is not finished and has not had its final read-through, so some of it may be wrong or missing. If you find something, open an issue.
Updated 10 November 2026
On this page
How an AI agent sees your review
Wymark saves your document as you type, so the file on disk holds only the latest text. What changed, who changed it and what it replaced is kept by Wymark, not in the file. An agent that reads only the file sees none of it.
An agent may remember an earlier read of the file. That read is not your baseline, the state you last approved, so what the agent takes to be the change need not match what you see.
Wymark does not write the changes into the document, as CriticMarkup does, because that would extend the markdown format. The agent asks Wymark for them instead. To set that up, see Connect an AI agent.
What the agent asks for
The agent runs wymark review notes.md, or calls the review tool over MCP, and gets the review as JSON. Shortened:
{
"schema": "wymark.review/3",
"document": "notes.md",
"summary": { "changes": 1, "comments": 1 },
"comments": [
{ "line": 3, "author": "Jane Doe", "created": "2026-06-16T09:00:00Z", "replies": 0 }
],
"changes": [
{
"kind": "replace",
"origin": "incoming",
"line": 3,
"before": "We offer black tea now,",
"after": "We serve green tea now,"
}
]
}
changesis what you see in Wymark: each pending change with its text before and after. A change you accept or reject is no longer listed.commentssays where your comment threads are. Their words are in the document itself, as HTML comments.- A long review answers with an overview first, and the agent reads the sections it needs.
Where a change came from
Every change has an origin:
in-app |
You typed or pasted it in Wymark. |
incoming |
It was written to the file from outside Wymark: an agent, a script, another editor. Text you paste as an incoming change counts too. |
mixed |
The change holds both, and says which words are which. |
Origin is the route an edit took, not who wrote the words. If you edit the file in another editor, that edit is incoming.
When you reword part of an agent’s edit, the change also carries the words you replaced. The file no longer holds them, so this is how the agent sees that its “green” became your “herbal”.
What the agent is told
You do not need to teach the agent the rules. Every review carries a briefing, _readme, and an agent connected over MCP gets a short version when it connects. In brief:
- Read the review before editing the document.
- Edit the file in place, replacing exact text, from the file as it is now.
- Change only what was asked.
- Keep every comment marker where it is, and reply inside the thread.
- Do not resolve a comment unless asked.
What happens to the agent’s edits
The agent writes the file. Wymark shows each write as changes from outside, against your baseline, and you accept or reject them like any other change.
If a write from outside took out words of yours, ⌘ZCtrl+Z undoes everything written from outside since you last touched the document, as one step, while the document has stayed open. The text from before the write is also kept in the Versions panel, under Overwritten.
What else the agent can ask
The same command lists a document’s earlier versions, prints any of them, and compares two. It lists the documents you worked on recently, and copies or moves a document with its version history. See The wymark command.
Any page of these docs is available as raw markdown by appending index.md to its URL; /llms.txt is the index.
# How an AI agent sees your review
Wymark saves your document as you type, so the file on disk holds only the latest text. What changed, who changed it and what it replaced is kept by Wymark, not in the file. An agent that reads only the file sees none of it.
An agent may remember an earlier read of the file. That read is not your baseline, the state you last approved, so what the agent takes to be the change need not match what you see.
Wymark does not write the changes into the document, as CriticMarkup does, because that would extend the markdown format. The agent asks Wymark for them instead. To set that up, see [Connect an AI agent](/docs/guide/connect-an-agent).
## What the agent asks for
The agent runs `wymark review notes.md`, or calls the `review` tool over MCP, and gets the review as JSON. Shortened:
```json
{
"schema": "wymark.review/3",
"document": "notes.md",
"summary": { "changes": 1, "comments": 1 },
"comments": [
{ "line": 3, "author": "Jane Doe", "created": "2026-06-16T09:00:00Z", "replies": 0 }
],
"changes": [
{
"kind": "replace",
"origin": "incoming",
"line": 3,
"before": "We offer black tea now,",
"after": "We serve green tea now,"
}
]
}
```
- `changes` is what you see in Wymark: each pending change with its text before and after. A change you accept or reject is no longer listed.
- `comments` says where your comment threads are. Their words are in the document itself, as [HTML comments](/docs/concepts/comments).
- A long review answers with an overview first, and the agent reads the sections it needs.
## Where a change came from
Every change has an `origin`:
| | |
| --- | --- |
| `in-app` | You typed or pasted it in Wymark. |
| `incoming` | It was written to the file from outside Wymark: an agent, a script, another editor. Text you paste as an incoming change counts too. |
| `mixed` | The change holds both, and says which words are which. |
Origin is the route an edit took, not who wrote the words. If you edit the file in another editor, that edit is `incoming`.
When you reword part of an agent's edit, the change also carries the words you replaced. The file no longer holds them, so this is how the agent sees that its "green" became your "herbal".
## What the agent is told
You do not need to teach the agent the rules. Every review carries a briefing, `_readme`, and an agent connected over MCP gets a short version when it connects. In brief:
- Read the review before editing the document.
- Edit the file in place, replacing exact text, from the file as it is now.
- Change only what was asked.
- Keep every comment marker where it is, and reply inside the thread.
- Do not resolve a comment unless asked.
## What happens to the agent's edits
The agent writes the file. Wymark shows each write as [changes from outside](/docs/guide/changes-from-outside), against your baseline, and you accept or reject them like any other change.
If a write from outside took out words of yours, `⌘Z` undoes everything written from outside since you last touched the document, as one step, while the document has stayed open. The text from before the write is also kept in the Versions panel, under Overwritten.
## What else the agent can ask
The same command lists a document's earlier versions, prints any of them, and compares two. It lists the documents you worked on recently, and copies or moves a document with its version history. See [The `wymark` command](/docs/reference/wymark-command).
Any page of these docs is available as raw markdown by appending `index.md` to its URL; [/llms.txt](/llms.txt) is the index.