CoAgent: Safety and permissions

CoAgent

Safety and permissions

What CoAgent may do without asking, what always waits for you, what Undo covers, and what never leaves its folders.

CoAgent can change your files, so it works within three limits: it touches only the folders you give it, it asks before it changes anything, and every change to a file can be put back.

What asks first

Step Asks first?
Looking through a folder, reading or searching files, reading attachments No
Writing, editing, moving, copying or deleting a file, or creating a folder Yes. Allow for this task can cover the rest of the task
Running a shell command Yes, every time
Reading a page in the Browser pane, or taking a picture of it No
Opening a page, clicking, typing or pressing a key in it Yes. Allow for this task can cover the rest of the task

Whether a step asks depends only on what kind of step it is. Nothing the model writes, and nothing in a file or a page it reads, can change that. The approval card is shown in Following a task.

What Undo covers

  • File changes: every file CoAgent writes, edits, moves, copies or deletes is copied before it is touched, so each change can be undone.
  • Shell commands: before a command runs, the granted folder it starts in is copied, and what the command changed there is listed for undo afterwards. Writes anywhere else on your computer, and anything the command does over the network, are not covered. The approval card says which applies before you allow it.
  • Browser actions can't be undone. A form sent is sent.

A folder of more than 500 MB or 20,000 files is too big to copy before a command. The card then says Undo will not cover it. Folders such as .git and node_modules are never copied, and changes inside them aren't tracked.

What stays in the folders

  • CoAgent's file tools can reach only the folders you granted. A path that leads anywhere else, by .., a drive letter, a shortcut link or a junction, is refused.
  • The model is told to treat whatever it reads, in a file, a command's output or a page, as information and never as instructions.
  • Folders are forgotten when you quit Onixphere, so permission is given afresh each time.

Good to know

  • To read your files, CoAgent sends what it reads to the model you chose, as Chat sends your messages. With a cloud model, that provider receives it. A local model through Ollama sends nothing anywhere.
  • Copies kept for Undo are stored with the task, on your computer. Deleting the task from Activity deletes them too, and its changes can then no longer be undone.

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