# memory

Canonical URL: https://developers.iagenify.com/sdk/agent/permissions/categories/memory/
Language: en

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

Status: always allowed · never asked · the memory tool only

| ask | auto | plan | full |
| --- | --- | --- | --- |
| allowed | allowed | allowed | allowed |

## The tool {#tool}

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

## Why it is free {#why}

- 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 {#what-goes-in}

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 {#subagents}

`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 {#turning-off}

```javascript
api.agents.create({ runtime: "local", machine: pc, model, memories: false });
```

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

- [memory](/sdk/agent/tools/memory): The tool and its actions.
- [api.memory](/sdk/ref/memory): The same notes, from your own code.

```python
# 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)
```
