Permissions

Always asked

Three categories no mode can open in advance, and for which « always » is not accepted. Sending, publishing, and spending credits on something other than a model call.

send · publish · moneyasked in full accessno always
Using Python?

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

Every other category can be pre-approved: a mode opens it, or an « always » remembers it. These three cannot be, by either route. The reason is the same for all three — nothing takes them back.

CategoryThe actWhat stays done
sendA message leaves for someone elseIt is in their inbox
publishSomething goes on the public internetIt was fetched, it was indexed
moneyCredits are spent on spaceThey are spent, and it renews

What happens on a call

  • In plan mode: refused outright, like everything else.
  • In every other mode, including full: a permission event, then your callback.
  • always is accepted and treated as once. Nothing is remembered.
  • With no callback: refused, with a message naming the act — « sending », « publishing », « spending credits ».

The agent is told, so it does not promise otherwise

The rule is in the system prompt of every mode

Without it, an agent in full access would tell the user it is going to publish « directly », and then stop to ask — which reads as a malfunction rather than as a safeguard. Saying it in advance makes the prompt expected.

What this means for an unattended run

It cannot send, publish or buy. That is not a gap to work around: a run with no one watching is exactly the case where those three should not happen. If a workflow needs to send or publish, the approval belongs in the workflow — as a human step before it — rather than in an agent's mode.

// An unattended run that is honest about its limits
const agent = api.agents.create({
  runtime: "local", machine: pc, model, mode: "auto",
  onPermission: async ({ category }) => (["send", "publish", "money"].includes(category) ? "deny" : "once"),
});
# An unattended run that is honest about its limits
agent = api.agents.create(
    runtime="local", machine=pc, model=model, mode="auto",
    on_permission=lambda request: "deny" if request["category"] in ("send", "publish", "money") else "once",
)

They are what a rewind cannot undo

The same three acts — plus a connected-storage write and a command — are recorded per checkpoint and returned as kept by rewind(). The two lists overlap on purpose: what cannot be pre-approved is what cannot be reversed.