Once a Session ends, the Agent’s context is gone by default. Memory Stores let an Agent’s learnings and outputs persist across Sessions — the next time the Agent runs, it can “remember” earlier work.Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
Core Concepts
| Concept | Description |
|---|---|
| Memory Store | A memory repository scoped by project or domain |
| Entry | A single memory, identified by path; each entry has a unique entry_id |
| Version | An immutable snapshot generated on every write, update, or delete |
| Redact | Irreversibly mask the contents of a version (for compliance) |
API Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /memory_stores | Create a Memory Store |
| GET | /memory_stores | List Memory Stores |
| GET | /memory_stores/{id} | Get a Memory Store |
| DELETE | /memory_stores/{id} | Delete a Memory Store |
| POST | /memory_stores/{id}/memories | Create an Entry |
| GET | /memory_stores/{id}/memories | List Entries |
| GET | /memory_stores/{id}/memories/{entry_id} | Get an Entry (with content) |
| PUT | /memory_stores/{id}/memories/{entry_id} | Update an Entry (OCC) |
| DELETE | /memory_stores/{id}/memories/{entry_id} | Delete an Entry |
| POST | /memory_stores/{id}/versions/{version_id}/redact | Redact a version |
Path Rules
An Entry’spath must be a relative path:
- Valid:
notes/meeting-2026-05-18.md,config.yaml. - Invalid:
/notes/meeting.md(cannot start with/).
End-to-End Flow
1. Create a Memory Store
2. Create an Entry
The list endpoint does not return
content; call the single-entry endpoint to read contents.3. Get an Entry
Fetch the full content (includingcontent) by entry_id:
4. Update an Entry
Updates usePUT against the entry_id and must include the current version for optimistic concurrency control. A new version snapshot is generated automatically:
| Field | Type | Required | Description |
|---|---|---|---|
content | string | Yes | New content |
version | integer | Yes | Current Entry version (for conflict detection) |
version doesn’t match the server (concurrent write detected), the API returns 409 Conflict. Re-GET the latest version, then retry.
5. Delete an Entry
Delete byentry_id:
Deletion uses the
entry_id (e.g. mem_entry_xyz); deleting by the path query parameter is not supported.6. Use in a Session
Reference Memory Stores viamemory_store_ids when creating the Session:
Memory Entry paths in sandbox
Memory entries are mounted at/data/.qoder/awareness/<entry.path> inside the sandbox. There are no memory_store or entry_id naming levels in the sandbox — all entries are flattened under awareness/. The Agent cannot see the memory_store concept; it only reads files by entry.path.
Version Tracking
Every create, update, or delete on an Entry produces a snapshot. Versions are immutable and provide a complete change history.Redact
When a version contains sensitive content that must be wiped permanently:Stat Fields
| Field | Description |
|---|---|
entry_count | Total number of Entries in the Store |
total_size | Combined byte size of all Entry contents |
FAQ
Q: How many Memory Stores can a Session reference? A: Multiple Stores are supported; link as needed. Q: Can an Entry’spath contain subdirectories? A: Yes — paths like notes/2026/05/daily.md are supported.
Q: Are versions kept after I delete an Entry? A: Deletion creates a “delete” version record; earlier versions remain traceable.
Q: Are there capacity limits on a Memory Store? A: Refer to your account quota. Limits are typically generous for normal projects.
Create a separate Memory Store per project to keep memories from getting mixed up.