# Risk classes

Each tool has exactly one risk class: what the worst use of that tool can do. Grants and ceilings
are lists of classes, so the owner decides by consequence, not tool by tool.

| Class | The worst it can do | Tools |
|---|---|---|
| `read` | nothing: it only looks | `fs_list`, `fs_read`, `fs_search`, `fs_stat`, `journal_search`, `proc_list`, `sys_info`, `task_output` |
| `write` | create or change files | `fs_edit`, `fs_write` |
| `destructive` | remove a file, stop a process | `fs_delete`, `proc_kill` |
| `exec` | anything the machine's user can do | `exec_run`, `task_start`, `task_stop` |
| `network` | reach other hosts | none of today's tools |
| `screen` | see whatever is on the screen | `screen_capture`, `screen_info`, `ui_snapshot`, `ui_wait`, `window_list` |
| `control` | act as the person at the keyboard | `app_open`, `control_release`, `key_press`, `pointer_*`, `text_type`, `ui_act` |

The three MCP-only tools (`machines_list`, `tasks_list`, `history_search`) answer from the
contour's record and need no class.

## Choosing classes

- **`read` first.** A new agent gets `read` only. Add a class when a task needs it, not before.
- **`exec` is everything.** A command runs with the user's rights, so it can read, write and delete
  what the file tools would refuse. Grant `exec` only to an agent you would let use your terminal.
- **`screen` and `control` are opt-in.** They are in no default, the page asks before granting
  them, and the ceiling must name them. A screenshot shows what no folder limit hides.
- **`destructive` is mostly reversible.** `fs_delete` moves files to the trash unless the call asks
  for `permanent`.

The exact class of each tool is on its page: [Tools](https://docs.cmdop.ai/reference/tools.md).

## Related

[Grants and the ceiling](https://docs.cmdop.ai/concepts/grants-and-ceiling.md) · [Grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)
