Deterministic Memory Engine · 100% on LongMemEval

Stop trusting probabilistic guesses.
Give your AI deterministic memory.

Vector databases return stale facts alongside current ones, and LLM memory wrappers hallucinate on every write. Memoria is a deterministic long-term memory engine for AI agents — same input, identical state, exact recall in 14 ms with zero LLM tokens. Start free with 1,000 memories & API calls.

Works out of the box with: Claude Code Cursor Windsurf OpenCode VS Code / Cline Python & TS Agents

100% deterministic recall

Stateful, temporal, and counting queries are solved deterministically in 12–17 ms with zero LLM calls.

Exact state & belief revision

Typed Supersedes, Causal, and DependsOn edges ensure updated facts deterministically suppress outdated state.

One memory across every IDE

One key connects Claude Code, Cursor, Windsurf, OpenCode, or your production agent to a shared, isolated namespace.

Zero Stochastic Drift · Same Input → Identical State

Why deterministic memory is the whole game

When an AI agent manages production code, customer accounts, or financial state, "top-k cosine similarity" is not memory — it is a coin flip. Memoria replaces probabilistic vector guesswork and LLM write-wrappers with a deterministic memory engine.

1. Deterministic Write Path (0 LLM Calls)

Probabilistic Vector / LLM Wrappers Calls a paid LLM on every write to summarize chat history — non-deterministic, slow, and drops exact numbers, dates, or identifiers.
Memoria Deterministic Engine Deduplicates facts, redacts PII, quarantines prompt injections, and indexes structured state deterministically in <15 ms with zero LLM calls.

2. Deterministic Belief Revision (Supersedes)

Probabilistic Vector / LLM Wrappers Returns both PostgreSQL 14.2 and PostgreSQL 16.1 because both match the query vector — leaving the agent to guess which is current.
Memoria Deterministic Engine Tracks state updates automatically via Supersedes links and deterministically suppresses outdated facts — returning only 16.1.

3. Deterministic Multi-Session Counting & Reasoning

Probabilistic Vector / LLM Wrappers Misses "How many fish do I own?" when memories say "3 tetras" and "a pleco", and hallucinates multi-session sums or date diffs.
Memoria Deterministic Engine Resolves category hierarchies, temporal windows, and multi-session state changes across 15 languages — computing exact counts, date diffs, and totals in 14 ms.

4. Reproducible, Auditable Recall Traces

Probabilistic Vector / LLM Wrappers Black-box embedding scores; impossible to prove to compliance or engineering why a memory surfaced or disappeared.
Memoria Deterministic Engine Every recall is 100% reproducible and emits an auditable trace (GET /v1/trace/recent) showing why each memory was selected.
Zero-Friction Daily Workflow · Automatic Hooks + On-Demand Tools

How you use Memoria day-to-day

Once installed, Memoria works automatically in the background of every coding session — and gives you slash commands, 30 MCP tools, and a REST API whenever you want explicit control.

STEP 01 SessionStart Hook

Auto-loads context when you open your IDE

Before your first prompt, Memoria reads your working directory, git branch, and last 3 commits, queries POST /v1/memories/context, and injects your prior decisions and active tasks.

Automatic · 12.9 ms · 4,096 token budget
STEP 02 UserPromptSubmit + Write/Edit

Learns from your corrections & design logs

