Permissions

memory

The agent's own long-term notes. Always allowed, never asked — they touch no file, no database and no one else.

always allowednever askedthe memory tool only
Using Python?

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

askautoplanfull
allowedallowedallowedallowed

The tool

memory, with its four actions: save, read, delete, list. Nothing else is in this category.

Why it is free

  • A note is a short line about the user's preferences, kept on the account.
  • It touches no file in the workspace and no connected storage.
  • It costs nothing: no extra model call is made to write one.
  • It is visible and editable outside the agent, so nothing is hidden by being free.
Only the index is in the prompt

The system prompt carries one line per note — name and description. The content is opened on demand with memory { action: "read" }, so a large memory does not quietly grow every turn's bill.

What the agent is told to put in it

Something durable: a preference, a correction repeated, a stable fact. Explicitly not a one-off detail, and explicitly not the contents of a file — a note is about the person, not about the material.

A subagent does not have it

memory is one of three tools a subagent never gets, along with ask_user and todo_write. It gets recall instead: it can search what was said before, and it cannot write what is remembered.

Turning it off

api.agents.create({ runtime: "local", machine: pc, model, memories: false });
# Leave the memory tool out of the agent's tools to keep it from saving notes
tools = [name for name in api.tools.all if name not in ("memory", "recall")]
api.agents.create(runtime="local", machine=pc, model=model, tools=tools)

Or simply leave memory out of tools. Either way the index disappears from the prompt as well as the tool.