Use memory stores when an agent needs durable context that your application can update outside a conversation. Memory stores are useful for account notes, support playbooks, research briefs, or any content you want to reuse across many agent runs. For agents, memory stores are mounted through theDocumentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
shell tool environment.
Each mount appears in the managed container under /mnt/memory/<label>.
An entry path such as accounts/acme/preferences.md becomes a file path under that mount.
API Reference:
1. Create the memory store
Create a store for one durable body of knowledge. Useinstructions to describe how entries should be written and maintained.
mem_store_....
See the Create memory store API reference for the full schema.
2. Add memory entries
Entries are addressable bypath.
Use predictable paths so the agent can find files in the mounted store.
3. Create the saved agent
Create an agent with ashell tool and mount the memory store into the shell environment.
The mount object uses:
store_id: the memory store ID to mountlabel: the directory name under/mnt/memoryaccess:read_onlyorread_writedescriptionandinstructions: optional context for how the agent should use the mounted store
read_only for reference material.
Use read_write only when the agent should be allowed to update memory through the mounted filesystem.
When the agent writes, edits, or deletes files inside a read_write mount, the sandbox syncs those changes back to the memory store after the shell command finishes.
4. Run the agent and update memory
Run the saved agent with the task-specific input. The agent can inspect mounted memory files through the shell tool when it needs durable context. If the mounted store isread_write, the agent can also update memory by writing files under /mnt/memory/<label>.
The sandbox restores mounted files before the shell command runs, snapshots them, and syncs changed files back to the store after the command completes.
read_write mount.
5. Inspect memory after the run
After the run completes, use the Memory Stores API to inspect what changed. The same files the agent writes in/mnt/memory/acme_support are available as memory entries.
Operational notes
- Use
read_onlymounts for reference memory andread_writemounts for agents that are trusted to edit durable memory. - Let agents update durable memory by writing files in
read_writemounts through the shell tool. - Use direct Memory Stores API updates for seeding, review flows, admin corrections, or imports.
- Keep memory entries small enough for the agent to inspect only relevant files during a run.
- Use stable
pathvalues so your application can map product objects to memory entries. - Store external object IDs in
metadatawhen you need to reconcile memory with your database. - Delete obsolete entries with the Delete memory entry endpoint.