Memory v3
Memory v3 is Sora's long-term memory: what the assistant knows about you beyond the current conversation. Sora stores memory in local SQLite and organizes it into four budgets. Relevant entries can be included in the context sent to your configured model. You can also sync memory through a self-hosted Relay after pairing devices.
Four budgets
| Budget | What it holds | UI |
|---|---|---|
| Living profile | Stable facts and preferences about you and your context | Profile cards |
| People and relations | Family, friends, colleagues, places, and how they connect | Graph and notes |
| Timeline and to-dos | Dated events, commitments, plans, and follow-ups | Timeline |
| Deep index | A full-text index over older memory, searched on demand | memory_search |
Profile cards are editable, lockable against automatic edits, archivable, and restorable. Timeline notes carry a date and can be marked resolved, superseded, expired, or archived. People and topics are entities with attributes and relationship edges between them.
Per-bot memory scope
Every bot decides how much memory it may use:
| Scope | Behavior |
|---|---|
| Personal | Full memory: profile, people, timeline, and deep index. |
| Work only | Work-related memory only; personal entries are not injected or searchable. |
| Off | Memory is disabled — nothing is read, queued, or written. |
The scope is enforced during tool calls as well as during context injection, so a work bot cannot search personal notes even if it tries.
How memory is captured
Memory does not just summarize the last message. It is written by a dedicated memory agent:
- Capture — when you share a lasting preference, a relationship change, a commitment, or a correction, the conversation agent dispatches it to the memory agent (
memory_dispatch). - Organize — fast consolidation handles recent changes; deep consolidation reorganizes the timeline and merges duplicates. Both run under a lease so two devices never reorganize the same memory at once.
- Inject — before each turn, a bounded context renderer adds the most relevant profile, people, and recent timeline facts, plus a compact deep index that points at older material.
- Look up on demand — when a question needs older context, the assistant searches rather than guessing.
Suggestions that need judgment appear as suggested updates you can accept or dismiss; nothing silently rewrites a locked profile card.
Reading and editing memory
The memory screen has four areas:
- Profile cards — edit, pin, archive, or create a card. Built-in cards cover about you, important people, tastes and boundaries, rhythm and wellbeing, active plans, and work and study.
- Graph and notes — inspect entities and relations, search notes, and add timeline entries.
- History — a reversible activity log; undo a change to restore the previous state.
- Preferences — memory behavior for this bot.
Shared controls include search across profiles, people, and events, include-archived filters, export of all memory, and "organize now" when you want a deep pass immediately.
Memory preferences
| Setting | Effect |
|---|---|
| Memory updates | Automatic, a custom model, or paused. |
| Capture delay | How long Sora waits after a chat turn before writing memory. |
| Deep organize interval | Hours between deep consolidation passes. |
| Context budget | Character budget for the memory injected into a turn. |
| What to remember | Guidance describing what should or should not be remembered. |
Tools the agent uses
| Tool | Purpose |
|---|---|
memory_search | Search profiles, entity relations, and bi-temporal events; supports date ranges, entity filters, and history. |
memory_inspect_entity | Inspect a person or topic: attributes, relationship edges, and linked events. |
memory_read_archive | Read an archived profile or a past month referenced by the deep index. |
memory_dispatch | Delegate a durable fact, update, correction, or forgetting request to the memory agent. |
Memory tools are only exposed when the bot's scope allows them. A conversation can also be excluded from memory individually.
Sync across devices
With a Relay, Memory v3 syncs incrementally between paired devices:
- Changes push and pull through the Relay's memory endpoints; conflicts merge last-write-wins.
- Consolidation leases prevent concurrent reorganizing across devices.
- Each bot keeps its own scope, so syncing does not widen what a work bot can see.
- After signing into a different account, Sora offers to merge incoming memory with the local copy or replace it.
Without a Relay, memory stays on the device where it was written.
Where it lives
Memory is stored in the Sora data directory as a SQLite database (memory.db) in WAL mode with an FTS5 index for deep search. Session logs are separate JSONL files; they are the source of truth for conversations, while memory is the derived long-term layer. Backing up the data directory captures both.
Related
- Getting Started — choose a memory scope during bot setup.
- Orch orchestration — which memory each worker inherits.
- Self-Hosting Relay — enabling cross-device sync.
