# memory

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

`memory({ action: "save" | "read" | "delete" | "list", name?, description?, content? })`

Short notes about the user, kept between sessions. Only the index is in the prompt; a note's content is opened on demand.

Status: category: memory · free, never asked · index only in the prompt

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `action` | string | required | `save` · `read` · `delete` · `list`. |
| `name` | string |  | Short identifier, lowercase with dashes: `tone-of-voice`, `stack`. |
| `description` | string |  | One line — this is what appears in the index. |
| `content` | string |  | The note itself. |

## The index is what costs {#index}

> **One line per note in the system prompt, nothing more**
>
> Name and description. The body is read with memory { action: "read" } when it matters — so a large memory does not quietly grow every turn's bill.

## What goes in one {#what}

| Yes | No |
| --- | --- |
| A preference | A one-off detail |
| A correction they repeated | The contents of a file |
| A stable fact about them or their work | Anything that belongs in the conversation |

The same name updates a note instead of adding a second one, and a note that became wrong is deleted.

## No extra model call {#no-cost}

Writing a note is a tool call inside a turn that was happening anyway. There is no background summariser making a call after every exchange.

## They are yours too {#elsewhere}

The same notes are readable and editable through [api.memory](/sdk/ref/memory), so an interface can show them and a person can correct one.

## Project instructions are files, not notes {#files}

`IAGENIFY.md` in the workspace, and `~/.iagenify/IAGENIFY.md` for personal instructions, are read into the prompt directly. A note is about the person; a file is about the work.

- [recall](/sdk/agent/tools/recall): Searching earlier conversations instead.
- [api.memory](/sdk/ref/memory): The same notes from code.
- [Agent tools](/sdk/agent/tools): The 35, by family.
