Permissions

Persistence

What « always » remembers depends on the category, and only one of them survives the process: a plain command, written to a file on that computer.

one durable casethe rest is per sessionthree have none
Using Python?

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

Where each « always » lives

CategoryRemembered asLasts
writethe tool's namethe session
exec, a single command on a computerthe command text, in ~/.iagenify/permissions.jsonuntil you remove it
exec, a sequence of commandsthe whole sequencethe session
exec, on a shell your application suppliesthe commandthe session
exec, terminal killthe tool's namethe session
storagethat storagethe session
dnsthat domainthe session
send · publish · moneynothing—

The one file

// ~/.iagenify/permissions.json
{
  "bash": {
    "allow": ["npm test", "npm run build", "git status"]
  }
}
# ~/.iagenify/permissions.json — shared by the Python and JavaScript engines
{
    "bash": {
        "allow": ["npm test", "npm run build", "git status"],
    },
}

It is on the computer, in the user's home directory, shared by every application on that machine that uses the package. Editing it by hand is the way to review or revoke: remove a line and that command is asked again.

It holds commands, nothing else

No storage, no domain, no tool name. Everything else was deliberately kept out of a durable file, because « always » on a storage or a zone should not outlive the conversation in which it was understood.

What « the session » means here

The life of the agent object, not of a saved session. A new create() starts with nothing remembered, and reopening a session with agents.get() does not bring back what was approved in it — permissions are not part of what a session stores.

Children share the parent's memory

A subagent reads the parent's session approvals and the same command file, so approving something in a parent does not have to be approved again in a child. The approval belongs to the run, not to the object.

When to answer always

  • always when the decision does not depend on the arguments — « this project's test command is fine ».
  • once when it does — a path, a storage, a recipient. The callback sees the arguments; use them.
  • Never always for the three that will not take it: it is accepted and quietly means once.