CoAgent
What CoAgent is
CoAgent is the composer's second mode: the model works on files in folders you allow, step by step, and asks before it changes anything.
CoAgent is the composer's second mode. In Chat the model answers you. In CoAgent it does the work: it reads, writes, moves and deletes files in folders you have allowed, one step at a time, and asks you before it changes anything.
Start a task
- Click New chat in the sidebar.
- In the composer, click CoAgent. An Add folder button appears under the composer.
- Give it a folder to work in (see Folders CoAgent can use).
- Write what you want done, as you would ask a person: "Sort these invoices into a folder per month", or "Turn notes.txt into a table in summary.md".
- Press Enter.
The model works through the task in steps, shown above its reply as they happen (see Following a task). When it is done, it says what it did and did not do, and lists every file it changed, each with Undo.
How a task differs from a chat
- It acts. CoAgent can look through a folder, read files, and create, edit, move, copy and delete them. With the abilities turned on, it can also run commands and drive the Browser pane (see CoAgent settings).
- It asks first. Reading is automatic. Anything that changes a file, runs a command, or clicks or types in a page waits for you to allow it (see Safety and permissions).
- It can be undone. Every change to a file is copied first, so each can be put back.
- It keeps going. One message can take many steps. Send another and the same task carries on, with what came before.
Good to know
- The Chat and CoAgent switch shows only on a new chat. A conversation stays in the mode it began in.
- CoAgent uses the model chosen in the composer. Each step is a call to the model, so a long task with a cloud model is billed like a long chat.
- Only one task runs at a time. To stop one, click Stop, where the arrow was.
- Tasks are listed on the Activity page with your chats. Open one to read it again, or to carry on with it.
- You can attach files to a task, as in Chat (see Attachments).
- Recall is for Chat only. In CoAgent mode it is greyed.
- Each profile has its own tasks and its own folders.
Something here wrong or unclear? Email [email protected].