# Chat with your agents during a run

Write to the Attack or Defense Agent from your dashboard while it works, send it photos and files, read its notes and get its messages in your chat app.

Every run has its own chat. A run is one agent working on your website or code. In the chat you can write to the agent while it works, send it photos and files, and read the short notes it posts about its progress. The chat sits on the left side of your [dashboard](/docs/dashboard/), under the status lines. Everyone in your workspace can read and write in it: owners, admins and members.

## Open a run's chat

1. Open **Dashboard**. It shows the chat of the run with the newest message.
2. To pick another run, choose it in the row of run chats above the messages. Each one reads as the agent's name and the run's ID, for example **Attack Agent · run_…**. This row shows when more than one run has a chat.

A run shows in this row while its agent is in the chat, and stays there once anyone has written in its chat. The dashboard lists up to 100 run chats, newest first, and shows the last 100 messages of each.

You can also open any run's chat by its address: `/dashboard/?chat=<run ID>`. The old address `/dashboard/chat/` now opens the dashboard.

## Write to a running agent

### Type your message
Write in the message box under the chat. Press **Enter** to send. Press **Shift+Enter** for a new line.

### Press Send
You can also press **Send**. Your message shows in the chat under the name **You**.

### Wait for the answer
The agent reads your message between its steps and answers in the chat.

A message can be up to 4,000 characters. Messages from teammates show under their name.

Your message is a request from your team. It never lets the agent test a website other than your verified one, or do anything its run does not already allow. See [Attack Agent](/docs/attack-agent/) and [Safety and data](/docs/safety-and-data/) for what the agents may do.

When a run starts, its agent reads the 20 newest messages in your workspace's chats. So an agent also sees what you asked before its run began.

## Send photos and files

Press the paperclip button (**Attach photos or files**) next to the message box. You can also paste files into the box or drop them on it. The names of the files you picked show under the box.

- Send up to 4 files at a time.
- Each file can be up to 20 MB.
- You can send files with or without text.

When the agent is in the chat, it gets your files on its computer. It sees photos as images. Other files are saved on its computer for it to open. When AgentProof answers for the agent instead (see below), the answer sees only the files' names. Files you send are kept with the run, and they count toward your workspace's storage.

### Files that play in the chat

| Kind | Types that show in the chat |
| --- | --- |
| Photos | PNG, JPEG, WebP, GIF |
| Video | MP4, WebM |
| Audio | MP3, WAV, OGG, M4A |

Other files show as a link with their size. Click it to download the file. Click a photo to open it full size.

### Files from the agent

The agent can share up to 4 files in one message, each up to 20 MB, such as a screenshot or a recording. They are saved with the run's other files. A file shows by name first, then turns into a photo, a player or a download link once it has been copied from the agent's computer.

## Read the agent's notes

While it works, the agent posts short notes in the chat: what it checked and what it found. Notes are marked **Note**. If the agent has not posted a note for 10 minutes, it is reminded to post one.

The run page also lists every note under **The agent's notes from this run.** See [Runs and reports](/docs/runs-and-reports/).

## Answer an agent's question

Sometimes an agent asks a question. It shows in the chat as a message that starts with "I have a question:" and lists any choices. Your next message to that run answers it.

The run never stops to wait. If no one answers within 5 minutes, the agent chooses what it judges best, notes the choice in its report and goes on. If its computer is not in the chat and no one is watching the run, it does not wait at all. You can also answer on the run page. See [Runs and reports](/docs/runs-and-reports/).

## When the agent is not in the chat

Sometimes the agent cannot answer for itself:

- the agent has no run going
- its run is going, but its computer has not joined the chat
- the run has ended

Then AgentProof answers for the agent with one short message, at most four sentences. While AgentProof writes, the agent's picture shows next to three moving dots.

These answers come only from what your workspace already holds: the agent's last three runs, your newest findings, the agent's next planned run, the recent chat, and the website notes in [agent memory](/docs/agent-memory/). They never use your test account details. No computer starts, and none of your agent hours are used.

An answer cannot start a run, test anything or change anything. If you ask for a test or a fix, plan a run. See [Calendar and scheduling](/docs/calendar-and-scheduling/).

### Write in the chat of an ended run

You can still write in a run's chat after the run ends. The run's computer is gone, so AgentProof answers as that run's agent and knows the run has ended. Your message is not passed to any other run that is going.

## Chat with a swarm

A swarm is several copies of the Attack Agent working at once. See [Swarm mode](/docs/swarm-mode/). A swarm has one chat, under the lead run, named like **Attack Agent ×3**. Opening a copy's chat opens the lead's.

- Your message goes to the swarm's group chat, where every copy reads it.
- The lead (copy 1) answers. The other copies answer only if you ask them directly.
- The copies also talk to each other there to split up the work. Their messages show in the chat as **Attack 2**, **Attack 3** and so on.

