Modes

Overview

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.

ask · auto · plan · fullchangeable mid-runthree acts stay asked
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

ModeIn one line
askEverything that changes anything is asked. The default.
autoFile changes go through; commands, data, DNS are still asked.
planRead-only. It investigates and proposes; it changes nothing.
fullNothing is asked, except the three that are always asked.

The matrix

Categoryaskautoplanfull
read · memory · taskallowedallowedallowedallowed
writeaskedallowedrefusedallowed
execaskedaskedrefusedallowed
storageaskedaskedrefusedallowed
dnsaskedaskedrefusedallowed
send · publish · moneyaskedaskedrefusedasked
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

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"
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"

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

Each mode has a paragraph in the 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

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.