Docs/Models & AI

User Guide · 2.4.1 Release

Assistant and global memories

Automatic reading, cache modes, and memory migration

Read Markdown
On this page

What is Memory?#

Memories store long-term user preferences, project background, and other stable facts. Memories serve strictly as historical background—whenever a memory conflicts with the current system prompt or your instructions in the current turn, the current system prompt and current turn take precedence.

Enabling memory and the memory tool#

Toggling Enable Memory is the sole master switch. When the active model supports tool calling, the app automatically attaches the built-in memory_tool on every send; there is no separate switch in assistant tools or the chat tool picker, and you do not need to check anything manually.

When a model does not support tool calling, the app automatically falls back to syncing memories into the system prompt so memory continues working. Incognito Chat is the exception: it never reads, injects, or modifies long-term memories.

Assistant-local vs. Global Memories#

  • Assistant memory: Belongs exclusively to the current assistant—ideal for project-specific assistants.
  • Global Memories: Shared across all assistants set to Global only or Use both—ideal for lasting preferences, preferred name, and general work background.
  • Use both: Reads both Global Memories and the current assistant's memories simultaneously, letting the model see which scope each entry belongs to. New entries default to assistant memory and are written to global memory only when you explicitly ask to share them across assistants; updates and deletions follow each entry's original scope. Editing global memory affects every other assistant that uses it.

Single-group scope remains the default, and existing assistants keep their previous choice without automatically turning on Use both. Switching scope neither moves nor deletes existing memories. In Use both mode, the management page lets you toggle between both groups; adding, importing, refining, and Recent Changes apply to whichever group is currently selected.

Memory write modes#

Memory writing has three modes, configured per assistant and shared across native and Web chat:

  • Manual: The AI can read existing memories but cannot add, edit, or delete them.
  • Confirm: The AI proposes the complete change, and you review its scope and before/after content on a confirmation card where you can edit before saving or reject it; nothing is written to active memory before you confirm. Global memory changes affect other assistants using it.
  • Automatic: The AI can add, edit, or delete memories directly, with undo and Recent Changes preserved.

Upgrades preserve previous behavior: disabling auto-maintenance maps to Manual, enabling it maps to Automatic, and new assistants continue defaulting to Manual. On Web, you can switch the current assistant's write mode from the top assistant menu, while enabling Memory itself is still configured in the app. Confirmation is designed to control memory quality and does not guarantee reduced token usage.

Memory reading modes#

  • Auto sync: Freezes the current memory baseline into the system prompt on the first turn so the system prompt prefix stays unchanged across subsequent turns, reliably protecting prompt prefix cache hits. Memories added or updated mid-conversation are appended to the end of the current user message as an incremental <memory_updates> block; the baseline refreshes only when an existing baseline memory is deleted or when context is compressed or reset.
  • On-demand: Keeps the system prompt completely static without preloading memory bodies. Models with tool support search on demand using memory_tool's read action with query keywords (up to 8 entries and 6,000 characters combined per read). Models without tool support perform local keyword retrieval against your current message and attach matching memories as <memory_recall> on the current user message—without altering the system prompt prefix, injecting nothing when there are no matches, and never falling back to full injection. After a memory is modified, only that action's result refreshes the affected entry rather than attaching a full memory snapshot.

Neither mode rewrites historical messages. Past read results retain the snapshot from when they were invoked; after a memory changes, the next read returns the latest state from the database, which takes precedence.

Manual management#

After saving memory settings under Assistants → Edit assistant → Basic → Memory, open the dedicated memory management page to manually add, edit, disable, or delete records. Tap a row to edit; swipe right to promote/demote or edit; swipe left to delete. Turning off Enable Memory does not erase saved memories—it only pauses reading, injection, and automatic maintenance.

Recent Changes (Recycle Bin)#

Before any memory is modified, deleted, or bulk-replaced by AI refinement, its prior content is automatically saved to Recent Changes, accessible from the top-right menu on the memory management page. Snapshots are kept for 30 days and can be restored in one tap: if the original entry still exists, the old content overwrites it; if deleted, a new entry is recreated with the old content. Restoring also creates a snapshot, so you can roll back again anytime. Whenever the AI automatically remembers or modifies a memory during chat, a View toast appears—tap it to open that assistant's memory list (or Global Memories) directly to inspect the change, and go back to return to chat; open Recent Changes from there whenever you want to restore an earlier version.

Moving memories between Global and Assistant scope#

Individual records can be moved or copied between assistant-private memory and Global Memories:

  • On an assistant's private memory page, promote a single memory to Global Memories.
  • On the Global Memories page, demote a single memory to any assistant with local memory enabled.
  • Moving relocates the original record; copying creates a new record at the target while keeping the source intact.

Move or clone between assistants#

Move or clone memories performs batch operations on local memories between assistants via Assistants → Edit assistant → Basic → Memory → Move or clone memories (shown only for assistants with local memory enabled). Moving transfers the source assistant's local memories to the target assistant; cloning copies them to the target while keeping the originals on the source. Both the source and target assistants must have local memory enabled.

When deleting an assistant#

Deleting an assistant never silently discards non-empty local memories. If the assistant holds local memories, you are first asked either to move them to another assistant with local memory enabled or to explicitly delete them. Associated conversations still move to the Default Assistant following assistant deletion rules.

Provide time info#

Located on the Chat Behavior card under Assistants → Edit assistant → Basic, disabled by default. When turned on, the app supplies a time reminder directly from existing message timestamps on the first turn, across day boundaries, or whenever at least one hour has passed since the last reminder—without saving extra environment snapshots or attaching UI language metadata.

Search, webpage fetching, and Memory do not automatically enable this setting. When disabled, no time reminder is injected, while memory injection and automatic maintenance remain unaffected.

Pro Memory AI#

Pro members have access to two AI capabilities on the memory management page:

  • Bulk import: Copy the extraction prompt provided on the page → paste it into another AI platform so it compiles your memories → paste the result back so the AI parses, previews, deduplicates, and imports records in bulk. Great for migrating large memory collections from other tools in one step. If you already have a .md or .txt memory file (such as a desktop agent's CLAUDE.md), tap Import from file to read it directly without copy-pasting.
  • Desktop agent migration: Desktop agents such as Claude Code and Codex can write memories directly through the Web Server—see "Desktop Agent Migration".
  • Smart refinement: Lets the AI automatically deduplicate, merge, and distill existing memories into a cleaner set. You can refine everything, or long-press to enter multi-select and check specific entries to refine only the selected items, leaving unselected items untouched—ideal for polishing one category without touching the rest.

Best practices#

  • For bulk import, copy the extraction prompt provided on the page first and generate structured output on the other platform before pasting back for the highest recognition accuracy.
  • Smart refinement modifies and merges existing entries; after confirming replacement, original entries remain in Recent Changes and can be recovered for 30 days.
  • When you only want to clean up one category of memories, use multi-select Refine so unselected entries remain untouched instead of modifying everything.
  • Both features are Pro exclusives; non-Pro users will be guided to unlock Pro when tapping them.