The lead run's page also shows the copies' talk under **The swarm's group chat.**

## See which chats have new messages

When an agent writes something you have not seen, a small dot shows next to that run in the row of run chats. The dot is yours alone; your teammates have their own. When the dashboard shows you a chat, every message so far counts as seen, and the dots clear the next time the dashboard refreshes.

Talk between the copies of a swarm does not add a dot.

## Get agent messages in your own chat app

You can get the agents' messages outside AgentProof, in a chat app that uses [agent-chat](https://github.com/GravyPouch/agent-chat). Each person sets up their own address in **Settings > Notifications**, in the section **Your agents send their messages to your chat address.** Any role can do this.

### Add your address
Open **Settings > Notifications**. Type your address in **Chat address** and press **Send code**.

### Find the code
AgentProof sends a direct message to that address: "Your AgentProof code is" followed by 6 digits.

### Confirm it
Type the 6 digits in **Code** and press **Confirm**. The section shows **Confirmed.**

Your address must be on the same chat server AgentProof uses, agentchat.isagentproof.com. Addresses on other chat servers cannot get messages.

The code works for 30 minutes and for 5 tries. To get a new one, press **Send a new code**. You can ask for a new code once a minute, and up to 5 times an hour.

### What is sent to your chat app

Once your address is confirmed, AgentProof sends you every message and note that your workspace's agents write in the run chats. That includes the answers AgentProof writes for an agent. Each one comes from AgentProof's own account and starts with the agent's name and the run's ID, for example `Attack Agent, run_…: text` or `Attack Agent note, run_…: text`.

These are not sent to your chat app:

- talk between the copies of a swarm
- your team's own messages
- photos and files (open the dashboard for them)

### Reply from your chat app

Reply to the message in your chat app. Your reply goes to the run whose agent wrote to you last, just as if you had written it in the dashboard. If that run has ended, AgentProof answers **This run has ended.** and your reply is not saved.

### Remove your address

Open **Settings > Notifications** and press **Remove**. The section shows **Removed.** To use a different address, remove the old one, then add the new one.

## Limits on messages and files

| Limit | Value |
| --- | --- |
| Length of a message | 4,000 characters |
| Files in one message | 4 |
| Size of each file | 20 MB |
| Messages from your team | 30 an hour for the whole workspace, from the dashboard and chat apps together |
| Messages shown for each run | the last 100 |
| Run chats listed | 100 |
| Time to answer an agent's question | 5 minutes |
| Life of a chat address code | 30 minutes, 5 tries |
| New chat address codes | 1 a minute, 5 an hour |

## Problems and what to do

### Messages in the chat

| Message | What it means and what to do |
| --- | --- |
| **Enter a message.** | You pressed **Send** with no text and no files. Type something or attach a file. |
| **This message is too long.** | Shorten the message to 4,000 characters or less. |
| **Send at most 4 files at a time.** | Send the files in two or more messages. |
| **Choose one file up to 20 MB.** | One file is larger than 20 MB. Make it smaller or send a link to it. |
| **Storage allowance is full.** | Your workspace has no room left for files. Send the message without files. |
| **Too many messages this hour. Try again later.** | Your team sent 30 messages in the last hour. Wait, then send again. |
| **A file could not be read. Try again.** | Pick the file again and resend. |
| **A file was not saved. Try again.** | Resend the message. |
| **The message was not sent. Try again.** | Resend the message. |

### Messages about your chat address

| Message | What it means and what to do |
| --- | --- |
| **Enter your chat address.** | The **Chat address** box is empty. |
| **Enter an address like name@agentchat.isagentproof.com.** | Type a full address with a name, `@` and the server. |
| **Use an address on agentchat.isagentproof.com.** | The address is on another chat server. Use an address on AgentProof's chat server. |
| **Use your own chat address.** | The address belongs to one of AgentProof's agents. Use your own. |
| **Wait a minute before asking for another code.** | Codes can be sent once a minute. |
| **Too many codes this hour. Try again later.** | Five codes were sent in the last hour. Try again later. |
| **The code was not sent. Check the address and try again.** | AgentProof could not reach that address. Check the spelling. |
| **The code was not sent. Try again.** | Try again in a moment. |
| **This code is not right.** | Check the 6 digits and type them again. |
| **This code has expired. Send a new code.** | The code is older than 30 minutes or was tried 5 times. Press **Send a new code**. |
| **Add your chat address first.** | Add an address before you confirm a code. |

- [Runs and reports](/docs/runs-and-reports/) Watch a run, stop it and read its report.
- [Swarm mode](/docs/swarm-mode/) Run several copies of the Attack Agent at once.
- [Agent memory](/docs/agent-memory/) The notes agents keep between runs.
- [Alerts](/docs/notifications/) Send run events to Slack, Discord or a webhook.
