Skip to main content
MemContext gives your AI system a simple memory workflow:
  1. Save durable context.
  2. Search for relevant context before generating an answer.
  3. Use scopes to isolate users or tenants.
  4. Send feedback when results are helpful or wrong.
You do not need to manage deduplication, evolving facts, or retrieval quality yourself.

Save Memories

Use POST /api/memories, the TypeScript SDK, or MCP save_memory.
MemContext returns a status that tells you what happened: For large notes, use the returned jobId to track extraction.

Search Memories

Search before your app generates a response or makes a decision.
Each result includes memory content, optional category/project information, and a relevance score.

Use Scopes For Isolation

Use scope as the hard boundary for your own users, tenants, accounts, or organizations.
Only memories saved in that scope are searched when the same scope is provided. If you omit scope, MemContext searches only the unscoped memory lane. Use project for grouping inside a scope:

Handle Changing Information

You can save updated information without manually deleting old memories. Example:
  1. Save: User prefers long-form LinkedIn posts.
  2. Later save: User now prefers short hook-first LinkedIn posts.
MemContext can return the newer memory during search while preserving history for audit or debugging through the history endpoint.

Use Categories

Categories help you filter and reason about memory:

Use Expiry For Temporary Facts

Set validUntil when a memory should stop being used after a specific time.
Expired memories are excluded from search.
  1. Search MemContext with the current user or workspace context.
  2. Add the returned memories to your AI prompt.
  3. Generate the answer in your own app.
  4. Save any durable new preference, fact, or decision.
  5. Send feedback when retrieved memories were useful or wrong.