DocsWorking with agents

The chat

The chat is your conversation with an agent: what you ask, what it does, what it asks you back.

Write in the box at the bottom, Message …, and press Enter to send. Shift+Enter starts a new line. A message is in the chat as soon as you send it; if it could not be sent, it comes back into the box with the reason.

Type / at the start of the box for the agent's own commands, as in its terminal.

Running a shell command

With Claude Code, start a message with ! to run the rest as a shell command in the agent's folder, as in its own Terminal: !git status. While the box starts with !, a line in the accent over it says Shell command. The command shows in the chat as a step of yours, You ran …, with what it printed under it: its first lines, and the rest a click away. Claude sees what it printed.

While the agent works

The chat's last line says what the agent is doing now: the step it is on and for how long. Each step it took is a line in plain words, Read lines 60–200 of build.sh. Click a step to see the whole command and the end of what it printed.

When the agent keeps a checklist or follows an approved plan, it shows over the chat. Once it is done, the × at its end puts it away.

Messages that wait

A message you send while the agent is busy is Queued: drawn with a dashed outline after the agent's steps, until the agent takes it.

  • Send now on a queued message, or Ctrl+Enter (⌘+Enter on a Mac), gives it to the agent at once. A command the agent was running goes on in the background. Claude Code and Grok.
  • Codex and pi take a message sent while they work into the turn they are on, so it is not queued.

Stop

While the box is empty, the button beside it is Stop, a square. It asks Stop? first. Esc stops the agent at once whenever the chat is open.

If you stop the agent before it did anything with your last message, the message comes back into the box, so you can change it and send it again.

Codex keeps a command it was running in a terminal of its own in the background when it is stopped. If the turn you stopped ran a command, Stop ends it with Codex's own /stop, which ends every command Codex keeps running in the background, a server it started earlier too.

Going back

Hover one of your messages: an arrow by its time takes the conversation back to before it. A right click on the message (hold it on a touch screen) does the same with Go back to before this. The message's words come back into the box.

Claude Code asks what to take back: Code and conversation, Conversation only or Code only. The other agents take back only the conversation and leave the files as they are; the chat says so when files were changed after that message.

Branching from a message

Another agent can go on from before one of your messages, for another task, while this one goes on with its own. Hover the message and click the branch mark by its time, or right click it (hold it on a touch screen) and pick Branch from before this.

The box gives way to the branch: pick who goes on, change what it is told (the message's own words to start with) and press Enter. The new agent knows the chat up to that message, works in the same folder, and its chat opens at once. Its head says whose branch it is, and the chat it went off from keeps a line where it did. Two agents in one folder see each other's changes as they make them.

For now only Claude Code branches.

Hints over the box

A line over the box offers what you might send next: Claude Code's own suggestion first, then your shortcuts. A click sends it. Tab puts it in the box to change it first; Tab again goes to the next one.

Your shortcuts are in Settings › Chat and terminal › Hints over the box: a title, an icon, what it sends, and when it shows: in a New chat, while the agent is Working, or when it is Done.

Asking another agent

Type @ and pick another agent of yours from the list. Allems tells the agent you write to how to ask that one and get its answer. Their talk shows in the chat as in a group: the other agent's face, the question it was asked, and its answer.

Chat and Terminal are one draft

Start typing in the chat, then open the Terminal: your words are in the agent's own input line, and back in the box when you return. Use whichever is handier.

Finding your way in a long chat

Each of your messages is a mark in the scrollbar's lane. Hover a mark to read the message, click it to go there. Alt+↑ and Alt+↓ go to the one before or after.

Text you select in the chat with the mouse is copied, as in a terminal. Turn it off in Settings › Chat and terminal › Copy on select.

A right click on selected text, anywhere in the app, has Copy. In a field, such as the chat's box, it also has Cut, and Paste whether or not anything is selected; in the Terminal, Paste. The menu shows only what can be done there and then. In a web browser opened by a plain http address the page cannot read the clipboard, so there is no Paste: press Ctrl+V (⌘V on a Mac).

What else shows in the chat

  • Questions and permissions the agent asks you: see Questions and permissions.
  • Design concepts the agent made are buttons that open them: see Concepts and your verdict.
  • Builds of an app the agent made are download buttons, with a QR code for a phone.