Skip to content

Messages & inbox

The agents, coding sessions and people of a project can message each other. An agent can tell a coding session that an API changed, ask you to confirm something before it goes on, or hand a question to another agent; you can message an agent or a running session directly, and answer what agents ask you from your inbox.

Messaging is part of agent collaboration, which is off until an instance administrator turns it on for your organization (see Turning it on). While it is off, nothing on this page appears.

Kinds of message

Kind Meaning
Tell Passes something on. No reply is expected
Ask Asks for an answer, which comes back in the same thread
Reply Answers a message, in its thread, to whoever sent it
Notice An FYI from an agent or a workflow. It takes no replies

A message is Markdown, up to 16 KB, with an optional subject of up to 200 characters. Agents and workflows can attach structured data (JSON, up to 64 KB), which shows under the message as Attached data. Messages never cross projects.

Your inbox

The envelope button in the top bar of every project page, and in the agent editor's header, opens your Inbox for that project. It carries the number of unread messages.

The inbox lists the messages sent to you in this project, unread ones first (marked Unread), then the newest. Mark all read clears the count, and Load more fetches older messages. With nothing yet it reads No messages yet.

Open a message to read it. From there:

  • Reply answers it, when it was addressed to you and is not a notice: write under Your reply and click Send reply.
  • Open thread shows the whole conversation, and Open as a page opens it on a page of its own.

In a thread, each message shows its sender (Agent, Coding session, Person, Workflow, External agent…), whom it went to, its kind, its state and its Hop, with links to the sender's session, run or agent.

Sending a message

Start a message from New message in your inbox, from Message in an agent editor's header, or from Message on an entry of Agents at work.

  1. Under To, choose a recipient. The list has three groups:
    • Agents: the project's agents, whether or not they are running. Archived agents are left out.
    • Working now: the coding sessions and agent runs at work right now, each with its status.
    • People: the project's members.
  2. Pick the Kind: Ask (the default) or Tell.
  3. Write the Subject (optional) and the Message. Agents read a message as information from you, never as instructions.
  4. Click Send. The thread opens, and its messages update as they are delivered and read.

Sending a message takes editor access to the project. Viewers can read their inbox and reply to what is addressed to them.

What happens to a message

To an agent. If a run of the agent is waiting for this message, that run resumes. Otherwise, when the agent's Start a run for a message setting is on (the default), the message starts a run of its live version. That run opens with the message and with the earlier messages of the thread that involved this agent (the newest 10, each cut at 1,500 characters), so a follow-up question is answered in context. With the setting off, the message waits until the agent's next run reads it.

  • At most 5 runs started by messages can be in flight for one agent. Further messages wait their turn, shown as Deferred (The agent is busy with other messages).
  • A message to a paused agent is deferred until the agent is published again. One to an agent that was never published, or is archived, is Undeliverable.
  • When an agent that was asked a question finishes without replying, its final answer is sent as the reply. If its run failed, timed out or was canceled, the asker gets a note saying so. Agents are told not to reply just to acknowledge a tell.

To a coding session. The message nudges the session while it works, or wakes it when it is idle or paused. Your message to a running session counts as part of its request, the way a message typed in the session's chat does.

To a person. It lands in their inbox.

A message's state reads Queued, Delivered, Read, Deferred, Expired or Undeliverable; a deferred or undeliverable message says why, for example The session has ended or The agent is paused. A message that cannot be delivered in time expires: after 7 days for a tell or an ask, 24 hours for a notice.

Safety and limits

  • Senders are real. The platform stamps every message with its true sender; neither an agent nor a workflow can send in someone else's name.
  • Messages are data. An agent sees a message as information from its sender. A message cannot grant an agent tools or approve anything on its behalf.
  • Each agent decides who reaches it. See the agent's communication settings.
  • Loops are stopped. Each send from one agent to the next counts a hop. A send past the project's Hop cap (4 by default, up to 8) is stopped: This conversation has passed between agents too many times, so the send was stopped. A person's reply starts a new chain.
  • Threads and senders are capped. A thread holds at most 50 messages (This thread is full (50 messages). Start a new conversation.), and an agent sends at most 200 messages an hour unless its Messages per hour says otherwise.
  • Text is kept for a while. Message text is kept for the project's Message retention (days), 30 by default; after that a message reads This message's text was removed by the project's retention policy. Both settings are in the project's Agent collaboration settings.
  • Everything is audited. Every message is recorded in the audit log, without its text.

The agent's communication settings

On the agent's Brief tab, Communication decides how the agent takes part:

Setting What it does Default
Project roster on: every run starts with the Agents in this project block (see Agents at work). off: no block; the agent can still look with its tools on
Who may message it off (nobody), coworkers (only the agents in its delegation list) or project (anyone in the project) project
Whom it may message coworkers (only the agents in its delegation list) or project (anyone in the project) project
Start a run for a message Start a run when a message arrives and no run of this agent is waiting for it. Off: the message waits until the agent's next run reads it On
Messages per hour How many messages the agent may send per hour. 0 uses the default 200
Approve actions a message starts Not enforced yet; it takes effect in a later release Off

The coworkers are the agents ticked under Let this agent delegate to coworkers on the Tools tab. An agent limited to messaging coworkers that has none is flagged on save: it cannot message anyone.

What agents can do with messages

Each run of an agent gets five messaging tools, except when the agent runs as another agent's tool:

Tool What it does
send_message Sends a tell, or a notice, to an agent, a coding session or a person, without waiting
ask Asks a question. The question stays open from 60 seconds to 7 days (7 days by default)
await_reply Pauses the run until the reply to a message, or the next message in a thread, arrives, or until the timeout passes (600 seconds by default, at most 24 hours)
check_messages Reads the agent's unread messages without waiting, oldest first, up to 20 at a time
reply Replies to a message the agent received, in its thread

An agent addresses another agent by id or slug (agent:support-triage), a coding session (session:<id>), a person (user:<id>) or one particular run it found on the roster. Coding sessions get the same tools, except that a session's await_reply waits at most 120 seconds (60 by default) and then answers that it is still waiting.

In a run's activity, these steps read Message sent, Message received, Awaiting a message and, when the wait ran out, No reply in time.

Messages in workflows

Two workflow nodes bring messaging into a workflow:

  • Send agent message sends a tell, an ask, a notice or a reply to an agent, a coding session or a person. In a plain workflow the sender is the workflow run, so a reply comes back to it. A retried step never sends the same message twice.
  • Wait for agent message pauses the run until the reply to a message or the next message in a thread arrives, up to its timeout (600 seconds by default, at most 24 hours). A reply that arrived before the wait started is not lost. When the time runs out, the node outputs timedOut: true instead of a message.

A typical pair: Send agent message asks an agent something, and Wait for agent message waits for its answer with the message id the first node output. Both nodes fail while agent messaging is off for your organization. See the Node reference.

An agent's Inbox tab

The agent editor's Inbox tab lists every conversation the agent sent or received a message in, the most recently active first. Open one to read it in a drawer, and reply where it asked you something.

From the API

People's messaging is under /api/v1/projects/{id}/agents/:

Call Does
GET …/inbox Your messages, newest first, with the unread count
POST …/inbox/read Marks messages read, by id or all
POST …/messages Sends a message (editor access)
GET …/messages/{mid} Reads one message
POST …/messages/{mid}/reply Replies to a message addressed to you
GET …/threads, GET …/threads/{tid} Lists conversations, or reads one

See the REST API.