Say "No, don't do X, use Y instead" or save a design-log/*.md plan — Memoria automatically encodes a high-salience rule (0.9) with a Supersedes edge so mistakes never repeat.

Write-gated · Automatic deduplication
STEP 03 30 MCP Tools

Navigates your codebase & history on demand

Your agent calls recall_memories, search_code, explain_code, find_references, impact, and navigate directly over MCP instead of grepping blind.

JSON-RPC 2.0 · /v1/mcp
STEP 04 PreCompact + Stop Hooks

Survives context compaction & session restarts

When your IDE compacts a full context window, Memoria snapshots your working state beforehand and restores it right after — then consolidates your session summary when you quit.

Compact Guard · Zero lost state
What your AI agent sees automatically at the start of every session Injected by the SessionStart hook / build_context MCP tool from https://memoria.kolivri.com/v1/memories/context:
Live <memory_context> output
<memory_context>
## Established Facts
- Architecture (src/server.js): Express portal + /v1/* Cloud MCP & REST router backed by Cloud SQL. [confidence: 0.94]
- Rule (correction): Never use git rebase in this repo; always merge and run npm test before pushing. [confidence: 0.91]

## Recent Context
- Completed PayPal v2 checkout integration and 1,000-call free quota enforcement (402 QUOTA_EXCEEDED). [confidence: 0.88]
</memory_context>
Interactive Product Reference

Everything you can run: Slash Commands, MCP Tools & Prompts

Click any tab below to see the exact slash commands, MCP tools, natural-language prompts, and HTTP API calls you can use right away.

Slash CommandWhen to Run ItWhat It Does
/memoria-doctor Right after installing or anytime to check status Verifies your ~/.memoria/config.env API key, tests /v1/health & MCP connectivity, shows your namespace memory count & 30-day quota usage, and runs a live recall check.
/memoria-sync-code Once per repo (or after major refactors) Indexes your repository's functions, classes, types, call graph, and directory containment hierarchy into Memoria Cloud so search_code, explain_code, find_references, and navigate work in milliseconds.
/memoria-wrap-up At the end of a coding session or feature Summarizes what was accomplished, architectural decisions made, root causes fixed, and open next steps — encodes them with high salience and runs consolidate to merge duplicates.
/memoria-sync When importing existing plans or design logs Scans .claude/plans/, .opencode/plans/, and design-log/ markdown files and syncs them into your organization's cloud namespace.
Core Memory & Lifecycle Tools
  • build_context — Token-budgeted structured context for any topic
  • encode_memory / batch_encode — Store episodic, semantic, or core memories
  • recall_memories — Scored graph + BM25 retrieval with salience filter
  • consolidate — Merge near-duplicates & reinforce edges
  • feedback — Reward useful memories (+salience) or dampen noise
  • forget_memory / delete_by_context — Surgical memory deletion
  • health & stats — Engine status, tier breakdown & quota usage
Code Intelligence & Navigation Tools
  • search_code & find_file — Locate functions, types, and files without grep
  • explain_code — Symbol definition, callers, callees & test coverage
  • find_references & impact — Full blast radius before changing a signature
  • call_tree & implementors — Upstream/downstream call graph & trait impls
  • diff_risk, dead_code & test_gaps — Pre-merge quality & risk analysis
  • explain_diff & explain_error — Diagnose stack traces using repo history
  • navigate & get_hierarchy — Walk the repo containment tree (ZoomIn/Out/Peek)
Resume Work Across Sessions

"Recall our context from Memoria on this project — what was the last bug we fixed and what is left in the design log?"

Save a Permanent Team Rule

"Encode a semantic rule in Memoria with salience 0.95: never mock Cloud SQL in integration tests; always run against the test schema."

Code Blast-Radius Check

"Use Memoria explain_code and find_references on verifyToken before we change its return shape."

End-of-Day Handover

"Run /memoria-wrap-up so all decisions and remaining tasks from today's session are consolidated in Memoria."

Direct REST API (works from Python, TypeScript, Go, Rust, or curl)
# Python / TypeScript / cURL — Direct HTTP Cloud API (https://memoria.kolivri.com)

# 1. Encode a memory or permanent team rule (POST /v1/memories)
curl -fsSL -X POST https://memoria.kolivri.com/v1/memories \
  -H "Authorization: Bearer $MEMORIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "namespace": "my-saas-backend",
    "type": "semantic",
    "salience": 0.9,
    "content": "Billing webhooks must verify PayPal signatures via verifyWebhookSignature before upgrading org plans.",
    "context": [["file", "src/paypal.js"], ["category", "security"]]
  }'

# 2. Build token-budgeted context for an agent prompt (POST /v1/memories/context)
curl -fsSL -X POST https://memoria.kolivri.com/v1/memories/context \
  -H "Authorization: Bearer $MEMORIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"namespace": "my-saas-backend", "query": "billing webhook security rules", "token_budget": 4096}'
Verified Evaluation Suite

Benchmarked against vector, keyword, and LLM-extracted memory

Deterministic state tracking and multi-session reasoning achieve 100% on LongMemEval with zero paid LLM API calls during encode or recall.

500 / 500 (100%)
LongMemEval
500 multi-session conversation questions · 0.14s/q · $0 API cost
102 / 102 (100%)
Hebrew LongMemEval
100% multilingual accuracy across 15 supported languages · 14 ms · $0 API cost
12.9 ms
IntelBench Recall Latency
100.0% recall coverage across 103 engineering & dependency queries (12–17 ms)
5 / 5 (100%)
Architecture Stress Suite
Fact drift, adversarial quarantine, diversity, temporal & numeric (vs. 20% Cosine+ML)

LongMemEval (500 multi-session questions)

Multi-session recall across temporal updates, fact superseding, counting, and cross-session synthesis.

Memoria (Deterministic Memory Engine) · 12.9 ms · $0 write cost 500/500 · 100.0%
Hindsight (Vectorize) · multi-turn LLM reflect() 94.6% (LongMemEval-S)
Mem0 (Managed Cloud) · 1–2 paid LLM calls per write 93.4% (claimed)
Zep / Graphiti (gpt-5.4) · 104/162 ms p50/p95 451/500 · 90.2%
BM25 / Cosine Vector Baselines 89.2–89.8%
Letta / MemGPT (LOCOMO) · agent file search 74.0%

Full Benchmark Matrix

Standardized multi-session recall, multilingual reasoning, and code intelligence benchmarks.

BenchmarkMemoriaBaselineLatency / Cost
LongMemEval (500 q)100.0% (500/500)89.8% BM25 · 89.2% Cosine · 93.4% Mem00.14s/q · $0
Hebrew LongMemEval (102 q)100.0% (102/102)15-language multilingual reasoning suite14 ms · $0
IntelBench (103 q)100.0% recallMRR 0.63 · 9 reasoning categories12.9 ms avg
Synthetic Stress (5 suites)100.0% (5/5)20.0% (1/5) Cosine+ML<15 ms · $0
TanakhBench (21,438 docs)68.8% (11/16)56.2% (9/16) BM25Cross-ref recall
2026 Head-to-Head Architecture Comparison

Memoria vs. Mem0 vs. Zep/Graphiti vs. Hindsight vs. Cognee vs. Letta

Why engineering teams replace LLM-wrapper memory services and vector databases with Memoria's deterministic memory engine.

Capability Memoria Hindsight Mem0 Zep / Graphiti Cognee Letta (MemGPT)
LongMemEval Accuracy 100.0% (500 / 500) 94.6% (LongMemEval-S) 93.4% (claimed) 90.2% (451 / 500) Not published 74.0% (LOCOMO)
Multilingual / Hebrew LongMemEval 100.0% (102 / 102 · 15 langs) English-centric LLM prompt dependent English-centric LLM prompt dependent LLM prompt dependent
LLM Tokens Spent per Write 0 tokens ($0) LLM extraction / reflect() 1–2 LLM calls / write Async LLM extraction Python ECL LLM pipeline Agent tool-call tokens
Recall Latency 12.9 ms 50–350 ms (Postgres) 400–1,800 ms 104 ms p50 / 162 ms p95 250–1,400 ms 500–2,500 ms
Deterministic Belief Revision Automatic Supersedes revision Entity consolidation Probabilistic LLM prompt Temporal window (t_invalid) Graph re-indexing Agent file overwrite
Code Graph & MCP Tools 30 MCP tools + 3 resources Memory bank tools 11 text memory tools Graph search tools 14 MCP tools (codify) Agent harness only
15 AI Coding Clients Auto-Configured · macOS · Linux · Windows PowerShell

Connect all 15 AI coding clients in one command

One installer automatically configures Claude Code, Cursor, Windsurf, OpenCode, Claude Desktop, OpenAI Codex CLI, Gemini CLI, VS Code Copilot, Zed, Cline, Roo Code, Kilo Code, Continue.dev, Goose, and Amp.

Memoria Universal Cloud Plugin & 15-Client Auto-Installer

Includes 8 automatic lifecycle hooks (SessionStart, PreCompact, PostCompact, UserPromptSubmit, PostToolUse, Stop), 4 slash commands (/memoria-sync, /memoria-sync-code, /memoria-wrap-up, /memoria-doctor), 30 MCP tools, and 3 MCP resources (@memory://rules).

macOS / Linux / WSL · Auto-configures Claude Code + all 15 AI clients (SHA-256 verified)
curl -fsSL https://memoria.kolivri.com/downloads/install.sh | MEMORIA_KEY=mem_dev_your_key_here bash
Cursor (~/.cursor/mcp.json · auto-configured by installer, 1-click button above, or paste JSON)
{
  "mcpServers": {
    "memoria": {
      "type": "http",
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
Windsurf (~/.codeium/windsurf/mcp_config.json · auto-configured by installer or paste JSON)
{
  "mcpServers": {
    "memoria": {
      "type": "http",
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
OpenAI Codex CLI (auto-configures ~/.codex/mcp.json + ~/.codex/AGENTS.md)
curl -fsSL https://memoria.kolivri.com/downloads/install.sh | MEMORIA_KEY=mem_dev_your_key_here bash
OpenCode (auto-installs ~/.config/opencode/plugins/memoria-hooks.js + opencode.json)
curl -fsSL https://memoria.kolivri.com/downloads/install.sh | MEMORIA_KEY=mem_dev_your_key_here bash
Claude Desktop (claude_desktop_config.json · auto-configured by installer)
{
  "mcpServers": {
    "memoria": {
      "type": "http",
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
VS Code / GitHub Copilot (~/.vscode/mcp.json · auto-configured by installer or 1-click button)
{
  "mcpServers": {
    "memoria": {
      "type": "http",
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
Zed Editor (~/.config/zed/settings.json · auto-configured by installer)
{
  "context_servers": {
    "memoria": {
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
Cline (~/.cline/mcp_settings.json), Roo Code (~/.roo/mcp.json) & Kilo Code (~/.kilocode/mcp.json)
{
  "mcpServers": {
    "memoria": {
      "type": "http",
      "url": "https://memoria.kolivri.com/v1/mcp",
      "headers": { "Authorization": "Bearer mem_dev_your_key_here" }
    }
  }
}
Gemini CLI (~/.gemini/settings.json), Goose (~/.config/goose/mcp.json), Amp & Continue.dev
curl -fsSL https://memoria.kolivri.com/downloads/install.sh | MEMORIA_KEY=mem_dev_your_key_here bash
Windows PowerShell Auto-Installer (configures Cursor, Windsurf, VS Code, Claude Code, Claude Desktop & OpenCode)
$env:MEMORIA_KEY="mem_dev_your_key_here"; irm https://memoria.kolivri.com/downloads/install.ps1 | iex
HTTP Cloud API (https://memoria.kolivri.com/v1/memories/context)
curl -fsSL --proto '=https' --tlsv1.2 -X POST https://memoria.kolivri.com/v1/memories/context \
  -H "Authorization: Bearer mem_dev_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"namespace":"my-project","query":"architecture decisions and active tasks","token_budget":4096}'
SHA-256 (.tar.gz): f4842aad57fe07ecb9e881b48b2b648504f4a462abcbb16eb5e111bd24704229 · (.zip): 20a2f5af3e31a8cf32a41f5056f6f2e9771a7ae98379bdade5d261f1df9132f0
Auto-Context & Compact Guard Loads relevant project memories on SessionStart and restores working state after context compaction.
Correction & Plan Encoding Automatically encodes user corrections, design logs, and code edits through a quality write-gate.
Cross-IDE Shared Memory Switch between Claude Code, Cursor, Windsurf, and OpenCode on the same repo — all share the same deterministic memory graph.
Transparent Usage Pricing · Instant PayPal Upgrade

Start free with 1,000 memories & API calls

Every account includes all 30 MCP tools, the Claude Code / Cursor / Windsurf / OpenCode plugin, and isolated namespaces. Upgrade in one click when you scale.

Free Starter No card needed
$0 / free tier
1,000 memories & API calls
1 seat · Hard 402 cap at 1,000 calls
  • All 30 deterministic MCP tools
  • Claude Code, Cursor, Windsurf & OpenCode plugin
  • Isolated organization namespace
  • PII redaction & prompt-injection quarantine
Start free — 1,000 calls →
Developer 100× Free Quota
$19 / month
100,000 / 30d memories & API calls
1 seat · Rolling 30-day window
  • 100,000 API calls & memories per 30 days
  • Full code-graph indexing (/memoria-sync-code)
  • Step-by-step recall traces (/v1/trace/:id)
  • Multiple named API keys & instant revocation
Get Developer →
Startup Most Popular
$79 / month
500,000 / 30d memories & API calls
Up to 5 team seats
  • 500,000 API calls & memories per 30 days
  • Shared team memory across 5 engineers
  • Cross-IDE memory (Claude Code + Cursor + Windsurf)
  • Metacognitive confidence & contradiction detection
Get Startup →
Business Scale
$299 / month
2,000,000 / 30d memories & API calls
Up to 20 team seats
  • 2,000,000 API calls & memories per 30 days
  • Up to 20 team seats & role management
  • Full security audit trail & webhook events
  • Dedicated high-throughput production namespaces
Get Business →
FAQ · Quotas, Multi-IDE Sharing & Security

Frequently asked questions

How is usage counted, and what happens at 1,000 calls?

Every account starts with 1,000 free API calls & memories. Each REST call or MCP tools/call counts as 1 call (batch writes count 1 per memory in the batch), while MCP handshakes (initialize, ping, tools/list) and /v1/health are free (0 calls). At 1,000 calls, requests return 402 Payment Required until you upgrade on /account.

Can I use the same key in Claude Code, Cursor, Windsurf, and OpenCode?

Yes. Running the 1-line installer configures all four IDEs automatically. Because namespaces are derived from your project directory and scoped to your organization, you can switch IDEs mid-task and share the exact same memory graph.

How is my organization data isolated and secured?

Raw API keys are shown once and stored only as SHA-256 hashes. Every memory is strictly isolated by your organization ID and namespace in Cloud SQL. The plugin stores your key in ~/.memoria/config.env with 0600 permissions, verifies archive SHA-256 checksums before install, and pipes Bearer headers via curl -K - stdin so keys never appear in ps aux.

Do I need to manually tell the AI to save or read memories?

No. In Claude Code and OpenCode, the 8 lifecycle hooks automatically load context on SessionStart, save state before context compaction (PreCompact), and encode corrections and plan edits. In Cursor, Windsurf, and VS Code, the agent calls the 30 MCP tools automatically.

Give your AI agents exact, deterministic recall today

Create a free account (1,000 API calls & memories included) → copy your key → run the 1-line installer.