---
title: Comments and agents
description: Comment on any element for your agent or for people, and see how agents pick up, work through and close each comment.
---

You leave comments on the canvas, and your agent works through the ones posted to it. This page covers writing comments, wireframes, how comments reach your agent, and where they're stored.

## Leave a comment

1. Press **C** on a canvas and click where the comment goes: an element in a frame, a section's empty space, or the canvas outside every section.
2. Write the comment. Type **/** to add a command, such as a skill for the agent to run.
3. Choose **Post to agent** for work, or **Post to people** for a discussion that agents leave alone unless asked.

Each comment on a frame records the view, its state, the viewport, the element and its text, so the agent can find the code. You can hand a thread to the agent or to people later.

To run a command on an element without writing a comment, right-click it, or ⌥-click it, with the comment tool. Choose which commands appear in **Settings** → **Commands**.

## Comment on a spec

Select words in a spec and choose **Comment**. The words are highlighted, and the thread opens beside the spec.

To suggest changes, choose **Suggesting** from the spec's mode menu, then edit as usual. Additions are underlined and deletions struck through, but the spec doesn't change until its owner chooses **Accept**. Anyone can suggest changes. Only someone who can edit the spec can accept them.

## Draw a wireframe

Draw a screen, and the agent builds it from your design system:

1. Press **W**, then click a frame to change it, or an empty cell for a new view.
2. Pick a kind of UI, such as navigation, a table or a button, and drag on the page. Drag inside a box to nest one.
3. Give boxes text, such as a button's label, or items separated by commas for tabs or table columns.
4. Choose **Post to agent**.

## Thread status

| Status | Means |
| --- | --- |
| For the agent | Waiting for an agent. |
| Picked up (👀) | An agent has taken it. |
| Waiting for you | The agent asked a question. Answer it to continue. |
| Open | A discussion between people. |
| Resolved (✅) | Done. The last message says what changed. |
| Dismissed (🚫) | Closed without a change, with the reason. |

Replying to a resolved thread reopens it.

## Find threads

- **Pins** follow their element. The open thread's element is outlined.
- **Comments**, at the top right of the canvas, lists this file's threads, with the ones waiting for you first. Filter by **Unresolved** or **All**, and by **People** or **Agents**.
- **The bell** in the sidebar lists new comments and questions across every file.
- **A link** like `/files/<slug>/canvas?thread=<id>` opens a thread at its element.

A built Dex shows the comments as they were when it was built, read-only. Set `build.comments: false` to leave them out.

## Send comments straight to Claude Code

Start Claude Code from the studio:

<Commands code={`npx dex claude`} />

Every comment for the agent reaches that session as you post it, and Claude starts on it. This uses Claude Code's [channels](https://code.claude.com/docs/en/channels), a research preview. Team and Enterprise organizations must turn channels on first.

## Have another agent watch

Other agents, or Claude Code started without `dex claude`, can watch instead. Ask the agent:

> Watch the studio for feedback and work through it.

The agent takes each thread, makes the change and closes it with a line on what changed. It writes a message only to ask you a question, or when you mention it with `@agent` or `@claude`.

To stop new comments reaching any agent, choose **Pause** on the agent bar. New comments wait until you choose **Resume**.

## What happens after you post

Dex's MCP server decides which agent gets a comment and what it sees. The agent decides how to make the change, following the rules and methods in **Settings** → **Reference**.

1. **Picked up.** Dex gives the comment to one agent session, and no other session can take it.
2. **Grouped.** Comments on the same view go together, with the files the agent may change. Groups that change separate files can run side by side.
3. **Pointed at the code.** A comment on an element comes with the view's file and the lines that render the element.
4. **Checked.** Before a thread closes, Dex checks that the changed code parses and imports only what Dex allows. If it doesn't, the thread stays open and the agent is told why.
5. **Let go.** If a session ends or stops responding for 30s before it closes a comment, the comment goes back to waiting for the next agent.

## Where comments are stored

Threads are stored in each file's `files/<slug>/comments.jsonl`, one event per line, and committed as the record of decisions. Dex only adds lines, so branches with new comments merge cleanly. Change threads through Dex, the MCP tools or the [`thread` command](/docs/cli), not by hand.
