Memory infrastructure for AI agents
Scoped, time-aware context for your agents. Audit trails you can query.
- 93.8%LongMemEval-S · 469 / 500
- 91.8%LoCoMo
- 48msp50 recall
docker run -d -p 3141:3141 -v cortexdb-data:/data -e OPENAI_API_KEY=$OPENAI_API_KEY -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY cortexdb/cortexdb:latest
Watch scattered experience become usable memory.
Three implementation stories show the complete loop: source experience, evolving memory, the decision it enables, and the outcome that returns.
Your systems remember in fragments.
Tickets, conversations, documents, product events, decisions, corrections, and outcomes live in tools that were never designed to learn together.
14 AugRequirement changed · evidence attached
15 AugPolicy v4.2 supersedes v4.1
16 AugEscalation resolved the issue
What should happen next?
CurrentRequirement changed after the original case.
Valid nowThe revised policy governs this decision.
Prior outcomeEscalation resolved the same condition.
Memory state updated
Memory has more than one job.
Persistence, changing truth, experience, shared context, and selection are different behaviours—not five labels for the same retrieval trick.
Carry the relationship across sessions.
Preferences, interactions, and feedback stay available when the user returns and when another agent continues the work.
The closest memory can still be wrong.
CortexDB does not stop at semantic similarity. It checks current state, validity, revisions, relationships, and evidence before context reaches the agent.
gate
The valid memory wins.
The highest similarity score is rejected because the policy was superseded. The current rule arrives with its source and revision history intact.
Recorded 15 Aug · supersedes v4.1 · evidence attached
Everything you need to compound intelligence.
One memory substrate for preserving experience, tracking changing truth, selecting context, surviving failure, sharing safely, and connecting the systems where work happens.
Preserve experience before you compress it.
Capture immutable events, form episodes, derive facts and beliefs, and synthesize understanding. Read each layer independently or retrieve them as one stratified context pack.
Know what was true and when you learned it.
Every derived record carries two clocks. Corrections update the present without deleting the state an earlier decision actually saw.
Recall the right mix, not one flat bag.
Fuse semantic and lexical retrieval, rerank candidates, and return events, episodes, facts, beliefs, and understanding with narrative context and provenance.
Keep memory through crashes and replay.
Append captures to an immutable write-ahead log, persist them in RocksDB, and reproduce derived layers asynchronously instead of rewriting memory on the write path.
WAL→RocksDB
storage→Replicated
cluster
Share memory without flattening boundaries.
Organise tenants, teams, agents, and users in hierarchical scope paths. Recall up for shared context or down for specific context while each scope retains its own policy.
Bring source context into one memory layer.
Connect workplace systems, conversations, documents, and product data while retaining the source needed to audit important memories later.
Keep the controls production AI needs.
Make preservation, deletion, authorization, and audit part of the memory model instead of rebuilding them around a vector store in application code.
Fast recall on a durable memory substrate.
The recall path plans, searches, reranks, gates, and enriches context. Under it, a Raft-replicated RocksDB cluster keeps the memory service available and horizontally scalable.
From query to decision-ready context.
Hybrid search, reranking, validity gates, and graph enrichment in one recall path.
Memory that survives the process.
Immutable capture, replicated storage, leader election, and horizontal scaling beneath every recall.
Measured memory, not a demo that remembers.
Published here as reported runs, with the test setup visible. Benchmark results, latency, and cost belong together because accuracy without operating context is incomplete.
Long-term memory accuracy
Reported production-server run: WAL + RocksDB + HNSW. Claude Opus 4.6 answerer. Run dated 2 May 2026.
Long-conversation memory
Reported stage: cats1234_typed_tokens_v1, judged 3 May 2026. Mem0’s cited self-reported score is 91.6%; CortexDB trails on this benchmark while leading it on the reported LongMemEval-S run.
Memory should fit your infrastructure, not escape it.
Define where memory runs, what crosses data boundaries, and who operates each layer before recommending an architecture.
Plan deployment around your infrastructure, data-boundary, and operating requirements.
Discuss deployment requirements ↗Start where history changes the answer.
Bring one agent workflow. We will map what it needs to remember, what changes over time, and where the memory layer must run.
Discuss an agent workflow ↗