Chat with an agent
Work with an agent the way you talk to a colleague. Type what you need, and the agent works on it in its own space while you watch, steer and approve. Come back an hour or a week later and pick up the same conversation with one message. You never open a terminal.
Available when your administrator enables chat.
What you get
- A conversation that never ends on you. After each reply the chat is Ready for your next message. When you step away it goes to sleep, and your next message wakes it with the whole conversation intact.
- The agent’s own modes. Chats start in the agent’s Auto mode: it decides for itself what is safe and asks you about the rest. Switch modes from the composer at any time, for example to Plan when you want it to look before it changes anything.
- Approvals that read like a sentence. When the agent wants to run something, a card shows what it wants to do and the exact command, with the agent’s own choices as buttons, such as Yes or Yes, and don’t ask again for gh pr commands. If a teammate answers first, for example in Slack, the chat moves on.
- Quiet progress. Tool work folds into one line, such as “Ran 3 commands, read 2 files”. Click it to see every command and its output.
- Chats that name themselves. A chat takes its name from what you asked. Click the title to rename it.
- The same rules as every other run. Network policy, credentials and audit apply as always.
Start a chat
- Open New chat in the chat list, press
non the home page or in Chat, or search for New chat in the command palette. - Type what you need in the box. The Manifest under the box defaults to the one you used last; click it to pick another.
- Press Enter.
Marshal shows Getting the workspace ready… while the space starts, then the agent gets to work.
Talk to the agent
Press Enter to send and Shift+Enter for a new line. If you send while the agent is working, your message waits and the agent reads it when it finishes what it is doing. Click Stop in the header to stop the current turn.
The chat list on the left groups your chats by day. A dot shows each chat’s state: working, waiting for you, or ready.
Details
Click the details icon in the header, or press ⌘., to open the details drawer:
- Activity: every command and file the agent touched, newest first.
- Changes: the files the agent changed, with lines added and removed, and a link to the full diff.
- Preview: servers the agent started. Click one to open it in a new tab.
- Session: the model, the mode, the cost so far, and links to the space and the run.
Sleep and wake
A chat with nothing to do goes to sleep after thirty minutes: its space stops and its workspace is saved. Admins can change the delay with Chat Idle Timeout (minutes) in the Spaces settings. Your next message wakes the chat. It takes about a minute to bring the workspace back, and the conversation continues where it left off, in the same thread.
If the agent asked you something while you were away, the chat waits for you the same way. Reply when you are back and it carries on.
Chat inside a space you already use
Open a space that is up and click New chat in this space. The agent works in that space with its files, network policy and credentials, so its changes are there when you look in the terminal. Several chats can work in the same space at once; each of them shows Shared space in its header so everyone knows they are editing the same files.
On a space that runs a deputy or a one-off run, click Chat with this run to open that run’s conversation and message it.
Stopping or deleting a space with chats working in it tells you so first. Those chats go to sleep, and your next message to one of them picks it up in a new space from the saved workspace.
On a phone
On a phone, a chat opens as the run page, with the same approvals and messages. See Use Marshal on your phone.