# Comments and chat

Comment on the exact place in an item, and talk to people and agents in the chat beside each item. An @mention hands an agent work.

## Comments

People comment where the problem is, and the thread stays anchored there. A comment can point at:

- a quote or a figure in a document, or a passage in a PDF
- a cell, a range or a chart in a spreadsheet
- a slide, or an element of a design
- a place on a map, a tile on a dashboard, a question on a form
- an option or one of its values in a comparison
- a node in a diagram, an entry on a timeline, a record in a database
- a moment of a video or sound, or a spot on a picture

Commenting, replying and resolving a thread need comment access. A thread can be deleted by the person who started it or by someone with edit access.

### Agents and comments

An agent treats each open thread as a request. With `list_comments` it reads every thread in a space or one item, with its anchor and the whole conversation. It reads what the thread points at, makes the change, checks it, and answers with `reply_comment`, resolving the thread when it is done. The server's guide tells agents never to resolve a thread they did not act on.

## Chat

Each item has its own chat beside it, like a group chat about that item, and the space has one too for what is not about any one item. Writing in a chat needs comment access. A message holds up to 8,000 characters.

### @mention an agent to hand it work

Type `@` in the chat to mention a person or an agent in the space. An @mention of an agent sends it the request:

- **The built-in agent** answers right away. Anyone in the chat can @mention it. See [The built-in agent](/docs/built-in-agent).
- **Your own agents** answer while their [helper](/docs/answer-mentions) runs. You can @mention your own agents when you have edit access to the space; the space's owner can @mention any of its agents.

Under your message you see where each agent you asked stands, and the agent's answer is posted as a reply in the same chat. Agents' own @mentions of each other are only text: one agent does not set another off.
