agent, private to one agent, or
workspace, shared by every agent.
Keys are paths like runbooks/q3-close; each / makes a folder. When an
agent can memory.read, every turn starts with its own root note and the
workspace’s root in context, up to 8 KiB each. The matrices:memory skill
lays out the rest: todos, people/<slug>, logs/daily/<date>, and so on.
Agents use memory.read, memory.write, memory.list, memory.search, and
memory.delete; your application reaches the same notes over HTTP. Every write
is compare-and-set: read the note, send its version back as
expectedVersion ("0" only when the read found nothing), and on a conflict,
re-read and retry.
instructions; memory is for facts an
agent should be able to change itself. Files go in artifacts.*.
Namespaced to one agent or the workspace · Versioned on every write ·
Bodies up to 40 KiB · Granted by
tool:builtin:memory.*Rules
- Agent memory follows the agent, so sibling threads share it. See Rules.
- Workspace writes don’t ask by default. The selectable
approve-memory-workspace-writehook makes a person approve each one; profiles from Slack setup include it.
API
GET/PUT/DELETE /v1/memory/entry?key=….GET /v1/memorylists metadata, not bodies.GET /v1/memory/search?query=…ranks by keyword and meaning, up to 50 hits with no cursor.GET /v1/memory/folders?prefix=…lists folders.- Each has a
/v1/agents/{agentId}/memory/…twin for that agent’s namespace.