Programmable memory
for agentic systems

Define what gets extracted, stored, and updated using schemas as your programming language. Written by developers or agents, executed by xmemory, and evolved alongside your workflows.

Request access

Why xmemory is different

Program your memory

Schemas are the programming language for memory. Define what to extract, what to exclude, and how records relate and update. xmemory applies that specification to memory operations.

Build with developers and agents

Write schemas directly or have an agent author them from your workflow. Inspect the specification, test it against real inputs, and refine the rules that shape your memory.

Evolve with your workflow

Change your memory logic as your application changes. Developers and agents can revise schemas, test extraction behaviour, and migrate existing memory as requirements evolve.

Read more

Your workflow changes
Your memory code evolves

Start with a customer's current subscription. When your workflow needs scheduled upgrades,
extend the schema and test the new extraction rules.

01 / Current subscriptions

Define what “current” means

XMD field excerpt

current_plan:
  type: str
  description: >-
    The customer's active plan.
    Exclude scheduled changes.

For “Acme is on Basic and upgrades to Pro on 1 October 2026,” the current plan is Basic.

02 / Add scheduled upgrades

Extend the same memory model

Keep current_plan; add these XMD fields

scheduled_plan:
  type: str
  description: >-
    A confirmed future plan change.
    Exclude hypothetical upgrades.
effective_on:
  type: str
  description: >-
    Scheduled change date, YYYY-MM-DD.

The same input should now also extract scheduled_plan: Pro and effective_on: 2026-10-01.

Key use cases

Define the memory your agents need, from recurring project tasks to shared team workflows.

Reliable state for agents

Define the plans, task states, research findings, and tool knowledge your agents share. Evolve that memory model as your workflows grow and change.

Memory for your agent tools

Connect xmemory to Claude Code, Codex, the Claude app, or ChatGPT. Build structured memory for recurring tasks and ongoing projects, and share it across your team so agents can reuse knowledge across tools and sessions.

Governed agentic workflows

Make memory rules explicit and operations reviewable. Inspect stored records, trace reads and writes, and test schema changes before applying them to your workflow.

Measurements

Measured against real memory failure modes

We evaluate whether systems can store, update, deduplicate, and retrieve facts and relationships reliably, not just whether they can recall similar text.*

xmemory97.10%
Mem0 (no graph)87.24%
Cognee86.18%
Mem0 (graph)86.07%
Supermemory80.49%
Zep80.16%

* Read more about measurement methodology and open benchmarks in our white paper.

Token consumption

Lower token use than text-based memory by optimising reads.

2x+ fewer tokens

Assuming 10 reads per write,
10 write tokens per 5 read tokens for xmemory,
and 5 write tokens per 12 read tokens for typical text-based storage architecture.

Integrate into your stack

Quickstart

Please install xmemory using this prompt

Our blog

View all posts →

Resources

Preview of the xmemory white paper
xmemory white paper

From Unstructured Recall to Schema-Grounded Memory

Read
Featuring xmemoryPreview of the Bessemer Venture Partners article AI Infrastructure Roadmap: Five frontiers for 2026
Bessemer Venture Partners

AI Infrastructure Roadmap: Five frontiers for 2026

Read
Featuring xmemoryPreview of the Andreessen Horowitz article Why We Need Continual Learning
Andreessen Horowitz

Why We Need Continual Learning

Read

FAQ

What exactly can I control?

Your XMD schema defines the objects, fields, allowed values, identity keys, and relationships in memory. Its descriptions instruct extraction: what qualifies, what to exclude, how to interpret evidence, and how to normalise values. Developers or agents can author those rules, inspect stored records, and test extraction before persisting inputs. See the XMD guide for the programming language and examples.

How does memory evolve when my workflow changes?

Maintain your schema alongside your workflow code. Developers and agents can revise extraction instructions, add fields or relationships, and test the new behaviour against representative inputs. Validate the revised schema and review a migration dry run before applying changes to existing memory. xmemory also provides tools to suggest schema improvements. Read about schema evolution and the validation and migration workflow.

How is xmemory different from MCP over Postgres?

You define the memory model and extraction rules in schemas that developers and agents can write, test, and evolve. xmemory executes that specification through the pipeline that turns natural-language agent input into structured, validated records:

  • Schema extraction and mapping
  • Validation and type enforcement
  • Deduplication and stateful updates
  • Relations and queryable state
  • Provenance and observability
  • Schema creation and evolution
  • Async write queues to unlock agentic workflows while keeping latency low

MCP exposes database tools; you still need to implement the extraction and memory update pipeline. With xmemory, you maintain the schema that governs memory behaviour, while the engine runs that pipeline. For the deeper architectural argument, seeShould Agents Adapt to Systems - or Should Systems Adapt to Agents?.

What if I don’t have a schema yet?

You can write the schema yourself, have your agent author it, or generate a starting point from a workflow description. Every path gives you an explicit specification to inspect and test:

  • You can start with loose schemas, then move toward normalized, structured data as you learn more about the use case.
  • xmemory can generate a starting XMD schema from historic data or a workflow description. Review its extraction rules and test representative inputs before using it for writes.
  • Developers and agents can revise that schema as requirements change, testing behaviour and reviewing migrations before applying updates.

SeeHow xmemory works for the full flow, then use the XMD guide when you want to review or improve extraction.

Why not just use text memory or vector memory?

Text and vector memory can retrieve relevant context. Schemas let you also specify what qualifies as a fact, how it is represented, and how records relate and update. xmemory uses those instructions to extract and validate structured records that you can inspect and query. Natural-language instructions still guide extraction; the memory specification is explicit, testable, and maintained alongside your workflow. For the fuller argument, readSchema as the Core of Reliability in AI Memory.

What is the place for xmemory in my stack?

xmemory is external storage that agents use like a database or file store to save and retrieve context. Agents can create memory instances themselves, define schemas for a task on the fly, or use fixed instances for longer-lived context. It can reliably replace an agentic system of record, or run as a sidecar validation engine with periodic sync to the system of record, so people can review updates before they merge. The simple rule is: whenever agents need to save and retrieve text information, that layer can be xmemory. You can jump straight to theintegration guidesinHow xmemory works.

Try it out

Tell us what your agents need to remember and how that memory should behave. We’ll help you define the schema and connect xmemory to your workflow.