Agent memory¶
An agent can remember things from one run to the next: a customer's preferences, a decision it made, where it left off. It keeps them in a store of its own, which you set up on the Memory tab of the agent editor and browse on the Memory data tab.
Agent memory is separate from project memory, which is what coding sessions recall about the project's history and code.
Where this agent remembers¶
Where this agent remembers says where the store is: in the project's Crios-managed project database, under the name agent: followed by the agent's id. There is nothing to pick; the store is bound for you.
The store's settings¶
| Field | What it does |
|---|---|
| Enabled | On for new agents. Turning it off keeps the other settings, so turning it back on loses nothing |
| Scope | shared, where every run sees every entry, or run, where each run sees only its own |
| Inject Limit | How many entries are put in front of the agent at the start of every run, 0–200, default 20. 0 means none, so the agent reaches memory only through its tools |
| Inject Prefix | Limits that snapshot to keys starting with this text, so what the agent should always know stays separate from everything else it wrote |
| Inject Max Chars | Character budget for the snapshot, default 12,000. Whole entries are dropped to fit, never half an entry |
| Retention Days | Forget what the agent writes after this many days. 0 keeps everything |
With memory on, the agent gets tools to read, write, list, append to and delete its entries, and the snapshot opens every run.
Try it runs are test runs: they never write into the memory production runs use.
Memory on a workflow canvas¶
On a workflow canvas, a Memory node wired to the agent node's memory input replaces the agent's own store for that one placement (see Workflow memory). With the agent's memory off, runs without a canvas (Try it, API calls, calls from another agent) remember nothing, but a placement with a linked Memory node still does.
The node's inspector says which applies to each placement: the linked Memory node, the agent's own store, or no memory at all. See Agents in workflows.
Memory data¶
Memory data shows what the agent has remembered:
- Agent store: the entries in the agent's own store.
- In referencing workflows: for each workflow that uses the agent, each placement on its canvas: the rows of the Memory node linked to it, or a note that it uses the agent store or has no memory.
Each row can be forgotten (Forget this key), edited (Edit this row's value) or locked (Lock this key so the agent cannot change it). A locked key cannot be edited or forgotten until you unlock it.
Viewers can browse memory but not change it. On an archived agent you can still clean up what it remembered.