Memories
Memories are durable notes Inspect carries from one session into the next. When you tell the agent to remember something ("always run the linter before pushing", "remember that staging uses the EU region"), it saves a memory, and future sessions you start load it automatically. Memories are personal: they belong to you and appear only in your sessions.
Types
- A directive is guidance that should always apply. It is loaded in full into every new session.
- A fact is knowledge that is relevant only sometimes. Sessions list it by title and summary, and the agent reads the full body when it looks relevant.
Each memory has a title, a description (the summary the agent uses to decide relevance), and a Markdown body.
How memories are created
- The agent saves a directive when you ask it to remember guidance. It can also update or archive a directive it saved earlier, for example when you say a rule no longer applies.
- The agent can read facts but does not create, update, or archive them.
- You can create directives and facts with the API:
POST /api/v2/memories. - Read-only sessions cannot change memories.
Manage your memories
Your memories are listed in Settings → Agent under Memories. Edit a memory to change its title, type, description, or body. Changing a fact to a directive applies the shorter directive limit. Archive removes a memory from future sessions; archived memories stay readable but are no longer loaded.
How they load
Inspect builds the memory context once, on the first prompt of each new session you start:
- Up to 20 directives, each in full.
- Up to 50 fact summaries, most recently updated first. Older facts may be omitted.
- At most 16,000 characters in total across both.
Memories saved during a session apply from the next session on. If loading memories fails, the session starts without them rather than failing.
Sessions started with an API key load no personal memories.
Limits
- Title: up to 200 characters.
- Description: 10 to 420 characters.
- Directive body: up to 2,000 characters.
- Fact body: up to 20,000 characters.
- Archive reason: up to 500 characters.
Privacy
Memories don't appear in other people's sessions. They are readable through the API, though: any API key in your organization with the memories:read scope can read memory context, including another person's memories when it passes their user_id. See API keys.
Troubleshooting
Shorten the body, split it into separate directives, or save it as a fact.
Edit facts yourself in Settings → Agent or with the API.
Ask from a session that isn't read-only.
Check that it is active in Settings → Agent, and that you have fewer than 20 directives. Start a new session; running sessions don't reload memories.