CoAgent: Following a task

CoAgent

Following a task

Watch a task's steps as they happen, allow or deny what it wants to change, and open or undo the files it changed.

While a task runs, its steps appear above the reply as they happen. When it wants to change something, it stops and asks. When it finishes, the files it changed are listed under the reply, each with Undo.

A finished task with its step list open under Used 6 tools: Listed, Read, Wrote and Edited rows, each with a check and what it returned, the reply below, and Changed 3 files with two created files and README.md modified, each with Open and Undo.

The steps

At the top of the reply, a line says what the task is doing now: Thinking..., then each step in plain words, such as Reading invoices.csv or Writing summary.md. When the task finishes, the line becomes a summary, such as Used 6 tools · 24s.

Click the line to open the list of steps. Each has a check once it has worked, or a cross if it failed, and a short note of what it returned. Click a step to see that in full.

Approvals

A running task at Writing survey-summary.md, with an approval card in place of the composer: write_file and the file's path, a preview of the text it would write, and Allow, Deny and Allow for this task.

When a step would change something, the task waits. A card takes the composer's place, showing what the step is, which file or files it touches, and a preview: the text it would write, the lines it would replace, or the command it would run.

  • Allow lets this one step run.
  • Deny refuses it. The model is told you declined, and carries on without it.
  • Allow for this task lets this step run, and the same kind of step run without asking for the rest of the task. It doesn't apply to shell commands, which always ask.

Changed files

Under the reply, Changed lists each file the reply created, changed, moved, copied or deleted, with what was done to it.

  • Open shows the file in the Viewer. Click the arrow beside it for Reveal in folder.
  • Undo puts that one file back as it was.
  • Undo all puts back every change in the reply, newest first.
The changed files after Undo was clicked on README.md: its card is greyed and marked Undone, the heading reads Changed 3 files · 1 undone, Undo all is below, and a notice says Undid README.md.

An undone file stays on the list, marked Undone.

Undo an earlier reply

In a task with several replies, only the newest reply that still has changes offers Undo on each file. An earlier reply offers Undo back to here instead. It asks first, then undoes every change from the newest reply back to that one, newest first, so your files are as they were before that reply.

Good to know

  • If you have edited a file yourself since CoAgent changed it, its undo stops and keeps your edit, and says which file.
  • An undo can't itself be undone.
  • Click Stop to end a task. A step already running finishes first; one waiting for approval is not carried out.
  • When a task reaches its Tool calls per loop limit, it stops and says so. For longer tasks, raise the limit (see CoAgent settings).
  • Undo is not offered while a task is running.

Something here wrong or unclear? Email [email protected].