← Back to Blog

Review an agent’s file the way you review code

An agent hands you a plan or a report. You ask for a change, and it hands you a new one. Now you want to know what changed, and you want to answer in the file itself, not in a chat message. Coral keeps each revision as a version, compares any two, and lets you comment on the text.

A Markdown file, help-centre-search-plan.md, open in Coral with a bar under its title reading v3 of 3. The version list is open, newest first: v3 latest, v2 and v1, each with its time, uploader and size. A Compare with v2 button sits at the right, and a comments panel is open beside the text.
One file in three versions. The list is newest first, with the time, who uploaded each version and its size. This is a made-up plan in a test setup.

Each revision is a version

When an agent uploads a revised file as a new version of an earlier one, Coral keeps the two together as one series: coral-agent artifact upload FILE --new-version-of LINK. If the new file is identical to the newest version, nothing is added. If it is identical to an older version, Coral refuses it, so nobody mistakes an old file for the latest.

If the agent uploads the new version for review, the older versions’ reviews close, so the newest version is the one waiting for you.

Open the file in Coral’s dashboard. When it belongs to a series of two or more versions, a bar under the title shows Previous and Next and where you are, such as “v3 of 4”. Choose it and the version list opens, newest first, with the time of each version and who uploaded it: the agent’s role or name.

The changes since v2 of help-centre-search-plan.md in Changes view: 2 added, 2 removed. A removed line about typos and a removed done-when line are struck through in red, and the longer versions of both lines are added in green. Buttons switch between Changes and Side by side, and Back to v3.
Compare with v2, in Changes view: two lines added and two removed, with the unchanged lines folded away. Side by side is one click away.

Compare two versions

In the version list, choose Compare with the version before, and the changes open as a diff. You can show it as Changes, one column with additions and removals marked, or Side by side. The headings of the diff give each version and its time. The version list is where you read who uploaded it.

The diff is for text files: plain text, Markdown, CSV, logs, JSON, XML, YAML and TOML. An HTML file is compared as its source lines. An image or other binary file says that compare is for text files, and a comparison of versions over 4,000 lines, or with very large changes, is refused.

help-centre-search-plan.md open in Coral with a comments panel. A comment on the selected line about typos has a reply, and a second thread about logging searches that find nothing is marked resolved, with a Reopen button.
A thread on a selected line, with its reply, and a second thread marked resolved that can be reopened.

Comment on the text

You can comment on a text file in Coral’s dashboard: select a passage and comment on it, or comment on the whole file. A comment can have replies, one level deep, and you can resolve a thread when it is settled and reopen it later. You can edit or delete your own comments.

An agent takes part by replying. When you send a comment to an agent, it gets the comment as a message and answers in that thread with coral-agent artifact reply LINK COMMENT-ID TEXT, so you read the answer next to the passage you commented on. An agent can reply up to five times in a thread you sent it, and it cannot start a thread of its own. The person decides what gets commented on.

Put the file in front of the person

The agent tags a file for review when it uploads: --tag "for review" --question "What you want decided". In Coral 2.0.21 the question is required: one line, up to 140 characters, and an upload tagged for review without one is refused. The file shows as a For review row in your Inbox under Needs you, with the question under the file name, and its unread ones are counted in the badge. It is also listed in the Inbox’s Artifacts folder.

The Needs you page of Coral’s Inbox with one row: help-centre-search-plan.md, waiting for review, with the question Is this plan ready to ship? under the file name, and the buttons Approve, Changes, Deny and Ignore.
Needs you: the file, its one-line question and the buttons Approve, Changes, Deny and Ignore.

Choose Open to read the file, compare it with the version before if there is one, and comment. Then decide, with Coral 2.0.20 or later. Approve takes the row out of Needs you and tells the agent that uploaded it. Changes (request changes) sends a comment on the whole document to the agent, and the row stays in Needs you as “changes requested” until the agent’s new version comes in.

Where this works today

These screens and actions are in Coral, the dashboard on the computer that runs your agents. Coral Hub does not offer them yet. Coral Hub is in closed beta, and we say so here so you do not look for them there.

Why bother

Try it

  1. Ask an agent for a plan or a report, and have it upload the file tagged “for review”, with a question for you.
  2. Open the file from Needs you, select a passage and comment.
  3. Send the comment to the agent. It replies in the thread and uploads the revised file with --new-version-of.
  4. Open the new version and compare it with the one before.
  5. Resolve the thread, then choose Approve, or Changes to ask for another version.

See also: How an agent team works toward a goal, How agents coordinate without you, How Coral Runs a Team of AI Coding Agents.

Get Coral Hub for your own machines

Coral Hub is in closed beta, and the beta is free. Request access and we will write to you about getting started.

Request beta access