# Overview

Canonical URL: https://developers.iagenify.com/sdk/agent/modes/
Language: en

Four settings for one question: what may happen without asking. The mode never widens what a tool can do — it only decides whether you are asked first.

Status: ask · auto · plan · full · changeable mid-run · three acts stay asked

| Mode | In one line |
| --- | --- |
| [`ask`](/sdk/agent/modes/ask) | Everything that changes anything is asked. The default. |
| [`auto`](/sdk/agent/modes/auto) | File changes go through; commands, data, DNS are still asked. |
| [`plan`](/sdk/agent/modes/plan) | Read-only. It investigates and proposes; it changes nothing. |
| [`full`](/sdk/agent/modes/full) | Nothing is asked, except the three that are always asked. |

## The matrix {#matrix}

| Category | ask | auto | plan | full |
| --- | --- | --- | --- | --- |
| `read` · `memory` · `task` | allowed | allowed | allowed | allowed |
| `write` | asked | allowed | refused | allowed |
| exec | asked | asked | refused | allowed |
| `storage` | asked | asked | refused | allowed |
| `dns` | asked | asked | refused | allowed |
| `send` · `publish` · `money` | asked | asked | refused | **asked** |

> **The last row is the one to remember**
>
> Sending a message, publishing to the internet and spending credits on space are asked every single time, in every mode, and « always » is not accepted for them. Full access is not unattended.

## Setting and changing it {#setting}

```javascript
const agent = api.agents.create({ runtime: "local", machine: pc, model, mode: "plan" });

// Later, from your interface — it takes effect on the next tool call
agent.setMode("auto");
agent.mode;            // "auto"
```

`setMode()` applies to running subagents too. An unknown name is refused at creation with `invalid_mode`.

## The model is told which mode it is in {#in-prompt}

Each mode has a paragraph in the [system prompt](/sdk/agent/system-prompt), so the agent plans for what it can actually do: in plan mode it is told to investigate and present a plan, not to try an edit and be refused.

## A mode is not a sandbox {#not-a-sandbox}

It decides what is asked, not what is reachable. The boundary of what an agent can touch is the workspace, the storages you passed and the tools you declared — a mode cannot widen any of the three, and `full` does not make a refused address reachable.

- [Permissions](/sdk/agent/permissions): What happens when a mode says « asked ».
- [plan](/sdk/agent/modes/plan): The one that changes how it thinks.
- [The loop](/sdk/agent/loop): What one step is, and what ends it.

```python
agent = api.agents.create(runtime="local", machine=pc, model=model, mode="plan")

# Later, from your interface — it takes effect on the next tool call
agent.set_mode("auto")
agent.mode   # "auto"
```
