---
title: "Review your agent's work"
description: "Let an agent draft, review it with comments in the web app, and have the agent work through your feedback thread by thread."
canonical_url: "https://trytree.house/docs/playbooks/review-loop"
last_updated: "2026-09-29"
---

# Review your agent's work

Let an agent draft, review it with comments in the web app, and have the agent work through your feedback thread by thread.

The fastest way to get good work out of an agent is the same as with a person: let it draft, mark up the draft, and send it back. In Treehouse the whole loop happens on the file itself. You comment in the web app; the agent reads your comments, revises the file, replies to each thread and resolves the ones it fixed.

> **Before you start**
>
> The agent needs the Treehouse MCP server, because comments aren't files and don't appear in a synced folder. [Connect Claude Code](https://trytree.house/docs/agents/connect/claude-code) covers it; an agent working in a synced folder can have the MCP server connected as well.

## 1. Ask for a draft with a status

Ask the agent to write the draft and mark it for review in its front matter:

```text
Draft a launch announcement for the new pricing in Marketing/announcements/,
based on Specs/pricing/README.md. Set status: review in the front matter when
it's ready, and tell me the file name.
```

A `status:` key isn't something Treehouse acts on. It's a convention, and a useful one: it tells people and other agents what state a file is in. If you use it, write the allowed values into your [AGENTS.md](https://trytree.house/docs/playbooks/write-your-agents-md) (for example, `draft`, `review`, `final`) and add a rule that only a person sets `final`.

## 2. Review it in the web app

Open the file and comment the way you would on any document:

1. Select the text you want to change and choose **Comment**, or use **⊕** in the margin to comment on a whole block.
2. Say what you want, not just what's wrong. "Too long, cut to two sentences and lead with the price" gets a better revision than "too long".
3. Post each point as its own thread, so the agent can resolve them one at a time.

![A comment thread in the margin of a markdown file, with an agent's reply saying what it changed](https://trytree.house/docs/images/comments.webp)

## 3. Send it back

Ask the agent to work through the feedback:

```text
Address the open comments on Marketing/announcements/pricing-launch.md.
Reply to each thread with what you changed. Only resolve the ones you fixed;
if you disagree or need something from me, reply and leave it open.
```

Behind the scenes the agent lists the open threads, reads the file, writes its revision against the version it read, then replies to and resolves each thread. Because it writes against a specific version, it can't overwrite an edit you made while it was working; that would become a [conflicted copy](https://trytree.house/docs/files/conflicted-copies) instead.

## 4. Check the revision

- Open the file. A banner shows it was **Updated since you last looked**; select **See what changed** to see the words the agent added and removed.
- Open the **Comments** tab. Resolved threads show who resolved them and at which version. Open ones are waiting on you.
- If a revision went wrong, open **History** and [restore](https://trytree.house/docs/files/version-history) the earlier version.

Repeat until it's right, then set `status: final` yourself.

## Taking it further

- **Let the agent ask questions.** Tell it in `AGENTS.md` to use comments for anything it's unsure about, quoting the passage in question. You'll find its questions in the margin, next to the text they're about.
- **Review someone else's draft.** Ask an agent to review a teammate's document and leave its suggestions as comments rather than editing the file. The author stays in control of what changes.
- **Get sign-off from outside.** For a client or stakeholder who isn't a member, share a [link pinned to the version you're happy with](https://trytree.house/docs/sharing/share-links). They see exactly that version, even if the file changes afterwards.

## Related

- [Comment on a document](https://trytree.house/docs/sharing/comments): Leave comments on passages of a markdown file, reply and resolve threads, and let agents read and act on your feedback.
- [See and restore earlier versions](https://trytree.house/docs/files/version-history): Look through every change to a file, see who made it, view or restore an older version, and catch up on what changed while you were away.
- [Connect Claude Code](https://trytree.house/docs/agents/connect/claude-code): Give Claude Code access to a workspace through your synced folder, the Treehouse MCP server, or both.
