Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

Add agent memory guides with qualified model and access claims

xerj-orgec6f21c42c0b
diff --cc content/answers/agentic-memory-vs-rag.md
index 000000000,09bc414dd..2a01f529f
mode 000000,100644..100644
--- a/content/answers/agentic-memory-vs-rag.md
+++ b/content/answers/agentic-memory-vs-rag.md
@@@ -1,0 -1,89 +1,89 @@@
+ ---
+ title: "Agentic memory vs RAG: what is the difference?"
+ h1: "Agentic memory vs RAG: what is the difference?"
-description: "RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one."
++description: "RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node."
+ slug: "agentic-memory-vs-rag"
+ cluster: "Agent memory: concepts"
+ question: "What is the difference between agentic memory and RAG?"
+ intent: "informational"
+ published: "2026-10-28"
+ updated: "2026-10-28"
+ author: "XERJ documentation team"
+ reviewer: "XERJ engineering team"
+ schema_type: "TechArticle"
+ structured_data: [faq]
+ agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, run xerj autoindex on this project folder for RAG-style retrieval, store two facts I tell you with POST /_memory/project, then answer one question using both the index and memory recall and cite where each part came from."
-answer: "What is the difference between agentic memory and RAG? RAG retrieves from documents someone prepared ahead of time; the agent only reads. Agentic memory is a store the agent writes to itself during work and reads back later. Both depend on good search, so XERJ serves document search and agent memory from the same local binary."
++answer: "What is the difference between agentic memory and RAG? RAG retrieves evidence to inform generation, including documents or conversation history. Agentic memory retains information across tasks; RAG can be its retrieval step. Both depend on good search, so XERJ serves document search and agent memory from the same local binary."
+ intent_group: "agent memory"
+ queries:
+ - "agentic memory vs RAG"
+ - "agent memory vs RAG"
+ - "RAG vs agentic RAG"
+ - "do AI agents need memory or RAG"
+ evidence:
+ - claim: "Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We Thought: a raw-history RAG baseline ranks first among the compared memory systems in six of seven benchmark-model settings."
+ source: "https://arxiv.org/abs/2610.30755"
+ - claim: "Do Conversational Agents Need Explicit Memory? finds only localized gains for explicit memory systems and no consistent advantage over strong raw-history RAG baselines."
+ source: "https://arxiv.org/abs/2610.24671"
+ - claim: "XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls with BM25 by default, each namespace is its own index."
+ source: "engine/crates/xerj-api/src/memory_api.rs"
+ commands:
+ - cmd: "curl -fsSL https://xerj.org/get | sh"
+ note: "Install the single XERJ binary."
+ - cmd: "xerj autoindex ./docs"
+ note: "The RAG side: index a folder of documents so the agent can search them."
+ - cmd: "curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{\"text\":\"The customer asked for weekly reports, not daily.\"}'"
+ note: "The memory side: the agent saves something it learned during the task."
+ links_out:
+ - "what-is-agentic-memory"
+ - "what-is-an-mcp-memory-server"
+ - "rag-without-vector-database"
+ - "compare/xerj-vs-agent-memory-tools"
+ - "compare/xerj-vs-vector-database"
+ faq:
+ - q: "Is agentic memory the same as RAG?"
- a: "No. RAG reads from documents that already exist. Agentic memory is written by the agent during its work, then read back later. The read step works the same way in both: a search."
++ a: "They overlap. RAG is a retrieval-and-generation technique; agentic memory is information retained across tasks. A memory system can use RAG to retrieve its stored notes or raw history."
+ - q: "What is agentic RAG?"
+ a: "RAG where the agent decides when and what to search, often over several rounds, instead of one fixed lookup before the answer."
+ - q: "Do I need both?"
+ a: "Often yes. Use RAG for docs, code and data you already have. Use memory for things the agent learns that are written nowhere else, such as a user preference."
+ - q: "Is complex agent memory better than plain retrieval?"
+ a: "Not always. Two 2026 arXiv studies found plain retrieval over raw history often matched or beat more complex memory systems on their benchmarks."
+ - q: "Can one tool do both?"
+ a: "Yes. XERJ indexes your files for search and also has a /_memory API for agent notes, in the same local binary."
+ ---
+
-**TL;DR**: RAG reads from documents someone already wrote. Agentic memory is a store the agent writes to itself while it works, then reads back later. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.
++**TL;DR**: RAG retrieves evidence for generation. Agentic memory keeps information across tasks and can use RAG to retrieve it. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.
+
+ ## The difference in one table
+
+ | | RAG | agentic memory |
+ | --- | --- | --- |
-| who writes the data | people, before the task | the agent, during the task |
++| data source | documents, raw history or other indexed records | retained preferences, events and decisions |
+ | what it holds | docs, code, tickets, data | preferences, decisions, lessons |
-| changes during work | rarely | yes, the agent adds and deletes |
++| changes during work | depends on the retrieval source | the memory workflow may add, update or delete |
+ | how it is read | search | search |
+
+ ## Agentic RAG sits in between
+
-Agentic RAG means the agent decides when and what to search, often in several rounds. It still only reads. Once the agent also writes notes for later, you have agentic memory.
++Agentic RAG means the agent decides when and what to search, often in several rounds. Its sources can change during work. Persisting notes or history for later tasks adds a memory workflow; the two are compatible.
+
+ ## Simple often wins
+
-Two arXiv studies from 2026 tested this. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.
++Two 2026 arXiv preprints evaluated specific conversational-memory tasks. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.
+
-The lesson: keep the raw text, and make search good. Complex memory pipelines can lose the evidence they were built to keep.
++These results motivate testing a raw-history baseline alongside transformed memory. Raw-RAG uses dense retrieval, reranking and a reader LLM; its results do not measure XERJ or its default lexical embedder.
+
+ ## How XERJ does both
+
+ XERJ is the search engine for AI agents: a new way for AI to search for data.
+
+ - RAG side: `xerj autoindex <folder>` makes your files searchable.
+ - Memory side: `POST /_memory/{namespace}` saves a note and `_recall` finds it. Plain query recall is BM25.
-- Both live in one local binary, with no vector database and no API key.
++- Both live in one local binary without a separate vector database. The lexical default needs no external model-provider key; secured node access uses a XERJ API key.
+
+ The default embedder is lexical feature hashing. For neural embeddings, start the node with `--embed-mode neural`. XERJ is single-node.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent. It indexes a folder, stores two facts and answers a question from both.
diff --cc content/answers/store-agent-memory-without-llm-call.md
index 2c0d8b704,7e635ffa3..5e721c9de
--- a/content/answers/store-agent-memory-without-llm-call.md
+++ b/content/answers/store-agent-memory-without-llm-call.md
@@@ -1,7 -1,7 +1,7 @@@
---
title: "Stop agent memory filling with duplicate notes"
h1: "How do I stop an agent memory store from filling with near-duplicate notes?"
--description: "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call."
++description: "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in."
slug: "store-agent-memory-without-llm-call"
cluster: "Agent memory: model dependency"
question: "How do I dedup agent memory?"
@@@ -13,7 -13,7 +13,7 @@@ reviewer: "XERJ engineering team
schema_type: "TechArticle"
structured_data: [faq]
agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, then POST the same fact twice to /_memory/agentmem on a running XERJ node with dedup true and dedup_threshold 0.95, confirm the second response carries created false and deduplicated true and the same id, POST a reworded version of the same fact and report whether it deduplicated, then recall the namespace and report how many documents it holds."
--answer: "How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path."
++answer: "How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. There is no generative summarization step; the configured embedder still runs."
key_fact: "The default dedup threshold is a cosine similarity of 0.95."
key_fact_source: "engine/crates/xerj-api/src/memory_api.rs"
key_fact_date: "2026-10-19"
@@@ -24,7 -24,7 +24,7 @@@ commands
- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user prefers p50 and p95 latency, never the mean.\",\"dedup\":true,\"dedup_threshold\":0.95}'"
note: "Store with the near-duplicate check on. Send this twice: the second call returns the first id with deduplicated true and writes nothing."
- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user prefers p50 and p95 latency, never the mean.\",\"metadata\":{\"topic\":\"preferences\"}}'"
-- note: "Store one memory with the check off, which is the default. No model runs on this path and no summarization step exists."
++ note: "Store one memory with the check off, which is the default. The configured embedder runs; no generative summarization step exists."
- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem/_recall' -H 'content-type: application/json' -d '{\"query\":\"where is the deploy runbook\",\"k\":5}'"
note: "Plain recall. This runs BM25 over the memory text and invokes no embedder."
- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem/_recall' -H 'content-type: application/json' -d '{\"query\":\"which file documents restarting the service\",\"semantic\":true,\"k\":5}'"
@@@ -44,16 -45,16 +45,16 @@@ faq
- q: "How do I keep long-term memory from repeating itself?"
a: "Deduplicate at write time and choose the threshold deliberately. The comparison uses the configured embedder, which by default is lexical feature hashing, so it matches wording rather than meaning."
- q: "Can I store agent memory without an LLM call?"
-- a: "Yes. A store call is one HTTP POST that writes a document. XERJ runs no model, no summarization and no extraction step on that path."
++ a: "Yes. A store call is one HTTP POST that writes a document. There is no generative summarization or fact-extraction step. The text is still embedded using the configured lexical, neural or proxy backend."
- q: "Does recall call a model?"
a: "Only when you ask. A plain `query` runs BM25, a supplied `vector` runs kNN on your own embedding, and `semantic: true` embeds server-side."
- q: "What embedder runs for semantic recall?"
a: "Lexical feature hashing by default, which is a hash function with no model and no network call. `--embed-mode neural` swaps in a downloaded MiniLM-class model."
- q: "Does XERJ rewrite or summarize what I store?"
-- a: "No. The stored `text` is the text you sent. There is no model in the write path to change it."
++ a: "No. The stored `text` is the text you sent. Embedding creates a companion vector without rewriting the supplied text."
---
--**TL;DR** — Send `dedup: true` on the store call and XERJ returns the existing id with `"deduplicated": true` instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No model and no summarization runs on the write path.
++**TL;DR** — Send `dedup: true` on the store call and XERJ returns the existing id with `"deduplicated": true` instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No generative summarization runs; the configured embedder creates a companion vector.
## Turn on the near-duplicate check at write time
@@@ -67,9 -68,9 +68,9 @@@ The comparison uses the embedder the no
`_recall` accepts `recency_weight`, clamped between 0 and 1, which blends the stored time into the ranking. Leave it out and the ranking is relevance only. Nothing ages out on its own, so the write-time check is what keeps the store small.
--## The write path has no model in it
++## The write path preserves the text and embeds it
--One request to `POST /_memory/{namespace}` with a `text` field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. No model reads it, rewrites it or summarizes it.
++One request to `POST /_memory/{namespace}` with a `text` field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. The configured embedder reads the text to create its search vector, but does not rewrite or summarize the stored text.
```json
{"created":true,"id":"2b00ed19-8741-49ca-8318-54e9ba8c7a58","namespace":"agentmem"}
@@@ -79,7 -80,7 +80,7 @@@ The stored document carries what you se
## What the network watch saw
--Our capture polled `/proc/net/tcp` and `/proc/net/tcp6` against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.
++With the default lexical backend, our capture polled `/proc/net/tcp` and `/proc/net/tcp6` against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.
```json
{"count_distinct_non_loopback_peers":0,"samples_taken":31,
diff --cc content/answers/what-is-agentic-memory.md
index 000000000,5208fe48c..0c143d2b4
mode 000000,100644..100644
--- a/content/answers/what-is-agentic-memory.md
+++ b/content/answers/what-is-agentic-memory.md
@@@ -1,0 -1,102 +1,102 @@@
+ ---
+ title: "What is agentic memory? A plain answer"
+ h1: "What is agentic memory?"
+ description: "Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally."
+ slug: "what-is-agentic-memory"
+ cluster: "Agent memory: concepts"
+ question: "What is agentic memory?"
+ intent: "definition"
+ published: "2026-10-28"
+ updated: "2026-10-28"
+ author: "XERJ documentation team"
+ reviewer: "XERJ engineering team"
+ schema_type: "TechArticle"
+ structured_data: [faq]
+ agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start one local node, store one durable fact with POST /_memory/agentmem, recall it with POST /_memory/agentmem/_recall, and report the exact hit you got back."
+ answer: "What is agentic memory? It is memory that an AI agent manages itself: the agent decides what to save, writes it through a tool call, and searches it again in a later task or session. It differs from a chat history because it is stored outside the model and survives restarts. XERJ serves it as a search endpoint."
+ intent_group: "agent memory"
+ queries:
+ - "agentic memory"
+ - "what is agentic memory"
+ - "AI agent memory"
+ - "agentic memory types"
+ - "long-term memory for AI agents"
+ evidence:
+ - claim: "LangChain describes agents updating memory in the hot path, where the agent explicitly decides to remember facts, usually via tool calling, or in the background by a separate process."
+ source: "https://www.langchain.com/blog/memory-for-agents"
+ - claim: "LangChain, after the CoALA paper, splits agent long-term memory into procedural, semantic and episodic memory."
+ source: "https://www.langchain.com/blog/memory-for-agents"
+ - claim: "XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls, DELETE /_memory/{namespace}/{id} forgets one entry, each namespace is its own .xerj-memory-{namespace} index."
+ source: "engine/crates/xerj-api/src/memory_api.rs"
+ - claim: "xerj mcp exposes xerj_memory_store and xerj_memory_recall as MCP tools."
+ source: "landing/docs/agents/schemas/mcp-tools.json"
+ commands:
+ - cmd: "curl -fsSL https://xerj.org/get | sh"
+ note: "Install the single XERJ binary."
+ - cmd: "curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user wants answers in metric units.\"}'"
+ note: "The agent saves one fact. Port 9200 is the default Elasticsearch-compatible listener."
+ - cmd: "curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem/_recall' -H 'content-type: application/json' -d '{\"query\":\"which units does the user want\",\"k\":3}'"
+ note: "A later task reads it back. Plain query recall is BM25 over the stored text."
+ links_out:
+ - "agentic-memory-vs-rag"
+ - "what-is-an-mcp-memory-server"
+ - "compare/xerj-vs-agent-memory-tools"
+ - "agent-memory-without-postgres-qdrant"
+ - "store-agent-memory-without-llm-call"
+ - "/docs/recipes/agentic-memory"
+ faq:
+ - q: "What is agentic memory in simple words?"
+ a: "Notes an AI agent keeps for itself. The agent saves a fact with a tool call and looks it up later, so the fact outlives the chat that produced it."
+ - q: "How is agentic memory different from a context window?"
+ a: "The context window is what the model sees right now and it is lost when the session ends. Agentic memory lives in a store outside the model and is searched back in when needed."
+ - q: "What types of agentic memory are there?"
+ a: "A common split, from the CoALA paper as summarized by LangChain, is semantic memory for facts, episodic memory for past events and procedural memory for how to do a task."
+ - q: "Does agentic memory need a vector database?"
+ a: "No. Recall is a search problem. XERJ stores memories as documents in one local binary and recalls them with BM25 by default, with no second database."
+ - q: "Can an agent use XERJ memory over MCP?"
+ a: "Yes. The xerj mcp server exposes xerj_memory_store and xerj_memory_recall, which call the same /_memory endpoints."
+ - q: "Does XERJ forget memories on its own?"
+ a: "No. There is no decay and no TTL. A memory is permanent until explicitly forgotten with DELETE /_memory/{namespace}/{id}."
+ ---
+
+ **TL;DR**: Agentic memory is memory an AI agent manages for itself. The agent decides what to keep, saves it with a tool call, and searches it again in a later task. Recall is a search problem, so XERJ serves agent memory as two endpoints on one local search engine.
+
+ ## The short definition
+
+ An agent with memory can say "remember this" and find it again next week. The memory lives outside the model, in a store the agent reads and writes through tools.
+
+ LangChain calls the agent-driven version updating memory "in the hot path": the agent itself decides to remember a fact, usually via a tool call, before it answers. The other route is a background process that writes memory for the agent.
+
+ ## The three common types
+
+ | type | what it holds | example |
+ | --- | --- | --- |
+ | semantic | facts | the user wants metric units |
+ | episodic | past events | the deploy failed last Tuesday on step 3 |
+ | procedural | how to do a task | run the linter before every commit |
+
-This split comes from the CoALA paper, as summarized by LangChain. Most agent memory tools store all three as text and differ in how they write and recall it.
++This split comes from the CoALA paper, as summarized by LangChain. A memory application can represent these as text, structured records or links, depending on its retrieval needs.
+
+ ## Memory is search
+
+ Saving a note is simple. The hard part is getting the right note back out when the agent asks a vague question months later. That is a retrieval job, which is why XERJ treats memory as a search feature and not as a separate database.
+
+ ## How XERJ does it
+
+ XERJ is the search engine for AI agents: a new way for AI to search for data, in one local binary. Memory is part of the same API.
+
-- `POST /_memory/{namespace}` saves a fact. No model runs on the write path.
++- `POST /_memory/{namespace}` saves a fact. The configured embedder runs at write time; the default is lexical feature hashing.
+ - `POST /_memory/{namespace}/_recall` finds it again. Plain `query` recall is BM25.
+ - `DELETE /_memory/{namespace}/{id}` forgets one entry.
-- Each namespace is its own index, so two agents do not read each other's notes.
++- Each namespace is its own index. Use separately scoped API keys to restrict agents to their own namespaces; names alone are not an access boundary.
+ - Over MCP, `xerj mcp` exposes the same calls as `xerj_memory_store` and `xerj_memory_recall`.
+
+ The default embedder is lexical feature hashing, so `semantic: true` recall matches shared words, not meaning. Start the node with `--embed-mode neural` for a real neural embedder.
+
+ ## Limits to know
+
+ XERJ is single-node: no replication and no failover. There is no decay and no TTL. A memory is permanent until explicitly forgotten. The only time signal is `stored_at`, which the optional `recency_weight` re-rank uses.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent, or follow the [agent memory recipe](/docs/recipes/agentic-memory).
diff --cc content/answers/what-is-an-mcp-memory-server.md
index 000000000,3d7e9b4aa..f1608c5ff
mode 000000,100644..100644
--- a/content/answers/what-is-an-mcp-memory-server.md
+++ b/content/answers/what-is-an-mcp-memory-server.md
@@@ -1,0 -1,89 +1,89 @@@
+ ---
+ title: "What is an MCP memory server?"
+ h1: "What is an MCP memory server?"
+ description: "An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally."
+ slug: "what-is-an-mcp-memory-server"
+ cluster: "Agent memory: concepts"
+ question: "What is an MCP memory server?"
+ intent: "definition"
+ published: "2026-10-28"
+ updated: "2026-10-28"
+ author: "XERJ documentation team"
+ reviewer: "XERJ engineering team"
+ schema_type: "TechArticle"
+ structured_data: [faq]
+ agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, register xerj mcp as an MCP server in this client, call xerj_memory_store with one fact in namespace agentmem, then call xerj_memory_recall and report the hit."
+ answer: "What is an MCP memory server? It is a Model Context Protocol server that gives an AI assistant tools to save facts and recall them later, so memory survives across chats and clients. The assistant calls the tools itself. XERJ ships one inside its binary: xerj mcp exposes xerj_memory_store and xerj_memory_recall."
+ intent_group: "agent memory"
+ queries:
+ - "MCP memory server"
+ - "what is an MCP memory server"
+ - "mcp memory server claude code"
+ - "local MCP memory server"
+ evidence:
+ - claim: "The reference MCP memory server stores a graph of entities, relations and observations in a local JSONL file set by MEMORY_FILE_PATH."
+ source: "https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md"
+ - claim: "xerj mcp exposes xerj_memory_store, which proxies POST /_memory/{namespace}, and xerj_memory_recall, which proxies POST /_memory/{namespace}/_recall."
+ source: "landing/docs/agents/schemas/mcp-tools.json"
+ - claim: "Each XERJ memory namespace is backed by its own .xerj-memory-{namespace} index."
+ source: "engine/crates/xerj-api/src/memory_api.rs"
+ commands:
+ - cmd: "curl -fsSL https://xerj.org/get | sh"
+ note: "Install the single XERJ binary. The MCP server is the xerj mcp subcommand of the same binary."
+ - cmd: "xerj mcp --help"
+ note: "Show the MCP server options. It talks to a node you already started; it does not start one."
+ links_out:
+ - "what-is-agentic-memory"
+ - "set-mcp-memory-storage-path"
+ - "private-agent-memory-namespaces"
+ - "compare/xerj-vs-agent-memory-tools"
+ - "/docs/recipes/agentic-memory"
+ faq:
+ - q: "What does an MCP memory server do?"
+ a: "It gives an AI assistant tools to write facts to a store and read them back later. Any MCP client, such as Claude Code or Cursor, can call those tools."
+ - q: "How is it different from a normal MCP server?"
+ a: "It is a normal MCP server whose tools happen to be about memory. The protocol is the same; only the tools differ."
+ - q: "What does the reference MCP memory server store?"
+ a: "The modelcontextprotocol reference server keeps entities, relations and observations in a local JSONL file. You choose the file with MEMORY_FILE_PATH."
+ - q: "Which memory tools does xerj mcp expose?"
+ a: "xerj_memory_store saves a fact to a namespace and xerj_memory_recall finds it again. They call POST /_memory/{namespace} and its _recall endpoint on a local node."
+ - q: "Does the XERJ memory server need an API key or a model?"
- a: "No. No model runs on the write path, and the default embedder is lexical feature hashing inside the binary, so it works offline."
++ a: "The default lexical embedder needs no model download or external provider key. A secured XERJ node still requires its own API key. Neural or proxy embedding is optional and also runs when memories are stored."
+ - q: "Where does XERJ keep the memories?"
+ a: "In the node data directory, one .xerj-memory-{namespace} index per namespace. Change the location by starting the node with a different data directory."
+ ---
+
+ **TL;DR**: An MCP memory server is a Model Context Protocol server whose tools save and recall facts, so an agent keeps what it learned across chats. XERJ ships one in the same binary as its search engine: `xerj mcp` exposes `xerj_memory_store` and `xerj_memory_recall`.
+
+ ## The short definition
+
+ MCP is the protocol AI clients like Claude Code and Cursor use to call outside tools. A memory server is an MCP server with two jobs: save a fact when the assistant asks, and find it again later.
+
+ The assistant decides when to call those tools. That is what makes the memory agentic.
+
+ ## Two common designs
+
+ | design | what it stores | how it finds things |
+ | --- | --- | --- |
+ | the reference server | entities, relations and observations in a JSONL file | reads the graph and matches names and text |
+ | XERJ | each fact as a document in a search index | BM25 search by default, with filters |
+
+ The reference server from the modelcontextprotocol project is a good small start. XERJ fits when memory should sit next to the files and data your agent already searches.
+
+ ## How XERJ does it
+
+ XERJ is the search engine for AI agents. `xerj mcp` is an MCP stdio server inside the same binary. Point it at a local node you already started.
+
-- `xerj_memory_store` saves a fact to a namespace. No model runs on the write path.
++- `xerj_memory_store` saves a fact to a namespace. The configured embedder runs at write time; lexical feature hashing is the default.
+ - `xerj_memory_recall` finds it again. The default is BM25 over the stored text.
-- Each namespace is its own index, so two agents can keep private memories on one laptop.
++- Each namespace is its own index. Privacy between agents requires separately scoped API keys, not only different namespace names.
+
+ The default embedder is lexical feature hashing. Recall with `semantic: true` matches shared words unless the node runs with `--embed-mode neural`.
+
+ ## Limits to know
+
+ XERJ is single-node. Memories are permanent until explicitly forgotten; there is no decay and no TTL.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent, or read the [agent memory recipe](/docs/recipes/agentic-memory).
diff --cc content/compare/xerj-vs-agent-memory-tools.md
index 000000000,8fc850604..743288c14
mode 000000,100644..100644
--- a/content/compare/xerj-vs-agent-memory-tools.md
+++ b/content/compare/xerj-vs-agent-memory-tools.md
@@@ -1,0 -1,118 +1,118 @@@
+ ---
+ title: "XERJ vs Mem0, Zep, Letta and Cognee for agent memory"
+ h1: "XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee"
+ description: "How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one."
+ slug: "xerj-vs-agent-memory-tools"
+ cluster: "Comparison: agent memory"
+ question: "Should I use Mem0, Zep, Letta, Cognee or XERJ for AI agent memory?"
+ intent: "comparison"
+ published: "2026-10-28"
+ updated: "2026-10-28"
+ author: "XERJ documentation team"
+ reviewer: "XERJ engineering team"
+ schema_type: "Article"
+ structured_data: [faq]
+ agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, store three facts about this project with POST /_memory/project, recall each one with POST /_memory/project/_recall, and tell me whether plain search recall is enough for my agent before I add an LLM-based memory tool."
-answer: "Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no model on the write path."
++answer: "Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no generative fact-extraction step."
+ intent_group: "agent memory"
+ queries:
+ - "mem0 vs zep vs letta"
+ - "mem0 alternative open source"
+ - "zep alternative self-hosted"
+ - "agent memory tools comparison"
+ - "self-hosted agent memory no LLM"
+ evidence:
- - claim: "Mem0 requires an LLM to function, with gpt-5-mini from OpenAI as the default, and uses OpenAI text-embedding-3-small as the default embedder. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0."
- source: "https://github.com/mem0ai/mem0"
++ - claim: "Mem0 uses an LLM for its default fact-extraction flow and an embedding model for retrieval. Its add API also supports infer=false to store raw text without fact extraction. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0."
++ source: "https://github.com/mem0ai/mem0/blob/main/docs/core-concepts/memory-operations/add.mdx"
+ - claim: "Zep Cloud is the managed product. Zep Community Edition is deprecated and unsupported. Graphiti is the open-source framework inside Zep for temporal context graphs, and you supply the graph database, LLM and embedder."
+ source: "https://github.com/getzep/zep"
+ - claim: "Graphiti is an Apache-2.0 framework for building temporal context graphs for AI agents; you bring your own graph database such as Neo4j or FalkorDB."
+ source: "https://github.com/getzep/graphiti"
+ - claim: "Letta (formerly MemGPT) is a harness for stateful agents with memory blocks and a git-versioned memory filesystem (MemFS). The local runtime keeps agent state on the device. Apache 2.0."
+ source: "https://github.com/letta-ai/letta-code"
+ - claim: "Letta docs describe MemFS as the git-versioned memory filesystem agents read, write and reorganize."
+ source: "https://docs.letta.com/llms.txt"
+ - claim: "Cognee is an Apache-2.0 open-source AI memory platform that turns documents, code and conversations into a graph of entities and relationships plus searchable chunks. It runs locally without an LLM key using a local GLiNER extraction model; an LLM key adds generated answers."
+ source: "https://github.com/topoteretes/cognee"
- - claim: "XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, no model runs on the write path, and each namespace is its own index."
++ - claim: "XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, the configured embedder runs at write time, with lexical feature hashing by default, and each namespace is its own index."
+ source: "engine/crates/xerj-api/src/memory_api.rs"
+ commands:
+ - cmd: "curl -fsSL https://xerj.org/get | sh"
+ note: "Install the single XERJ binary."
+ - cmd: "curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{\"text\":\"Releases are cut from the main branch on Fridays.\"}'"
+ note: "Store one fact exactly as the agent wrote it."
+ - cmd: "curl -s -XPOST 'http://127.0.0.1:9200/_memory/project/_recall' -H 'content-type: application/json' -d '{\"query\":\"when do we release\",\"k\":3}'"
+ note: "Recall it. Plain query recall is BM25 over the stored text."
+ links_out:
+ - "xerj-vs-vector-database"
+ - "xerj-vs-khoj"
+ - "answers/what-is-agentic-memory"
+ - "answers/what-is-an-mcp-memory-server"
+ - "answers/agentic-memory-vs-rag"
+ - "answers/store-agent-memory-without-llm-call"
+ faq:
+ - q: "What is the main difference between XERJ and Mem0?"
- a: "Mem0 uses an LLM to extract facts from conversations, and its README says it requires one. XERJ stores the text your agent sends as is and finds it with search, with no model on the write path."
++ a: "Mem0 extracts facts by default and supports raw inserts with infer=false. XERJ stores the supplied text and generates a search vector with its configured embedder, lexical feature hashing by default."
+ - q: "Is Zep open source?"
+ a: "Zep Cloud is a commercial cloud product. Zep Community Edition is deprecated. The open-source part is Graphiti, an Apache-2.0 framework where you bring your own graph database, LLM and embedder."
+ - q: "Is Letta a memory layer?"
+ a: "Letta is broader: it is a harness for stateful agents, with memory blocks and a git-versioned memory filesystem. You run your agent inside Letta rather than calling it as a store."
+ - q: "Does Cognee need an LLM?"
+ a: "Not for ingestion and retrieval. Its README says it runs locally with a GLiNER model and a local embedder, and an LLM key adds generated answers."
+ - q: "When is XERJ the better fit?"
+ a: "When you want memory as plain searchable records on your own machine, next to the files and data your agent already searches, without an LLM or a second database."
+ - q: "Did you benchmark these tools against each other?"
+ a: "No. No head-to-head was run. This page compares what each project documents about itself."
+ ---
+
-**TL;DR**: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no model on the write path. No head-to-head was run.
++**TL;DR**: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no generative fact-extraction step. No head-to-head was run.
+
+ ## What each one is
+
+ | tool | what it is | needs a model to store? | license |
+ | --- | --- | --- | --- |
-| Mem0 | memory layer that extracts facts with an LLM | yes, OpenAI by default | Apache 2.0 |
++| Mem0 | fact extraction by default; raw inserts with infer=false | LLM extraction optional; embeddings still apply | Apache 2.0 |
+ | Zep and Graphiti | Zep Cloud, plus the open Graphiti framework for temporal context graphs | Graphiti: you supply the LLM | Graphiti: Apache 2.0 |
+ | Letta | harness for stateful agents with memory blocks and MemFS | runs your agent's model | Apache 2.0 |
-| Cognee | memory platform that builds a graph of entities and relationships | no; a local GLiNER model by default | Apache 2.0 |
-| XERJ | search engine for AI agents with a memory API | no | Apache 2.0 |
++| Cognee | memory platform that builds a graph of entities and relationships | local extraction and embedding models; LLM optional | Apache 2.0 |
++| XERJ | search engine for AI agents with a memory API | lexical by default; neural/proxy embedder optional | Apache 2.0 |
+
+ Each row comes from the project's own README, linked in the sources.
+
+ ## The real difference
+
-The four tools above transform what the agent says before they store it. Mem0 extracts facts. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.
++These tools support different memory workflows. Mem0 extracts facts by default and can also store raw text. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.
+
-XERJ keeps the raw text the agent sends and makes it searchable. That is less clever, and it is also cheaper and easier to inspect. Recent research points the same way: two 2026 studies found plain retrieval over raw history often matches more complex memory systems. See [agentic memory vs RAG](/answers/agentic-memory-vs-rag).
++XERJ keeps the raw text the agent sends and makes it searchable. Keeping the original text makes it possible to inspect what was stored. Two 2026 preprints report competitive raw-history retrieval on their evaluated tasks; neither evaluates XERJ or establishes its cost or quality. See [agentic memory vs RAG](/answers/agentic-memory-vs-rag).
+
+ ## When to choose Mem0 instead
+
-Choose Mem0 when you want a model to turn chats into short facts. Expect an LLM call on every write. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.
++Choose Mem0 when you want a model to turn chats into short facts. Its default extraction path calls an LLM; infer=false skips that extraction, while embedding configuration still matters. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.
+
+ ## When to choose Zep or Graphiti instead
+
+ Choose Zep Cloud when you want Zep to run it for you. Choose self-hosted Graphiti when facts change over time and you must know what was true when. Graphiti expects a graph store such as Neo4j or FalkorDB.
+
+ ## When to choose Letta instead
+
+ Choose Letta when you want the whole agent, not just a store. It puts memory blocks, a memory filesystem, skills and channels in one harness.
+
+ ## When to choose Cognee instead
+
+ Choose Cognee when you want documents, code and chats turned into a graph of entities and relationships. Cognee is a Python stack.
+
+ ## When to choose XERJ
+
+ Choose XERJ when you want memory and search in one place, on your machine, with nothing extra to run.
+
+ - Store with `POST /_memory/{namespace}` and recall with `_recall`. Over MCP, use `xerj_memory_store` and `xerj_memory_recall`.
-- Each namespace is its own index, so agents keep private memories.
++- Each namespace is its own index; use separately scoped API keys to enforce access between agents.
+ - The same binary also searches your files, logs and code, so memory and data sit side by side.
+
+ ## Limits you inherit with XERJ
+
+ XERJ is single-node: no replication and no failover. It does not extract facts or build entity links for you. The default embedder is lexical feature hashing, so `semantic: true` recall matches shared words unless you start the node with `--embed-mode neural`. Memories are permanent until explicitly forgotten.
+
+ ## What was not measured
+
-No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Every competitor fact comes from that project's own README or docs, checked on 2026-10-28.
++No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Competitor behavior is described from the linked project documentation, checked on 2026-10-29. These integrations were not executed in this review.
diff --cc content/compare/xerj-vs-khoj.md
index 19b1e1c79,3e2cf065b..07aeb4fc7
--- a/content/compare/xerj-vs-khoj.md
+++ b/content/compare/xerj-vs-khoj.md
@@@ -49,7 -50,7 +50,7 @@@ faq
- q: "What is Khoj?"
a: "A self-hostable personal application with chat, custom agents, scheduled research, voice and image generation, plus clients for browser, Obsidian, Emacs, desktop, phone and WhatsApp."
- q: "Khoj vs a local search engine for an agent?"
-- a: "Khoj is the finished application. A local search engine is the layer underneath: XERJ has no chat window, no model of its own and no user interface."
++ a: "Khoj is the finished application. A local search engine is the layer underneath: XERJ focuses on retrieval, with a browser Console and an optional neural embedder; it does not provide a conversational personal assistant."
- q: "Self-hosted second brain vs a folder index?"
a: "Pick the second brain if you want the finished application. Pick the folder index if you already run an agent and need it to search local files."
- q: "What does Khoj need to run?"
@@@ -72,7 -73,7 +73,7 @@@ Khoj is not a search library with a dem
It also ships clients: browser, desktop, phone, Obsidian, Emacs and a WhatsApp path. That is a product, and building it is a different amount of work from building an index.
--XERJ has none of that. There is no chat window, no user interface, no model of its own and no phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.
++XERJ provides a browser Console for search and administration and an optional neural embedder. It does not provide a conversational personal assistant or a phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.
## What each one actually is
@@@ -115,7 -116,7 +116,7 @@@ Read that plainly: on the shipped defau
Khoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.
--XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 22 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.
++XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 23 tools on main, and `/_memory/{ns}` gives an agent namespaced memory in the engine.
## The limits you inherit with XERJ
diff --cc landing/answers/agentic-memory-vs-rag.html
index 000000000,fe0090b1c..cff2f4416
mode 000000,100644..100644
--- a/landing/answers/agentic-memory-vs-rag.html
+++ b/landing/answers/agentic-memory-vs-rag.html
@@@ -1,0 -1,473 +1,473 @@@
+ <!-- generated by build_articles.py — edit content/answers/agentic-memory-vs-rag.md instead -->
+ <!DOCTYPE html>
+ <html lang="en" data-theme="day">
+ <head>
+ <!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-Z77ETCDJYL');
+ </script>
+ <!-- ga4:end -->
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Agentic memory vs RAG: what is the difference?</title>
-<meta name="description" content="RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.">
++<meta name="description" content="RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%230b0b0d'/><text x='50' y='68' font-size='60' font-family='Big Shoulders Display,sans-serif' font-weight='900' fill='%23ffc400' text-anchor='middle'>X</text></svg>">
+ <script src="/theme.js"></script>
+ <link rel="stylesheet" href="/style.css?v=as2">
+ <link rel="alternate" type="text/markdown" href="/answers/agentic-memory-vs-rag.md">
+ <!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+ <link rel="canonical" href="https://xerj.org/answers/agentic-memory-vs-rag">
+ <meta property="og:site_name" content="XERJ.ai">
+ <meta property="og:type" content="article">
+ <meta property="og:title" content="Agentic memory vs RAG: what is the difference?">
-<meta property="og:description" content="RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.">
++<meta property="og:description" content="RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.">
+ <meta property="og:url" content="https://xerj.org/answers/agentic-memory-vs-rag">
+ <meta property="og:image" content="https://xerj.org/og/xerj-card.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="Agentic memory vs RAG: what is the difference?">
-<meta name="twitter:description" content="RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.">
++<meta name="twitter:description" content="RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.">
+ <meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "description": "A new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers.",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj",
+ "https://x.com/xerj_org"
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "TechArticle",
+ "headline": "Agentic memory vs RAG: what is the difference?",
- "description": "RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.",
++ "description": "RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.",
+ "url": "https://xerj.org/answers/agentic-memory-vs-rag",
+ "image": "https://xerj.org/og/xerj-card.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-28",
+ "dateModified": "2026-10-28",
+ "author": {
+ "@type": "Organization",
+ "name": "XERJ documentation team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/answers/agentic-memory-vs-rag"
+ },
+ "reviewedBy": {
+ "@type": "Organization",
+ "name": "XERJ engineering team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ "mainEntity": [
+ {
+ "@type": "Question",
+ "name": "Is agentic memory the same as RAG?",
+ "acceptedAnswer": {
+ "@type": "Answer",
- "text": "No. RAG reads from documents that already exist. Agentic memory is written by the agent during its work, then read back later. The read step works the same way in both: a search."
++ "text": "They overlap. RAG is a retrieval-and-generation technique; agentic memory is information retained across tasks. A memory system can use RAG to retrieve its stored notes or raw history."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "What is agentic RAG?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "RAG where the agent decides when and what to search, often over several rounds, instead of one fixed lookup before the answer."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Do I need both?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Often yes. Use RAG for docs, code and data you already have. Use memory for things the agent learns that are written nowhere else, such as a user preference."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Is complex agent memory better than plain retrieval?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Not always. Two 2026 arXiv studies found plain retrieval over raw history often matched or beat more complex memory systems on their benchmarks."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Can one tool do both?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Yes. XERJ indexes your files for search and also has a /_memory API for agent notes, in the same local binary."
+ }
+ }
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Answers",
+ "item": "https://xerj.org/answers/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "Agentic memory vs RAG: what is the difference?"
+ }
+ ]
+ }
+ </script>
+ <!-- seo:end -->
+ </head>
+ <body>
+ <nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/product">PRODUCT</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/answers/" class="active">ANSWERS</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://hub.xerj.org" rel="external">HUB</a>
+ <a class="nav-stars" href="https://github.com/xerj-org/xerj" rel="external" title="XERJ on GitHub" aria-label="XERJ on GitHub, 14,225 stars"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span class="nav-stars-n" data-gh-stars="14225">★ 14.2k</span></a>
+ <a href="https://x.com/xerj_org" rel="external" title="XERJ on X" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg></a>
+ <a href="https://discord.com/invite/yetXFusXfs" rel="external" title="XERJ on Discord" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.37a19.79 19.79 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.74 19.74 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.1 13.1 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.3 12.3 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.84 19.84 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg></a>
+ <span class="theme">
+ <button type="button" data-theme="day" class="active">DAY</button>
+ <span class="dash">·</span>
+ <button type="button" data-theme="night">NIGHT</button>
+ </span>
+ </nav>
+ <div class="docs-shell article-shell">
+ <main class="docs-content">
+ <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>AGENTIC MEMORY VS RAG: WHAT IS THE DIFFERENCE?</div>
+ <div class="kicker"><span>ANSWERS · AGENT MEMORY: CONCEPTS</span></div>
+ <h1>Agentic memory vs RAG: what is the difference?</h1>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-10-28 · UPDATED · 2026-10-28</div>
+ <div class="prompt-card answer-first" id="short-answer">
+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-28</span>
- <p>What is the difference between agentic memory and RAG? RAG retrieves from documents someone prepared ahead of time; the agent only reads. Agentic memory is a store the agent writes to itself during work and reads back later. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.</p>
++ <p>What is the difference between agentic memory and RAG? RAG retrieves evidence to inform generation, including documents or conversation history. Agentic memory retains information across tasks; RAG can be its retrieval step. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.</p>
+ </div>
- <p><strong>TL;DR</strong>: RAG reads from documents someone already wrote. Agentic memory is a store the agent writes to itself while it works, then reads back later. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.</p>
++ <p><strong>TL;DR</strong>: RAG retrieves evidence for generation. Agentic memory keeps information across tasks and can use RAG to retrieve it. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.</p>
+ <div class="prompt-card">
+ <span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>
+ <code>Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, run xerj autoindex on this project folder for RAG-style retrieval, store two facts I tell you with POST /_memory/project, then answer one question using both the index and memory recall and cite where each part came from.</code>
+ <button type="button" class="prompt-copy" data-copy="Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, run xerj autoindex on this project folder for RAG-style retrieval, store two facts I tell you with POST /_memory/project, then answer one question using both the index and memory recall and cite where each part came from.">COPY THE PROMPT</button>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -fsSL https://xerj.org/get | sh</code>
+ <button type="button" class="prompt-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY COMMAND</button>
+ <span class="hero-proof">Install the single XERJ binary.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>xerj autoindex ./docs</code>
+ <button type="button" class="prompt-copy" data-copy="xerj autoindex ./docs">COPY COMMAND</button>
+ <span class="hero-proof">The RAG side: index a folder of documents so the agent can search them.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{"text":"The customer asked for weekly reports, not daily."}'</code>
+ <button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9200/_memory/project&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;text&quot;:&quot;The customer asked for weekly reports, not daily.&quot;}&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">The memory side: the agent saves something it learned during the task.</span>
+ </div>
+ <h2>The difference in one table</h2>
+ <table>
+ <thead><tr><th></th><th>RAG</th><th>agentic memory</th></tr></thead>
+ <tbody>
- <tr><td>who writes the data</td><td>people, before the task</td><td>the agent, during the task</td></tr>
++ <tr><td>data source</td><td>documents, raw history or other indexed records</td><td>retained preferences, events and decisions</td></tr>
+ <tr><td>what it holds</td><td>docs, code, tickets, data</td><td>preferences, decisions, lessons</td></tr>
- <tr><td>changes during work</td><td>rarely</td><td>yes, the agent adds and deletes</td></tr>
++ <tr><td>changes during work</td><td>depends on the retrieval source</td><td>the memory workflow may add, update or delete</td></tr>
+ <tr><td>how it is read</td><td>search</td><td>search</td></tr>
+ </tbody>
+ </table>
+ <h2>Agentic RAG sits in between</h2>
- <p>Agentic RAG means the agent decides when and what to search, often in several rounds. It still only reads. Once the agent also writes notes for later, you have agentic memory.</p>
++ <p>Agentic RAG means the agent decides when and what to search, often in several rounds. Its sources can change during work. Persisting notes or history for later tasks adds a memory workflow; the two are compatible.</p>
+ <h2>Simple often wins</h2>
- <p>Two arXiv studies from 2026 tested this. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.</p>
- <p>The lesson: keep the raw text, and make search good. Complex memory pipelines can lose the evidence they were built to keep.</p>
++ <p>Two 2026 arXiv preprints evaluated specific conversational-memory tasks. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.</p>
++ <p>These results motivate testing a raw-history baseline alongside transformed memory. Raw-RAG uses dense retrieval, reranking and a reader LLM; its results do not measure XERJ or its default lexical embedder.</p>
+ <h2>How XERJ does both</h2>
+ <p>XERJ is the search engine for AI agents: a new way for AI to search for data.</p>
+ <ul>
+ <li>RAG side: <code class="inline">xerj autoindex &lt;folder&gt;</code> makes your files searchable.</li>
+ <li>Memory side: <code class="inline">POST /_memory/{namespace}</code> saves a note and <code class="inline">_recall</code> finds it. Plain query recall is BM25.</li>
- <li>Both live in one local binary, with no vector database and no API key.</li>
++ <li>Both live in one local binary without a separate vector database. The lexical default needs no external model-provider key; secured node access uses a XERJ API key.</li>
+ </ul>
+ <p>The default embedder is lexical feature hashing. For neural embeddings, start the node with <code class="inline">--embed-mode neural</code>. XERJ is single-node.</p>
+ <h2>Try it</h2>
+ <p>Copy the prompt on this page into your coding agent. It indexes a folder, stores two facts and answers a question from both.</p>
+ <h2>FAQ</h2>
+ <h3>Is agentic memory the same as RAG?</h3>
- <p>No. RAG reads from documents that already exist. Agentic memory is written by the agent during its work, then read back later. The read step works the same way in both: a search.</p>
++ <p>They overlap. RAG is a retrieval-and-generation technique; agentic memory is information retained across tasks. A memory system can use RAG to retrieve its stored notes or raw history.</p>
+ <h3>What is agentic RAG?</h3>
+ <p>RAG where the agent decides when and what to search, often over several rounds, instead of one fixed lookup before the answer.</p>
+ <h3>Do I need both?</h3>
+ <p>Often yes. Use RAG for docs, code and data you already have. Use memory for things the agent learns that are written nowhere else, such as a user preference.</p>
+ <h3>Is complex agent memory better than plain retrieval?</h3>
+ <p>Not always. Two 2026 arXiv studies found plain retrieval over raw history often matched or beat more complex memory systems on their benchmarks.</p>
+ <h3>Can one tool do both?</h3>
+ <p>Yes. XERJ indexes your files for search and also has a /_memory API for agent notes, in the same local binary.</p>
+ <h2>Evidence</h2>
+ <ul>
+ <li>Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We Thought: a raw-history RAG baseline ranks first among the compared memory systems in six of seven benchmark-model settings. — <a href="https://arxiv.org/abs/2610.30755">https://arxiv.org/abs/2610.30755</a></li>
+ <li>Do Conversational Agents Need Explicit Memory? finds only localized gains for explicit memory systems and no consistent advantage over strong raw-history RAG baselines. — <a href="https://arxiv.org/abs/2610.24671">https://arxiv.org/abs/2610.24671</a></li>
+ <li>XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls with BM25 by default, each namespace is its own index. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
+ </ul>
+ <h2>Related</h2>
+ <ul>
+ <li><a href="/answers/what-is-agentic-memory">What is agentic memory?</a></li>
+ <li><a href="/answers/what-is-an-mcp-memory-server">What is an MCP memory server?</a></li>
+ <li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li>
+ <li><a href="/compare/xerj-vs-agent-memory-tools">XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a></li>
+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>
+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a> <span class="mute">· same intent: agent memory</span></li>
+ </ul>
+ </main>
+ <nav class="docs-nav" aria-label="Article sections">
+ <div class="group">
+ <span class="label">ANSWERS</span>
+ <a href="/answers/"><span class="eyebrow">00</span>All Answers</a>
+ <a href="/answers/give-chatgpt-claude-local-file-access" class=""><span class="eyebrow">01</span>Can ChatGPT search a folder on my laptop, or do I need something else?</a>
+ <a href="/answers/code-search-mcp-for-claude-code" class=""><span class="eyebrow">02</span>I need my agent to find a passage and cite the file, not dump the whole tree. How?</a>
+ <a href="/answers/local-search-mcp-for-codex-and-cursor" class=""><span class="eyebrow">03</span>Search tool for a Codex agent, on the files you have</a>
+ <a href="/answers/mcp-api-search-or-vector-search" class=""><span class="eyebrow">04</span>Should an agent use API search or vector search?</a>
+ <a href="/answers/agentic-memory-vs-rag" class="active"><span class="eyebrow">05</span>Agentic memory vs RAG: what is the difference?</a>
+ <a href="/answers/what-is-agentic-memory" class=""><span class="eyebrow">06</span>What is agentic memory?</a>
+ <a href="/answers/what-is-an-mcp-memory-server" class=""><span class="eyebrow">07</span>What is an MCP memory server?</a>
+ <a href="/answers/knowledge-graphs-for-agent-memory" class=""><span class="eyebrow">08</span>Should agent memory use a knowledge graph?</a>
+ <a href="/answers/store-agent-memory-without-llm-call" class=""><span class="eyebrow">09</span>How do I stop an agent memory store from filling with near-duplicate notes?</a>
+ <a href="/answers/evidence-for-agent-memory-links" class=""><span class="eyebrow">10</span>How can agent-memory links retain evidence?</a>
+ <a href="/answers/private-agent-memory-namespaces" class=""><span class="eyebrow">11</span>How do I give two agents private memory on one laptop?</a>
+ <a href="/answers/coding-agent-memory-across-sessions" class=""><span class="eyebrow">12</span>How do people store user preferences so an agent can recall them next week?</a>
+ <a href="/answers/search-claude-code-past-sessions" class=""><span class="eyebrow">13</span>Search Claude Code past sessions on disk</a>
+ <a href="/answers/set-mcp-memory-storage-path" class=""><span class="eyebrow">14</span>How do I set the MCP memory storage path?</a>
+ <a href="/answers/agent-memory-without-postgres-qdrant" class=""><span class="eyebrow">15</span>What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a>
+ <a href="/answers/ask-questions-about-a-github-repo-without-cloning" class=""><span class="eyebrow">16</span>Ask questions about a GitHub repo without cloning it</a>
+ <a href="/answers/batch-lookup-cve-ghsa-ids-offline" class=""><span class="eyebrow">17</span>Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a>
+ <a href="/answers/full-text-search-over-jsonl-files-cli" class=""><span class="eyebrow">18</span>Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a>
+ <a href="/answers/local-code-search-mcp-fewer-tokens-than-grep" class=""><span class="eyebrow">19</span>Local code search MCP for Claude Code that uses fewer tokens than grep</a>
+ <a href="/answers/retrieval-that-says-not-found-with-file-line-citations" class=""><span class="eyebrow">20</span>Retrieval that says not found, and cites file and line when it does answer</a>
+ <a href="/answers/batch-lookup-ids-from-csv-against-local-index" class=""><span class="eyebrow">21</span>Look up 1,000 IDs against a local index</a>
+ <a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">22</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
+ <a href="/answers/verify-ai-report-claims-against-sources" class=""><span class="eyebrow">23</span>Verify claims in a report against the saved sources</a>
+ <a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">24</span>How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a>
+ <a href="/answers/index-reference-library-for-coding-agent" class=""><span class="eyebrow">25</span>How do I set up reference coding so the agent retrieves a mechanism before writing code?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">26</span>xerj corpus index --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/classify-text-from-labelled-history-without-llm" class=""><span class="eyebrow">27</span>Can I route tickets or filter spam from labelled history, without an LLM call?</a>
+ <a href="/answers/reduce-embedding-api-cost" class=""><span class="eyebrow">28</span>How do I reduce embedding API cost?</a>
+ <a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">29</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
+ <a href="/answers/do-search-embeddings-help" class=""><span class="eyebrow">30</span>When should I turn on neural embeddings, and when is the lexical default enough?</a>
+ <a href="/answers/count-keyword-mentions-over-time-jsonl" class=""><span class="eyebrow">31</span>Count mentions of a word over time in a posts file</a>
+ <a href="/answers/search-yaml-xml-config-repository" class=""><span class="eyebrow">32</span>How do I find every place a config key is set across YAML and XML in a repo?</a>
+ <a href="/answers/full-text-search-sqlite-database" class=""><span class="eyebrow">33</span>How do I full-text search a SQLite database I just copied onto disk?</a>
+ <a href="/answers/index-csv-with-many-columns" class=""><span class="eyebrow">34</span>How do I index a CSV with many columns?</a>
+ <a href="/answers/index-markdown-into-elasticsearch-api" class=""><span class="eyebrow">35</span>How do I index Markdown into the Elasticsearch API?</a>
+ <a href="/answers/syntax-aware-code-search-refactoring" class=""><span class="eyebrow">36</span>How do I run syntax-aware code search?</a>
+ <a href="/answers/search-gzipped-csv-or-json" class=""><span class="eyebrow">37</span>How do I search a .csv.gz or .json.gz without unzipping it first?</a>
+ <a href="/answers/search-confluence-html-export" class=""><span class="eyebrow">38</span>How do I search a Confluence export?</a>
+ <a href="/answers/search-slack-json-export" class=""><span class="eyebrow">39</span>How do I search a Slack JSON export?</a>
+ <a href="/answers/search-bvh-motion-capture-files" class=""><span class="eyebrow">40</span>How do I search BVH motion-capture files?</a>
+ <a href="/answers/search-gzip-logs-without-zgrep" class=""><span class="eyebrow">41</span>How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a>
+ <a href="/answers/search-kubernetes-pod-logs-on-disk" class=""><span class="eyebrow">42</span>How do I search Kubernetes pod logs?</a>
+ <a href="/answers/search-word-documents-in-a-folder" class=""><span class="eyebrow">43</span>How do I search through a folder of contracts in .docx?</a>
+ <a href="/answers/search-unity-project-assets" class=""><span class="eyebrow">44</span>How do I search Unity YAML scenes and the C# that references them as one project?</a>
+ <a href="/answers/index-monorepo-for-agent" class=""><span class="eyebrow">45</span>How do I stop my agent from reading the whole repo into context?</a>
+ <a href="/answers/catalog-files-with-autoindex-map" class=""><span class="eyebrow">46</span>How should an agent figure out what's in a messy data folder before searching?</a>
+ <a href="/answers/search-all-pdfs-in-a-folder" class=""><span class="eyebrow">47</span>I downloaded a bunch of papers as PDFs. How do I search across them?</a>
+ <a href="/answers/search-sql-dump-file" class=""><span class="eyebrow">48</span>I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a>
+ <a href="/answers/index-multiple-csv-files" class=""><span class="eyebrow">49</span>I have a directory of CSV exports. How do I query them without opening each one in Excel?</a>
+ <a href="/answers/search-file-contents-in-a-folder" class=""><span class="eyebrow">50</span>I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a>
+ <a href="/answers/search-zendesk-ticket-json-export" class=""><span class="eyebrow">51</span>I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a>
+ <a href="/answers/read-indexed-email-and-pdf-folder" class=""><span class="eyebrow">52</span>I indexed a folder of email and PDFs. How do I actually read what it found?</a>
+ <a href="/answers/search-jupyter-notebook-cells" class=""><span class="eyebrow">53</span>I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</a>
+ <a href="/answers/search-html-export" class=""><span class="eyebrow">54</span>I saved a help-center as HTML. How do I search it like the real help-center search?</a>
+ <a href="/answers/is-pdf-indexing-efficient" class=""><span class="eyebrow">55</span>Is it efficient to index PDF files?</a>
+ <a href="/answers/full-text-search-browser-history" class=""><span class="eyebrow">56</span>Is there a way to full-text search my browser history file itself?</a>
+ <a href="/answers/search-openapi-spec-for-agent" class=""><span class="eyebrow">57</span>My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</a>
+ <a href="/answers/search-obsidian-pdf-docx-attachments" class=""><span class="eyebrow">58</span>What's the best way to search markdown notes and PDFs in the same vault?</a>
+ <a href="/answers/search-json-and-jsonl-logs" class=""><span class="eyebrow">59</span>What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a>
+ <a href="/answers/notion-export-duplicate-search-results" class=""><span class="eyebrow">60</span>Why does my Notion export duplicate titles?</a>
+ <a href="/answers/answer-questions-about-a-docs-folder-with-citations" class=""><span class="eyebrow">61</span>Answer questions about a docs folder, with a file to cite</a>
+ <a href="/answers/search-gmail-takeout-mbox-locally" class=""><span class="eyebrow">62</span>I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a>
+ <a href="/answers/how-xerj-autoindexes-a-folder" class=""><span class="eyebrow">63</span>I want to point something at a folder and then ask questions about what's in it. What should I use?</a>
+ <a href="/answers/find-duplicate-github-issues-before-filing" class=""><span class="eyebrow">64</span>Find duplicate GitHub issues before you file</a>
+ <a href="/answers/search-github-issues-and-prs-locally" class=""><span class="eyebrow">65</span>Search a repo's issues and pull requests on your machine</a>
+ <a href="/answers/rag-without-vector-database" class=""><span class="eyebrow">66</span>How do I build RAG without a vector database?</a>
+ <a href="/answers/hybrid-search-quality-measured-ndcg" class=""><span class="eyebrow">67</span>How much better is hybrid search than BM25? Measured nDCG numbers</a>
+ <a href="/answers/rerank-search-results-calibrated-judge" class=""><span class="eyebrow">68</span>How do I rerank search results with a relevance judge?</a>
+ <a href="/answers/reciprocal-rank-fusion-when-to-use" class=""><span class="eyebrow">69</span>What is Reciprocal Rank Fusion?</a>
+ <a href="/answers/how-xerj-combines-search" class=""><span class="eyebrow">70</span>How does XERJ combine BM25 and kNN?</a>
+ <a href="/answers/search-files-in-an-s3-bucket" class=""><span class="eyebrow">71</span>How do I search files that live in an S3 bucket?</a>
+ <a href="/answers/keep-s3-bucket-index-current" class=""><span class="eyebrow">72</span>How do I keep an index current when the files live in an object store?</a>
+ <a href="/answers/check-codebase-index-is-complete" class=""><span class="eyebrow">73</span>My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a>
+ <a href="/answers/estimate-autoindex-time-before-running" class=""><span class="eyebrow">74</span>How do I estimate folder-indexing time?</a>
+ <a href="/answers/why-autoindex-skipped-files" class=""><span class="eyebrow">75</span>Why would a folder search miss files that I can see on disk?</a>
+ <a href="/answers/autoindex-dataset-refused-by-server" class=""><span class="eyebrow">76</span>One dataset was REFUSED by the server. Did I lose the whole index?</a>
+ <a href="/answers/autoindex-exit-codes" class=""><span class="eyebrow">77</span>The indexer exited 3 (or 4). Did it fail?</a>
+ <a href="/answers/autoindex-server-back-pressure-429" class=""><span class="eyebrow">78</span>The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a>
+ <a href="/answers/autoindex-says-extract-the-archive-first" class=""><span class="eyebrow">79</span>xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a>
+ <a href="/answers/keep-index-current-as-files-change" class=""><span class="eyebrow">80</span>How do I keep a search index up to date as files change, without re-indexing everything?</a>
+ <a href="/answers/search-engine-without-docker" class=""><span class="eyebrow">81</span>Is there a single-binary local search engine I can just run?</a>
+ <a href="/answers/cheap-low-volume-log-search" class=""><span class="eyebrow">82</span>What can I use for low-volume log search?</a>
+ <a href="/answers/read-autoindex-progress" class=""><span class="eyebrow">83</span>How do I read autoindex progress?</a>
+ <a href="/answers/resume-interrupted-autoindex-run" class=""><span class="eyebrow">84</span>The indexer died overnight. Do I have to start over?</a>
+ <a href="/answers/reindex-taking-forever" class=""><span class="eyebrow">85</span>Reindexing my files is taking forever. What usually causes that?</a>
+ <a href="/answers/what-is-xerj" class=""><span class="eyebrow">86</span>What is XERJ?</a>
+ <a href="/answers/improve-basic-faiss-rag-pipeline" class=""><span class="eyebrow">87</span>How do I improve a basic FAISS RAG pipeline?</a>
+ <a href="/answers/filter-knn-exact-scan-caveat" class=""><span class="eyebrow">88</span>Why did my filtered vector search get slower when I added a filter?</a>
+ <a href="/answers/vector-database-vs-full-text-search" class=""><span class="eyebrow">89</span>What's the actual difference between a vector database and full-text search when I have a folder?</a>
+ <a href="/answers/share-folder-read-only-search-without-uploading" class=""><span class="eyebrow">90</span>How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?</a>
+ <a href="/answers/share-local-search-index-through-a-tunnel" class=""><span class="eyebrow">91</span>How do I let someone outside my network search an index on my laptop without opening a port?</a>
+ <a href="/answers/what-a-share-link-guest-can-reach" class=""><span class="eyebrow">92</span>If I share one index with a link and a passcode, what can that person actually reach on my node?</a>
+ </div>
+ <div class="group">
+ <span class="label">COMPARISONS</span>
+ <a href="/compare/"><span class="eyebrow">00</span>All Comparisons</a>
+ <a href="/compare/xerj-vs-agent-memory-tools" class=""><span class="eyebrow">01</span>XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a>
+ <a href="/compare/xerj-vs-web-agent-search" class=""><span class="eyebrow">02</span>How do I let an agent search a folder on my laptop instead of crawling the web?</a>
+ <a href="/compare/xerj-vs-ast-grep" class=""><span class="eyebrow">03</span>ast-grep vs a code index for an agent?</a>
+ <a href="/compare/xerj-vs-ripgrep-for-code-agents" class=""><span class="eyebrow">04</span>Is ripgrep enough for a coding agent, or do I need a code index?</a>
+ <a href="/compare/best-grep-alternative-for-ai-coding-agents-2026" class=""><span class="eyebrow">05</span>The best grep and ripgrep alternatives for AI coding agents in 2026</a>
+ <a href="/compare/best-mcp-server-local-code-search-2026" class=""><span class="eyebrow">06</span>The best MCP servers for searching a local codebase in 2026</a>
+ <a href="/compare/best-local-full-text-search-jsonl-csv-2026" class=""><span class="eyebrow">07</span>The best local full-text search for JSONL and CSV files in 2026, with a published benchmark</a>
+ <a href="/compare/xerj-vs-ripgrep-all" class=""><span class="eyebrow">08</span>How do I grep PDFs and Word docs from the command line?</a>
+ <a href="/compare/xerj-vs-docfetcher" class=""><span class="eyebrow">09</span>What's a free DocFetcher alternative that an agent can call?</a>
+ <a href="/compare/xerj-vs-recoll" class=""><span class="eyebrow">10</span>What's the best local desktop search for a folder of PDFs and docs?</a>
+ <a href="/compare/xerj-vs-houdahspot" class=""><span class="eyebrow">11</span>XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a>
+ <a href="/compare/xerj-vs-spotlight" class=""><span class="eyebrow">12</span>XERJ vs macOS Spotlight for folder content an agent can query</a>
+ <a href="/compare/xerj-vs-localsynapse" class=""><span class="eyebrow">13</span>What's a local MCP search engine for Claude?</a>
+ <a href="/compare/xerj-vs-elasticsearch-local" class=""><span class="eyebrow">14</span>Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a>
+ <a href="/compare/xerj-vs-obsidian-omnisearch" class=""><span class="eyebrow">15</span>How do I search an Obsidian vault from outside Obsidian?</a>
+ <a href="/compare/xerj-vs-khoj" class=""><span class="eyebrow">16</span>What's a simpler alternative to Khoj if I only need search and memory?</a>
+ <a href="/compare/xerj-vs-typesense" class=""><span class="eyebrow">17</span>Do I need Typesense for an agent to search my docs?</a>
+ <a href="/compare/best-lightweight-elasticsearch-compatible-server-2026" class=""><span class="eyebrow">18</span>The best lightweight Elasticsearch-compatible search servers in 2026</a>
+ <a href="/compare/xerj-vs-meilisearch" class=""><span class="eyebrow">19</span>What's a local alternative to Meilisearch that indexes a folder by itself?</a>
+ <a href="/compare/xerj-vs-pagefind" class=""><span class="eyebrow">20</span>Pagefind vs indexing a local HTML dump for an agent?</a>
+ <a href="/compare/xerj-vs-vector-database" class=""><span class="eyebrow">21</span>Should my agent call a search API or stand up Qdrant for persistent memory?</a>
+ </div>
+ </nav>
+ </div>
+ <!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+ <nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">LEARN</span>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARE</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/blog/">BLOG</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ <a href="/resources/">SALES KIT</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+ </nav>
+ <!-- seo:footer-end -->
+ <footer class="footer">
+ <span>XERJ.AI · ANSWERS</span>
+ <span>READ THE SOURCE</span>
+ <span><a href="/">HOME</a> · <a href="/product">PRODUCT</a> · <a href="/answers/">ANSWERS</a> · <a href="/playground">DASHBOARDS</a> &middot; <a href="/llms.txt">LLMS.TXT</a></span>
+ </footer>
+ <script src="/interact.js"></script>
+ </body>
+ </html>
diff --cc landing/answers/agentic-memory-vs-rag.md
index 000000000,2cc6226d3..5a0416949
mode 000000,100644..100644
--- a/landing/answers/agentic-memory-vs-rag.md
+++ b/landing/answers/agentic-memory-vs-rag.md
@@@ -1,0 -1,117 +1,117 @@@
+ <!-- generated by build_articles.py — edit content/answers/agentic-memory-vs-rag.md instead -->
+ ---
+ title: "Agentic memory vs RAG: what is the difference?"
+ canonical: "https://xerj.org/answers/agentic-memory-vs-rag"
+ updated: "2026-10-28"
+ source: "content/answers/agentic-memory-vs-rag.md"
+ ---
+
+ # Agentic memory vs RAG: what is the difference?
+
-**Short answer** (updated 2026-10-28): What is the difference between agentic memory and RAG? RAG retrieves from documents someone prepared ahead of time; the agent only reads. Agentic memory is a store the agent writes to itself during work and reads back later. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.
++**Short answer** (updated 2026-10-28): What is the difference between agentic memory and RAG? RAG retrieves evidence to inform generation, including documents or conversation history. Agentic memory retains information across tasks; RAG can be its retrieval step. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.
+
-**TL;DR**: RAG reads from documents someone already wrote. Agentic memory is a store the agent writes to itself while it works, then reads back later. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.
++**TL;DR**: RAG retrieves evidence for generation. Agentic memory keeps information across tasks and can use RAG to retrieve it. Both depend on search. XERJ serves document search and agent memory from the same local binary, so an agent uses one tool for both.
+
+ ## Agent prompt
+
+ ```text
+ Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, run xerj autoindex on this project folder for RAG-style retrieval, store two facts I tell you with POST /_memory/project, then answer one question using both the index and memory recall and cite where each part came from.
+ ```
+
+ ## Commands
+
+ ### Command 1
+
+ Note: Install the single XERJ binary.
+
+ ```sh
+ curl -fsSL https://xerj.org/get | sh
+ ```
+
+ ### Command 2
+
+ Note: The RAG side: index a folder of documents so the agent can search them.
+
+ ```sh
+ xerj autoindex ./docs
+ ```
+
+ ### Command 3
+
+ Note: The memory side: the agent saves something it learned during the task.
+
+ ```sh
+ curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{"text":"The customer asked for weekly reports, not daily."}'
+ ```
+
+ ## The difference in one table
+
+ | | RAG | agentic memory |
+ | --- | --- | --- |
-| who writes the data | people, before the task | the agent, during the task |
++| data source | documents, raw history or other indexed records | retained preferences, events and decisions |
+ | what it holds | docs, code, tickets, data | preferences, decisions, lessons |
-| changes during work | rarely | yes, the agent adds and deletes |
++| changes during work | depends on the retrieval source | the memory workflow may add, update or delete |
+ | how it is read | search | search |
+
+ ## Agentic RAG sits in between
+
-Agentic RAG means the agent decides when and what to search, often in several rounds. It still only reads. Once the agent also writes notes for later, you have agentic memory.
++Agentic RAG means the agent decides when and what to search, often in several rounds. Its sources can change during work. Persisting notes or history for later tasks adds a memory workflow; the two are compatible.
+
+ ## Simple often wins
+
-Two arXiv studies from 2026 tested this. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.
++Two 2026 arXiv preprints evaluated specific conversational-memory tasks. One found a plain raw-history RAG baseline ranked first among the compared memory systems in six of seven settings. The other found no consistent advantage for explicit memory systems over strong raw-history retrieval.
+
-The lesson: keep the raw text, and make search good. Complex memory pipelines can lose the evidence they were built to keep.
++These results motivate testing a raw-history baseline alongside transformed memory. Raw-RAG uses dense retrieval, reranking and a reader LLM; its results do not measure XERJ or its default lexical embedder.
+
+ ## How XERJ does both
+
+ XERJ is the search engine for AI agents: a new way for AI to search for data.
+
+ - RAG side: `xerj autoindex <folder>` makes your files searchable.
+ - Memory side: `POST /_memory/{namespace}` saves a note and `_recall` finds it. Plain query recall is BM25.
-- Both live in one local binary, with no vector database and no API key.
++- Both live in one local binary without a separate vector database. The lexical default needs no external model-provider key; secured node access uses a XERJ API key.
+
+ The default embedder is lexical feature hashing. For neural embeddings, start the node with `--embed-mode neural`. XERJ is single-node.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent. It indexes a folder, stores two facts and answers a question from both.
+
+ ## FAQ
+
+ ### Is agentic memory the same as RAG?
+
-No. RAG reads from documents that already exist. Agentic memory is written by the agent during its work, then read back later. The read step works the same way in both: a search.
++They overlap. RAG is a retrieval-and-generation technique; agentic memory is information retained across tasks. A memory system can use RAG to retrieve its stored notes or raw history.
+
+ ### What is agentic RAG?
+
+ RAG where the agent decides when and what to search, often over several rounds, instead of one fixed lookup before the answer.
+
+ ### Do I need both?
+
+ Often yes. Use RAG for docs, code and data you already have. Use memory for things the agent learns that are written nowhere else, such as a user preference.
+
+ ### Is complex agent memory better than plain retrieval?
+
+ Not always. Two 2026 arXiv studies found plain retrieval over raw history often matched or beat more complex memory systems on their benchmarks.
+
+ ### Can one tool do both?
+
+ Yes. XERJ indexes your files for search and also has a /_memory API for agent notes, in the same local binary.
+
+ ## Evidence
+
+ - Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We Thought: a raw-history RAG baseline ranks first among the compared memory systems in six of seven benchmark-model settings. — [https://arxiv.org/abs/2610.30755](https://arxiv.org/abs/2610.30755)
+ - Do Conversational Agents Need Explicit Memory? finds only localized gains for explicit memory systems and no consistent advantage over strong raw-history RAG baselines. — [https://arxiv.org/abs/2610.24671](https://arxiv.org/abs/2610.24671)
+ - XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls with BM25 by default, each namespace is its own index. — `engine/crates/xerj-api/src/memory_api.rs`
+
+ ## Related
+
+ - [What is agentic memory?](/answers/what-is-agentic-memory)
+ - [What is an MCP memory server?](/answers/what-is-an-mcp-memory-server)
+ - [How do I build RAG without a vector database?](/answers/rag-without-vector-database)
+ - [XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee](/compare/xerj-vs-agent-memory-tools)
+ - [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)
+ - [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)
+ - [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)
+ - [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces) (same intent: agent memory)
diff --cc landing/answers/index.html
index 2c0b59314,5823564d9..eb8e414b4
--- a/landing/answers/index.html
+++ b/landing/answers/index.html
@@@ -143,13 -143,19 +143,19 @@@
<li><a href="/answers/local-search-mcp-for-codex-and-cursor">Search tool for a Codex agent, on the files you have</a> — xerj init writes the MCP entry for Claude Code, Cursor and Codex when those folders exist. A 2026-10-20 tools/list from xerj mcp returned 17 tools.</li>
<li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> — One question through 4 XERJ MCP tools returned 3 different result sets. Hybrid RRF returned 6 documents and merged both lists on the default lexical embedder.</li>
</ul>
+ <h2>Agent memory: concepts</h2>
+ <ul>
- <li><a href="/answers/agentic-memory-vs-rag">Agentic memory vs RAG: what is the difference?</a> — RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.</li>
++ <li><a href="/answers/agentic-memory-vs-rag">Agentic memory vs RAG: what is the difference?</a> — RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.</li>
+ <li><a href="/answers/what-is-agentic-memory">What is agentic memory?</a> — Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.</li>
+ <li><a href="/answers/what-is-an-mcp-memory-server">What is an MCP memory server?</a> — An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.</li>
+ </ul>
<h2>Agent memory: link retrieval</h2>
<ul>
<li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a> — XERJ builds a bounded link index over indexed documents, not a graph database. Our capture found 7 edges, answered 1 and 2 hops, and refused 3.</li>
</ul>
<h2>Agent memory: model dependency</h2>
<ul>
-- <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a> — Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.</li>
++ <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a> — Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.</li>
</ul>
<h2>Agent memory: provenance</h2>
<ul>
diff --cc landing/answers/index.json
index 3f3b67129,f3c8f92e9..f8ff69085
--- a/landing/answers/index.json
+++ b/landing/answers/index.json
@@@ -68,6 -68,58 +68,58 @@@
"cursor mcp full text search"
]
},
+ {
+ "title": "Agentic memory vs RAG: what is the difference?",
+ "question": "What is the difference between agentic memory and RAG?",
+ "canonical_url": "https://xerj.org/answers/agentic-memory-vs-rag",
+ "markdown_url": "https://xerj.org/answers/agentic-memory-vs-rag.md",
+ "cluster": "Agent memory: concepts",
+ "updated": "2026-10-28",
- "summary": "RAG reads from documents you prepared. Agentic memory is a store the agent writes to itself. Both come down to search, and here is when you need each one.",
++ "summary": "RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.",
+ "intent_group": "agent memory",
- "answer": "What is the difference between agentic memory and RAG? RAG retrieves from documents someone prepared ahead of time; the agent only reads. Agentic memory is a store the agent writes to itself during work and reads back later. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.",
++ "answer": "What is the difference between agentic memory and RAG? RAG retrieves evidence to inform generation, including documents or conversation history. Agentic memory retains information across tasks; RAG can be its retrieval step. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.",
+ "queries": [
+ "agentic memory vs RAG",
+ "agent memory vs RAG",
+ "RAG vs agentic RAG",
+ "do AI agents need memory or RAG"
+ ]
+ },
+ {
+ "title": "What is agentic memory? A plain answer",
+ "question": "What is agentic memory?",
+ "canonical_url": "https://xerj.org/answers/what-is-agentic-memory",
+ "markdown_url": "https://xerj.org/answers/what-is-agentic-memory.md",
+ "cluster": "Agent memory: concepts",
+ "updated": "2026-10-28",
+ "summary": "Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.",
+ "intent_group": "agent memory",
+ "answer": "What is agentic memory? It is memory that an AI agent manages itself: the agent decides what to save, writes it through a tool call, and searches it again in a later task or session. It differs from a chat history because it is stored outside the model and survives restarts. XERJ serves it as a search endpoint.",
+ "queries": [
+ "agentic memory",
+ "what is agentic memory",
+ "AI agent memory",
+ "agentic memory types",
+ "long-term memory for AI agents"
+ ]
+ },
+ {
+ "title": "What is an MCP memory server?",
+ "question": "What is an MCP memory server?",
+ "canonical_url": "https://xerj.org/answers/what-is-an-mcp-memory-server",
+ "markdown_url": "https://xerj.org/answers/what-is-an-mcp-memory-server.md",
+ "cluster": "Agent memory: concepts",
+ "updated": "2026-10-28",
+ "summary": "An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.",
+ "intent_group": "agent memory",
+ "answer": "What is an MCP memory server? It is a Model Context Protocol server that gives an AI assistant tools to save facts and recall them later, so memory survives across chats and clients. The assistant calls the tools itself. XERJ ships one inside its binary: xerj mcp exposes xerj_memory_store and xerj_memory_recall.",
+ "queries": [
+ "MCP memory server",
+ "what is an MCP memory server",
+ "mcp memory server claude code",
+ "local MCP memory server"
+ ]
+ },
{
"title": "Should agent memory use a graph?",
"question": "Ask HN: Anyone using knowledge graphs for LLM agent memory/context management?",
@@@ -89,10 -141,10 +141,10 @@@
"canonical_url": "https://xerj.org/answers/store-agent-memory-without-llm-call",
"markdown_url": "https://xerj.org/answers/store-agent-memory-without-llm-call.md",
"cluster": "Agent memory: model dependency",
- "updated": "2026-10-19",
- "summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.",
+ "updated": "2026-10-28",
- "summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.",
++ "summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.",
"intent_group": "agent memory",
-- "answer": "How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path.",
++ "answer": "How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. There is no generative summarization step; the configured embedder still runs.",
"queries": [
"agent memory deduplication"
]
diff --cc landing/answers/store-agent-memory-without-llm-call.html
index abfafecd0,b08dad66a..2b180bb26
--- a/landing/answers/store-agent-memory-without-llm-call.html
+++ b/landing/answers/store-agent-memory-without-llm-call.html
@@@ -16,7 -16,7 +16,7 @@@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stop agent memory filling with duplicate notes</title>
--<meta name="description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.">
++<meta name="description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
@@@ -29,7 -29,7 +29,7 @@@
<meta property="og:site_name" content="XERJ.ai">
<meta property="og:type" content="article">
<meta property="og:title" content="Stop agent memory filling with duplicate notes">
--<meta property="og:description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.">
++<meta property="og:description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.">
<meta property="og:url" content="https://xerj.org/answers/store-agent-memory-without-llm-call">
<meta property="og:image" content="https://xerj.org/og/xerj-card.png">
<meta property="og:image:width" content="1200">
@@@ -38,7 -38,7 +38,7 @@@
<meta property="og:locale" content="en_US">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Stop agent memory filling with duplicate notes">
--<meta name="twitter:description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.">
++<meta name="twitter:description" content="Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.">
<meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
<script type="application/ld+json">
{
@@@ -74,7 -74,7 +74,7 @@@
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "Stop agent memory filling with duplicate notes",
-- "description": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.",
++ "description": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.",
"url": "https://xerj.org/answers/store-agent-memory-without-llm-call",
"image": "https://xerj.org/og/xerj-card.png",
"inLanguage": "en",
@@@ -140,7 -140,7 +140,7 @@@
"name": "Can I store agent memory without an LLM call?",
"acceptedAnswer": {
"@type": "Answer",
-- "text": "Yes. A store call is one HTTP POST that writes a document. XERJ runs no model, no summarization and no extraction step on that path."
++ "text": "Yes. A store call is one HTTP POST that writes a document. There is no generative summarization or fact-extraction step. The text is still embedded using the configured lexical, neural or proxy backend."
}
},
{
@@@ -164,7 -164,7 +164,7 @@@
"name": "Does XERJ rewrite or summarize what I store?",
"acceptedAnswer": {
"@type": "Answer",
-- "text": "No. The stored text is the text you sent. There is no model in the write path to change it."
++ "text": "No. The stored text is the text you sent. Embedding creates a companion vector without rewriting the supplied text."
}
}
]
@@@ -224,13 -224,13 +224,13 @@@
<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I STOP AN AGENT MEMORY STORE FROM FILLING WITH NEAR-DUPLICATE NOTES?</div>
<div class="kicker"><span>ANSWERS · AGENT MEMORY: MODEL DEPENDENCY</span></div>
<h1>How do I stop an agent memory store from filling with near-duplicate notes?</h1>
- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-28</div>
<div class="prompt-card answer-first" id="short-answer">
- <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>
- <p>How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path.</p>
+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-28</span>
- <p>How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path.</p>
++ <p>How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. There is no generative summarization step; the configured embedder still runs.</p>
<p class="key-fact"><strong>Key number:</strong> The default dedup threshold is a cosine similarity of 0.95. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs">engine/crates/xerj-api/src/memory_api.rs</a>)</span></p>
</div>
-- <p><strong>TL;DR</strong> — Send <code class="inline">dedup: true</code> on the store call and XERJ returns the existing id with <code class="inline">"deduplicated": true</code> instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No model and no summarization runs on the write path.</p>
++ <p><strong>TL;DR</strong> — Send <code class="inline">dedup: true</code> on the store call and XERJ returns the existing id with <code class="inline">"deduplicated": true</code> instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No generative summarization runs; the configured embedder creates a companion vector.</p>
<div class="prompt-card">
<span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>
<code>Act as a coding agent. Read https://xerj.org/llms.txt, then POST the same fact twice to /_memory/agentmem on a running XERJ node with dedup true and dedup_threshold 0.95, confirm the second response carries created false and deduplicated true and the same id, POST a reworded version of the same fact and report whether it deduplicated, then recall the namespace and report how many documents it holds.</code>
@@@ -246,7 -246,7 +246,7 @@@
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
<code>curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{"text":"The user prefers p50 and p95 latency, never the mean.","metadata":{"topic":"preferences"}}'</code>
<button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9430/_memory/agentmem&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;text&quot;:&quot;The user prefers p50 and p95 latency, never the mean.&quot;,&quot;metadata&quot;:{&quot;topic&quot;:&quot;preferences&quot;}}&#x27;">COPY COMMAND</button>
-- <span class="hero-proof">Store one memory with the check off, which is the default. No model runs on this path and no summarization step exists.</span>
++ <span class="hero-proof">Store one memory with the check off, which is the default. The configured embedder runs; no generative summarization step exists.</span>
</div>
<div class="prompt-card">
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
@@@ -266,13 -266,13 +266,13 @@@
<p>The comparison uses the embedder the node runs. On the default that is lexical feature hashing, so it matches wording and not meaning. A node started with <code class="inline">--embed-mode neural</code> changes what counts as a near-duplicate.</p>
<h2>Prefer recent memories at recall time</h2>
<p><code class="inline">_recall</code> accepts <code class="inline">recency_weight</code>, clamped between 0 and 1, which blends the stored time into the ranking. Leave it out and the ranking is relevance only. Nothing ages out on its own, so the write-time check is what keeps the store small.</p>
-- <h2>The write path has no model in it</h2>
-- <p>One request to <code class="inline">POST /_memory/{namespace}</code> with a <code class="inline">text</code> field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. No model reads it, rewrites it or summarizes it.</p>
++ <h2>The write path preserves the text and embeds it</h2>
++ <p>One request to <code class="inline">POST /_memory/{namespace}</code> with a <code class="inline">text</code> field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. The configured embedder reads the text to create its search vector, but does not rewrite or summarize the stored text.</p>
<pre class="code"><code class="language-json">{"created":true,"id":"2b00ed19-8741-49ca-8318-54e9ba8c7a58","namespace":"agentmem"}
</code></pre>
<p>The stored document carries what you sent. A later <code class="inline">GET /_memory/{namespace}</code> returned the same sentence and the same <code class="inline">metadata</code> object our capture posted.</p>
<h2>What the network watch saw</h2>
-- <p>Our capture polled <code class="inline">/proc/net/tcp</code> and <code class="inline">/proc/net/tcp6</code> against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.</p>
++ <p>With the default lexical backend, our capture polled <code class="inline">/proc/net/tcp</code> and <code class="inline">/proc/net/tcp6</code> against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.</p>
<pre class="code"><code class="language-json">{"count_distinct_non_loopback_peers":0,"samples_taken":31,
"sample_interval_s":0.05,"watched_seconds":2.27,"max_pids_in_tree":7,
"limitation":"SAMPLER, not a packet capture"}
@@@ -313,13 -313,13 +313,13 @@@
<h3>How do I keep long-term memory from repeating itself?</h3>
<p>Deduplicate at write time and choose the threshold deliberately. The comparison uses the configured embedder, which by default is lexical feature hashing, so it matches wording rather than meaning.</p>
<h3>Can I store agent memory without an LLM call?</h3>
-- <p>Yes. A store call is one HTTP POST that writes a document. XERJ runs no model, no summarization and no extraction step on that path.</p>
++ <p>Yes. A store call is one HTTP POST that writes a document. There is no generative summarization or fact-extraction step. The text is still embedded using the configured lexical, neural or proxy backend.</p>
<h3>Does recall call a model?</h3>
<p>Only when you ask. A plain <code class="inline">query</code> runs BM25, a supplied <code class="inline">vector</code> runs kNN on your own embedding, and <code class="inline">semantic: true</code> embeds server-side.</p>
<h3>What embedder runs for semantic recall?</h3>
<p>Lexical feature hashing by default, which is a hash function with no model and no network call. <code class="inline">--embed-mode neural</code> swaps in a downloaded MiniLM-class model.</p>
<h3>Does XERJ rewrite or summarize what I store?</h3>
-- <p>No. The stored <code class="inline">text</code> is the text you sent. There is no model in the write path to change it.</p>
++ <p>No. The stored <code class="inline">text</code> is the text you sent. Embedding creates a companion vector without rewriting the supplied text.</p>
<h2>Evidence</h2>
<ul>
<li>The memory store call accepts dedup and dedup_threshold, dedup_threshold defaults to a cosine similarity of 0.95, and _recall accepts recency_weight. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
diff --cc landing/answers/store-agent-memory-without-llm-call.md
index d88593fa9,843eff758..51413ec68
--- a/landing/answers/store-agent-memory-without-llm-call.md
+++ b/landing/answers/store-agent-memory-without-llm-call.md
@@@ -8,11 -8,11 +8,11 @@@ source: "content/answers/store-agent-me
# How do I stop an agent memory store from filling with near-duplicate notes?
- **Short answer** (updated 2026-10-19): How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path.
-**Short answer** (updated 2026-10-28): How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. No model or summarization runs on the write path.
++**Short answer** (updated 2026-10-28): How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. There is no generative summarization step; the configured embedder still runs.
**Key number:** The default dedup threshold is a cosine similarity of 0.95. (as of 2026-10-19; source: [engine/crates/xerj-api/src/memory_api.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs))
--**TL;DR** — Send `dedup: true` on the store call and XERJ returns the existing id with `"deduplicated": true` instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No model and no summarization runs on the write path.
++**TL;DR** — Send `dedup: true` on the store call and XERJ returns the existing id with `"deduplicated": true` instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No generative summarization runs; the configured embedder creates a companion vector.
## Agent prompt
@@@ -32,7 -32,7 +32,7 @@@ curl -s -XPOST 'http://127.0.0.1:9430/_
### Command 2
--Note: Store one memory with the check off, which is the default. No model runs on this path and no summarization step exists.
++Note: Store one memory with the check off, which is the default. The configured embedder runs; no generative summarization step exists.
```sh
curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{"text":"The user prefers p50 and p95 latency, never the mean.","metadata":{"topic":"preferences"}}'
@@@ -66,9 -66,9 +66,9 @@@ The comparison uses the embedder the no
`_recall` accepts `recency_weight`, clamped between 0 and 1, which blends the stored time into the ranking. Leave it out and the ranking is relevance only. Nothing ages out on its own, so the write-time check is what keeps the store small.
--## The write path has no model in it
++## The write path preserves the text and embeds it
--One request to `POST /_memory/{namespace}` with a `text` field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. No model reads it, rewrites it or summarizes it.
++One request to `POST /_memory/{namespace}` with a `text` field stores a memory. XERJ writes the text verbatim into a document and returns an identifier. The configured embedder reads the text to create its search vector, but does not rewrite or summarize the stored text.
```json
{"created":true,"id":"2b00ed19-8741-49ca-8318-54e9ba8c7a58","namespace":"agentmem"}
@@@ -78,7 -78,7 +78,7 @@@ The stored document carries what you se
## What the network watch saw
--Our capture polled `/proc/net/tcp` and `/proc/net/tcp6` against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.
++With the default lexical backend, our capture polled `/proc/net/tcp` and `/proc/net/tcp6` against the node process tree during store and recall. The watch ran 31 samples at a 50 ms interval, covering 2.27 s and up to 7 processes. That watch counted 0 distinct non-loopback peers.
```json
{"count_distinct_non_loopback_peers":0,"samples_taken":31,
@@@ -147,7 -147,7 +147,7 @@@ Deduplicate at write time and choose th
### Can I store agent memory without an LLM call?
--Yes. A store call is one HTTP POST that writes a document. XERJ runs no model, no summarization and no extraction step on that path.
++Yes. A store call is one HTTP POST that writes a document. There is no generative summarization or fact-extraction step. The text is still embedded using the configured lexical, neural or proxy backend.
### Does recall call a model?
@@@ -159,7 -159,7 +159,7 @@@ Lexical feature hashing by default, whi
### Does XERJ rewrite or summarize what I store?
--No. The stored `text` is the text you sent. There is no model in the write path to change it.
++No. The stored `text` is the text you sent. Embedding creates a companion vector without rewriting the supplied text.
## Evidence
diff --cc landing/answers/what-is-agentic-memory.html
index 000000000,0e5d1f309..47347104e
mode 000000,100644..100644
--- a/landing/answers/what-is-agentic-memory.html
+++ b/landing/answers/what-is-agentic-memory.html
@@@ -1,0 -1,489 +1,489 @@@
+ <!-- generated by build_articles.py — edit content/answers/what-is-agentic-memory.md instead -->
+ <!DOCTYPE html>
+ <html lang="en" data-theme="day">
+ <head>
+ <!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-Z77ETCDJYL');
+ </script>
+ <!-- ga4:end -->
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>What is agentic memory? A plain answer</title>
+ <meta name="description" content="Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%230b0b0d'/><text x='50' y='68' font-size='60' font-family='Big Shoulders Display,sans-serif' font-weight='900' fill='%23ffc400' text-anchor='middle'>X</text></svg>">
+ <script src="/theme.js"></script>
+ <link rel="stylesheet" href="/style.css?v=as2">
+ <link rel="alternate" type="text/markdown" href="/answers/what-is-agentic-memory.md">
+ <!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+ <link rel="canonical" href="https://xerj.org/answers/what-is-agentic-memory">
+ <meta property="og:site_name" content="XERJ.ai">
+ <meta property="og:type" content="article">
+ <meta property="og:title" content="What is agentic memory? A plain answer">
+ <meta property="og:description" content="Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.">
+ <meta property="og:url" content="https://xerj.org/answers/what-is-agentic-memory">
+ <meta property="og:image" content="https://xerj.org/og/xerj-card.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="What is agentic memory? A plain answer">
+ <meta name="twitter:description" content="Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.">
+ <meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "description": "A new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers.",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj",
+ "https://x.com/xerj_org"
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "TechArticle",
+ "headline": "What is agentic memory? A plain answer",
+ "description": "Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.",
+ "url": "https://xerj.org/answers/what-is-agentic-memory",
+ "image": "https://xerj.org/og/xerj-card.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-28",
+ "dateModified": "2026-10-28",
+ "author": {
+ "@type": "Organization",
+ "name": "XERJ documentation team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/answers/what-is-agentic-memory"
+ },
+ "reviewedBy": {
+ "@type": "Organization",
+ "name": "XERJ engineering team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ "mainEntity": [
+ {
+ "@type": "Question",
+ "name": "What is agentic memory in simple words?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Notes an AI agent keeps for itself. The agent saves a fact with a tool call and looks it up later, so the fact outlives the chat that produced it."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "How is agentic memory different from a context window?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "The context window is what the model sees right now and it is lost when the session ends. Agentic memory lives in a store outside the model and is searched back in when needed."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "What types of agentic memory are there?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "A common split, from the CoALA paper as summarized by LangChain, is semantic memory for facts, episodic memory for past events and procedural memory for how to do a task."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Does agentic memory need a vector database?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "No. Recall is a search problem. XERJ stores memories as documents in one local binary and recalls them with BM25 by default, with no second database."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Can an agent use XERJ memory over MCP?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Yes. The xerj mcp server exposes xerj_memory_store and xerj_memory_recall, which call the same /_memory endpoints."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Does XERJ forget memories on its own?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "No. There is no decay and no TTL. A memory is permanent until explicitly forgotten with DELETE /_memory/{namespace}/{id}."
+ }
+ }
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Answers",
+ "item": "https://xerj.org/answers/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "What is agentic memory?"
+ }
+ ]
+ }
+ </script>
+ <!-- seo:end -->
+ </head>
+ <body>
+ <nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/product">PRODUCT</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/answers/" class="active">ANSWERS</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://hub.xerj.org" rel="external">HUB</a>
+ <a class="nav-stars" href="https://github.com/xerj-org/xerj" rel="external" title="XERJ on GitHub" aria-label="XERJ on GitHub, 14,225 stars"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span class="nav-stars-n" data-gh-stars="14225">★ 14.2k</span></a>
+ <a href="https://x.com/xerj_org" rel="external" title="XERJ on X" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg></a>
+ <a href="https://discord.com/invite/yetXFusXfs" rel="external" title="XERJ on Discord" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.37a19.79 19.79 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.74 19.74 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.1 13.1 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.3 12.3 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.84 19.84 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg></a>
+ <span class="theme">
+ <button type="button" data-theme="day" class="active">DAY</button>
+ <span class="dash">·</span>
+ <button type="button" data-theme="night">NIGHT</button>
+ </span>
+ </nav>
+ <div class="docs-shell article-shell">
+ <main class="docs-content">
+ <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT IS AGENTIC MEMORY?</div>
+ <div class="kicker"><span>ANSWERS · AGENT MEMORY: CONCEPTS</span></div>
+ <h1>What is agentic memory?</h1>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-10-28 · UPDATED · 2026-10-28</div>
+ <div class="prompt-card answer-first" id="short-answer">
+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-28</span>
+ <p>What is agentic memory? It is memory that an AI agent manages itself: the agent decides what to save, writes it through a tool call, and searches it again in a later task or session. It differs from a chat history because it is stored outside the model and survives restarts. XERJ serves it as a search endpoint.</p>
+ </div>
+ <p><strong>TL;DR</strong>: Agentic memory is memory an AI agent manages for itself. The agent decides what to keep, saves it with a tool call, and searches it again in a later task. Recall is a search problem, so XERJ serves agent memory as two endpoints on one local search engine.</p>
+ <div class="prompt-card">
+ <span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>
+ <code>Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start one local node, store one durable fact with POST /_memory/agentmem, recall it with POST /_memory/agentmem/_recall, and report the exact hit you got back.</code>
+ <button type="button" class="prompt-copy" data-copy="Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start one local node, store one durable fact with POST /_memory/agentmem, recall it with POST /_memory/agentmem/_recall, and report the exact hit you got back.">COPY THE PROMPT</button>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -fsSL https://xerj.org/get | sh</code>
+ <button type="button" class="prompt-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY COMMAND</button>
+ <span class="hero-proof">Install the single XERJ binary.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem' -H 'content-type: application/json' -d '{"text":"The user wants answers in metric units."}'</code>
+ <button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9200/_memory/agentmem&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;text&quot;:&quot;The user wants answers in metric units.&quot;}&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">The agent saves one fact. Port 9200 is the default Elasticsearch-compatible listener.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem/_recall' -H 'content-type: application/json' -d '{"query":"which units does the user want","k":3}'</code>
+ <button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9200/_memory/agentmem/_recall&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;query&quot;:&quot;which units does the user want&quot;,&quot;k&quot;:3}&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">A later task reads it back. Plain query recall is BM25 over the stored text.</span>
+ </div>
+ <h2>The short definition</h2>
+ <p>An agent with memory can say "remember this" and find it again next week. The memory lives outside the model, in a store the agent reads and writes through tools.</p>
+ <p>LangChain calls the agent-driven version updating memory "in the hot path": the agent itself decides to remember a fact, usually via a tool call, before it answers. The other route is a background process that writes memory for the agent.</p>
+ <h2>The three common types</h2>
+ <table>
+ <thead><tr><th>type</th><th>what it holds</th><th>example</th></tr></thead>
+ <tbody>
+ <tr><td>semantic</td><td>facts</td><td>the user wants metric units</td></tr>
+ <tr><td>episodic</td><td>past events</td><td>the deploy failed last Tuesday on step 3</td></tr>
+ <tr><td>procedural</td><td>how to do a task</td><td>run the linter before every commit</td></tr>
+ </tbody>
+ </table>
- <p>This split comes from the CoALA paper, as summarized by LangChain. Most agent memory tools store all three as text and differ in how they write and recall it.</p>
++ <p>This split comes from the CoALA paper, as summarized by LangChain. A memory application can represent these as text, structured records or links, depending on its retrieval needs.</p>
+ <h2>Memory is search</h2>
+ <p>Saving a note is simple. The hard part is getting the right note back out when the agent asks a vague question months later. That is a retrieval job, which is why XERJ treats memory as a search feature and not as a separate database.</p>
+ <h2>How XERJ does it</h2>
+ <p>XERJ is the search engine for AI agents: a new way for AI to search for data, in one local binary. Memory is part of the same API.</p>
+ <ul>
- <li><code class="inline">POST /_memory/{namespace}</code> saves a fact. No model runs on the write path.</li>
++ <li><code class="inline">POST /_memory/{namespace}</code> saves a fact. The configured embedder runs at write time; the default is lexical feature hashing.</li>
+ <li><code class="inline">POST /_memory/{namespace}/_recall</code> finds it again. Plain <code class="inline">query</code> recall is BM25.</li>
+ <li><code class="inline">DELETE /_memory/{namespace}/{id}</code> forgets one entry.</li>
- <li>Each namespace is its own index, so two agents do not read each other's notes.</li>
++ <li>Each namespace is its own index. Use separately scoped API keys to restrict agents to their own namespaces; names alone are not an access boundary.</li>
+ <li>Over MCP, <code class="inline">xerj mcp</code> exposes the same calls as <code class="inline">xerj_memory_store</code> and <code class="inline">xerj_memory_recall</code>.</li>
+ </ul>
+ <p>The default embedder is lexical feature hashing, so <code class="inline">semantic: true</code> recall matches shared words, not meaning. Start the node with <code class="inline">--embed-mode neural</code> for a real neural embedder.</p>
+ <h2>Limits to know</h2>
+ <p>XERJ is single-node: no replication and no failover. There is no decay and no TTL. A memory is permanent until explicitly forgotten. The only time signal is <code class="inline">stored_at</code>, which the optional <code class="inline">recency_weight</code> re-rank uses.</p>
+ <h2>Try it</h2>
+ <p>Copy the prompt on this page into your coding agent, or follow the <a href="/docs/recipes/agentic-memory">agent memory recipe</a>.</p>
+ <h2>FAQ</h2>
+ <h3>What is agentic memory in simple words?</h3>
+ <p>Notes an AI agent keeps for itself. The agent saves a fact with a tool call and looks it up later, so the fact outlives the chat that produced it.</p>
+ <h3>How is agentic memory different from a context window?</h3>
+ <p>The context window is what the model sees right now and it is lost when the session ends. Agentic memory lives in a store outside the model and is searched back in when needed.</p>
+ <h3>What types of agentic memory are there?</h3>
+ <p>A common split, from the CoALA paper as summarized by LangChain, is semantic memory for facts, episodic memory for past events and procedural memory for how to do a task.</p>
+ <h3>Does agentic memory need a vector database?</h3>
+ <p>No. Recall is a search problem. XERJ stores memories as documents in one local binary and recalls them with BM25 by default, with no second database.</p>
+ <h3>Can an agent use XERJ memory over MCP?</h3>
+ <p>Yes. The xerj mcp server exposes xerj_memory_store and xerj_memory_recall, which call the same /_memory endpoints.</p>
+ <h3>Does XERJ forget memories on its own?</h3>
+ <p>No. There is no decay and no TTL. A memory is permanent until explicitly forgotten with DELETE /_memory/{namespace}/{id}.</p>
+ <h2>Evidence</h2>
+ <ul>
+ <li>LangChain describes agents updating memory in the hot path, where the agent explicitly decides to remember facts, usually via tool calling, or in the background by a separate process. — <a href="https://www.langchain.com/blog/memory-for-agents">https://www.langchain.com/blog/memory-for-agents</a></li>
+ <li>LangChain, after the CoALA paper, splits agent long-term memory into procedural, semantic and episodic memory. — <a href="https://www.langchain.com/blog/memory-for-agents">https://www.langchain.com/blog/memory-for-agents</a></li>
+ <li>XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls, DELETE /_memory/{namespace}/{id} forgets one entry, each namespace is its own .xerj-memory-{namespace} index. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
+ <li>xerj mcp exposes xerj_memory_store and xerj_memory_recall as MCP tools. — <code>landing/docs/agents/schemas/mcp-tools.json</code></li>
+ </ul>
+ <h2>Related</h2>
+ <ul>
+ <li><a href="/answers/agentic-memory-vs-rag">Agentic memory vs RAG: what is the difference?</a></li>
+ <li><a href="/answers/what-is-an-mcp-memory-server">What is an MCP memory server?</a></li>
+ <li><a href="/compare/xerj-vs-agent-memory-tools">XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a></li>
+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a></li>
+ <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a></li>
+ <li><a href="/docs/recipes/agentic-memory">Agent memory</a></li>
+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a> <span class="mute">· same intent: agent memory</span></li>
+ </ul>
+ </main>
+ <nav class="docs-nav" aria-label="Article sections">
+ <div class="group">
+ <span class="label">ANSWERS</span>
+ <a href="/answers/"><span class="eyebrow">00</span>All Answers</a>
+ <a href="/answers/give-chatgpt-claude-local-file-access" class=""><span class="eyebrow">01</span>Can ChatGPT search a folder on my laptop, or do I need something else?</a>
+ <a href="/answers/code-search-mcp-for-claude-code" class=""><span class="eyebrow">02</span>I need my agent to find a passage and cite the file, not dump the whole tree. How?</a>
+ <a href="/answers/local-search-mcp-for-codex-and-cursor" class=""><span class="eyebrow">03</span>Search tool for a Codex agent, on the files you have</a>
+ <a href="/answers/mcp-api-search-or-vector-search" class=""><span class="eyebrow">04</span>Should an agent use API search or vector search?</a>
+ <a href="/answers/agentic-memory-vs-rag" class=""><span class="eyebrow">05</span>Agentic memory vs RAG: what is the difference?</a>
+ <a href="/answers/what-is-agentic-memory" class="active"><span class="eyebrow">06</span>What is agentic memory?</a>
+ <a href="/answers/what-is-an-mcp-memory-server" class=""><span class="eyebrow">07</span>What is an MCP memory server?</a>
+ <a href="/answers/knowledge-graphs-for-agent-memory" class=""><span class="eyebrow">08</span>Should agent memory use a knowledge graph?</a>
+ <a href="/answers/store-agent-memory-without-llm-call" class=""><span class="eyebrow">09</span>How do I stop an agent memory store from filling with near-duplicate notes?</a>
+ <a href="/answers/evidence-for-agent-memory-links" class=""><span class="eyebrow">10</span>How can agent-memory links retain evidence?</a>
+ <a href="/answers/private-agent-memory-namespaces" class=""><span class="eyebrow">11</span>How do I give two agents private memory on one laptop?</a>
+ <a href="/answers/coding-agent-memory-across-sessions" class=""><span class="eyebrow">12</span>How do people store user preferences so an agent can recall them next week?</a>
+ <a href="/answers/search-claude-code-past-sessions" class=""><span class="eyebrow">13</span>Search Claude Code past sessions on disk</a>
+ <a href="/answers/set-mcp-memory-storage-path" class=""><span class="eyebrow">14</span>How do I set the MCP memory storage path?</a>
+ <a href="/answers/agent-memory-without-postgres-qdrant" class=""><span class="eyebrow">15</span>What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a>
+ <a href="/answers/ask-questions-about-a-github-repo-without-cloning" class=""><span class="eyebrow">16</span>Ask questions about a GitHub repo without cloning it</a>
+ <a href="/answers/batch-lookup-cve-ghsa-ids-offline" class=""><span class="eyebrow">17</span>Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a>
+ <a href="/answers/full-text-search-over-jsonl-files-cli" class=""><span class="eyebrow">18</span>Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a>
+ <a href="/answers/local-code-search-mcp-fewer-tokens-than-grep" class=""><span class="eyebrow">19</span>Local code search MCP for Claude Code that uses fewer tokens than grep</a>
+ <a href="/answers/retrieval-that-says-not-found-with-file-line-citations" class=""><span class="eyebrow">20</span>Retrieval that says not found, and cites file and line when it does answer</a>
+ <a href="/answers/batch-lookup-ids-from-csv-against-local-index" class=""><span class="eyebrow">21</span>Look up 1,000 IDs against a local index</a>
+ <a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">22</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
+ <a href="/answers/verify-ai-report-claims-against-sources" class=""><span class="eyebrow">23</span>Verify claims in a report against the saved sources</a>
+ <a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">24</span>How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a>
+ <a href="/answers/index-reference-library-for-coding-agent" class=""><span class="eyebrow">25</span>How do I set up reference coding so the agent retrieves a mechanism before writing code?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">26</span>xerj corpus index --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/classify-text-from-labelled-history-without-llm" class=""><span class="eyebrow">27</span>Can I route tickets or filter spam from labelled history, without an LLM call?</a>
+ <a href="/answers/reduce-embedding-api-cost" class=""><span class="eyebrow">28</span>How do I reduce embedding API cost?</a>
+ <a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">29</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
+ <a href="/answers/do-search-embeddings-help" class=""><span class="eyebrow">30</span>When should I turn on neural embeddings, and when is the lexical default enough?</a>
+ <a href="/answers/count-keyword-mentions-over-time-jsonl" class=""><span class="eyebrow">31</span>Count mentions of a word over time in a posts file</a>
+ <a href="/answers/search-yaml-xml-config-repository" class=""><span class="eyebrow">32</span>How do I find every place a config key is set across YAML and XML in a repo?</a>
+ <a href="/answers/full-text-search-sqlite-database" class=""><span class="eyebrow">33</span>How do I full-text search a SQLite database I just copied onto disk?</a>
+ <a href="/answers/index-csv-with-many-columns" class=""><span class="eyebrow">34</span>How do I index a CSV with many columns?</a>
+ <a href="/answers/index-markdown-into-elasticsearch-api" class=""><span class="eyebrow">35</span>How do I index Markdown into the Elasticsearch API?</a>
+ <a href="/answers/syntax-aware-code-search-refactoring" class=""><span class="eyebrow">36</span>How do I run syntax-aware code search?</a>
+ <a href="/answers/search-gzipped-csv-or-json" class=""><span class="eyebrow">37</span>How do I search a .csv.gz or .json.gz without unzipping it first?</a>
+ <a href="/answers/search-confluence-html-export" class=""><span class="eyebrow">38</span>How do I search a Confluence export?</a>
+ <a href="/answers/search-slack-json-export" class=""><span class="eyebrow">39</span>How do I search a Slack JSON export?</a>
+ <a href="/answers/search-bvh-motion-capture-files" class=""><span class="eyebrow">40</span>How do I search BVH motion-capture files?</a>
+ <a href="/answers/search-gzip-logs-without-zgrep" class=""><span class="eyebrow">41</span>How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a>
+ <a href="/answers/search-kubernetes-pod-logs-on-disk" class=""><span class="eyebrow">42</span>How do I search Kubernetes pod logs?</a>
+ <a href="/answers/search-word-documents-in-a-folder" class=""><span class="eyebrow">43</span>How do I search through a folder of contracts in .docx?</a>
+ <a href="/answers/search-unity-project-assets" class=""><span class="eyebrow">44</span>How do I search Unity YAML scenes and the C# that references them as one project?</a>
+ <a href="/answers/index-monorepo-for-agent" class=""><span class="eyebrow">45</span>How do I stop my agent from reading the whole repo into context?</a>
+ <a href="/answers/catalog-files-with-autoindex-map" class=""><span class="eyebrow">46</span>How should an agent figure out what's in a messy data folder before searching?</a>
+ <a href="/answers/search-all-pdfs-in-a-folder" class=""><span class="eyebrow">47</span>I downloaded a bunch of papers as PDFs. How do I search across them?</a>
+ <a href="/answers/search-sql-dump-file" class=""><span class="eyebrow">48</span>I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a>
+ <a href="/answers/index-multiple-csv-files" class=""><span class="eyebrow">49</span>I have a directory of CSV exports. How do I query them without opening each one in Excel?</a>
+ <a href="/answers/search-file-contents-in-a-folder" class=""><span class="eyebrow">50</span>I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a>
+ <a href="/answers/search-zendesk-ticket-json-export" class=""><span class="eyebrow">51</span>I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a>
+ <a href="/answers/read-indexed-email-and-pdf-folder" class=""><span class="eyebrow">52</span>I indexed a folder of email and PDFs. How do I actually read what it found?</a>
+ <a href="/answers/search-jupyter-notebook-cells" class=""><span class="eyebrow">53</span>I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</a>
+ <a href="/answers/search-html-export" class=""><span class="eyebrow">54</span>I saved a help-center as HTML. How do I search it like the real help-center search?</a>
+ <a href="/answers/is-pdf-indexing-efficient" class=""><span class="eyebrow">55</span>Is it efficient to index PDF files?</a>
+ <a href="/answers/full-text-search-browser-history" class=""><span class="eyebrow">56</span>Is there a way to full-text search my browser history file itself?</a>
+ <a href="/answers/search-openapi-spec-for-agent" class=""><span class="eyebrow">57</span>My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</a>
+ <a href="/answers/search-obsidian-pdf-docx-attachments" class=""><span class="eyebrow">58</span>What's the best way to search markdown notes and PDFs in the same vault?</a>
+ <a href="/answers/search-json-and-jsonl-logs" class=""><span class="eyebrow">59</span>What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a>
+ <a href="/answers/notion-export-duplicate-search-results" class=""><span class="eyebrow">60</span>Why does my Notion export duplicate titles?</a>
+ <a href="/answers/answer-questions-about-a-docs-folder-with-citations" class=""><span class="eyebrow">61</span>Answer questions about a docs folder, with a file to cite</a>
+ <a href="/answers/search-gmail-takeout-mbox-locally" class=""><span class="eyebrow">62</span>I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a>
+ <a href="/answers/how-xerj-autoindexes-a-folder" class=""><span class="eyebrow">63</span>I want to point something at a folder and then ask questions about what's in it. What should I use?</a>
+ <a href="/answers/find-duplicate-github-issues-before-filing" class=""><span class="eyebrow">64</span>Find duplicate GitHub issues before you file</a>
+ <a href="/answers/search-github-issues-and-prs-locally" class=""><span class="eyebrow">65</span>Search a repo's issues and pull requests on your machine</a>
+ <a href="/answers/rag-without-vector-database" class=""><span class="eyebrow">66</span>How do I build RAG without a vector database?</a>
+ <a href="/answers/hybrid-search-quality-measured-ndcg" class=""><span class="eyebrow">67</span>How much better is hybrid search than BM25? Measured nDCG numbers</a>
+ <a href="/answers/rerank-search-results-calibrated-judge" class=""><span class="eyebrow">68</span>How do I rerank search results with a relevance judge?</a>
+ <a href="/answers/reciprocal-rank-fusion-when-to-use" class=""><span class="eyebrow">69</span>What is Reciprocal Rank Fusion?</a>
+ <a href="/answers/how-xerj-combines-search" class=""><span class="eyebrow">70</span>How does XERJ combine BM25 and kNN?</a>
+ <a href="/answers/search-files-in-an-s3-bucket" class=""><span class="eyebrow">71</span>How do I search files that live in an S3 bucket?</a>
+ <a href="/answers/keep-s3-bucket-index-current" class=""><span class="eyebrow">72</span>How do I keep an index current when the files live in an object store?</a>
+ <a href="/answers/check-codebase-index-is-complete" class=""><span class="eyebrow">73</span>My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a>
+ <a href="/answers/estimate-autoindex-time-before-running" class=""><span class="eyebrow">74</span>How do I estimate folder-indexing time?</a>
+ <a href="/answers/why-autoindex-skipped-files" class=""><span class="eyebrow">75</span>Why would a folder search miss files that I can see on disk?</a>
+ <a href="/answers/autoindex-dataset-refused-by-server" class=""><span class="eyebrow">76</span>One dataset was REFUSED by the server. Did I lose the whole index?</a>
+ <a href="/answers/autoindex-exit-codes" class=""><span class="eyebrow">77</span>The indexer exited 3 (or 4). Did it fail?</a>
+ <a href="/answers/autoindex-server-back-pressure-429" class=""><span class="eyebrow">78</span>The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a>
+ <a href="/answers/autoindex-says-extract-the-archive-first" class=""><span class="eyebrow">79</span>xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a>
+ <a href="/answers/keep-index-current-as-files-change" class=""><span class="eyebrow">80</span>How do I keep a search index up to date as files change, without re-indexing everything?</a>
+ <a href="/answers/search-engine-without-docker" class=""><span class="eyebrow">81</span>Is there a single-binary local search engine I can just run?</a>
+ <a href="/answers/cheap-low-volume-log-search" class=""><span class="eyebrow">82</span>What can I use for low-volume log search?</a>
+ <a href="/answers/read-autoindex-progress" class=""><span class="eyebrow">83</span>How do I read autoindex progress?</a>
+ <a href="/answers/resume-interrupted-autoindex-run" class=""><span class="eyebrow">84</span>The indexer died overnight. Do I have to start over?</a>
+ <a href="/answers/reindex-taking-forever" class=""><span class="eyebrow">85</span>Reindexing my files is taking forever. What usually causes that?</a>
+ <a href="/answers/what-is-xerj" class=""><span class="eyebrow">86</span>What is XERJ?</a>
+ <a href="/answers/improve-basic-faiss-rag-pipeline" class=""><span class="eyebrow">87</span>How do I improve a basic FAISS RAG pipeline?</a>
+ <a href="/answers/filter-knn-exact-scan-caveat" class=""><span class="eyebrow">88</span>Why did my filtered vector search get slower when I added a filter?</a>
+ <a href="/answers/vector-database-vs-full-text-search" class=""><span class="eyebrow">89</span>What's the actual difference between a vector database and full-text search when I have a folder?</a>
+ <a href="/answers/share-folder-read-only-search-without-uploading" class=""><span class="eyebrow">90</span>How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?</a>
+ <a href="/answers/share-local-search-index-through-a-tunnel" class=""><span class="eyebrow">91</span>How do I let someone outside my network search an index on my laptop without opening a port?</a>
+ <a href="/answers/what-a-share-link-guest-can-reach" class=""><span class="eyebrow">92</span>If I share one index with a link and a passcode, what can that person actually reach on my node?</a>
+ </div>
+ <div class="group">
+ <span class="label">COMPARISONS</span>
+ <a href="/compare/"><span class="eyebrow">00</span>All Comparisons</a>
+ <a href="/compare/xerj-vs-agent-memory-tools" class=""><span class="eyebrow">01</span>XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a>
+ <a href="/compare/xerj-vs-web-agent-search" class=""><span class="eyebrow">02</span>How do I let an agent search a folder on my laptop instead of crawling the web?</a>
+ <a href="/compare/xerj-vs-ast-grep" class=""><span class="eyebrow">03</span>ast-grep vs a code index for an agent?</a>
+ <a href="/compare/xerj-vs-ripgrep-for-code-agents" class=""><span class="eyebrow">04</span>Is ripgrep enough for a coding agent, or do I need a code index?</a>
+ <a href="/compare/best-grep-alternative-for-ai-coding-agents-2026" class=""><span class="eyebrow">05</span>The best grep and ripgrep alternatives for AI coding agents in 2026</a>
+ <a href="/compare/best-mcp-server-local-code-search-2026" class=""><span class="eyebrow">06</span>The best MCP servers for searching a local codebase in 2026</a>
+ <a href="/compare/best-local-full-text-search-jsonl-csv-2026" class=""><span class="eyebrow">07</span>The best local full-text search for JSONL and CSV files in 2026, with a published benchmark</a>
+ <a href="/compare/xerj-vs-ripgrep-all" class=""><span class="eyebrow">08</span>How do I grep PDFs and Word docs from the command line?</a>
+ <a href="/compare/xerj-vs-docfetcher" class=""><span class="eyebrow">09</span>What's a free DocFetcher alternative that an agent can call?</a>
+ <a href="/compare/xerj-vs-recoll" class=""><span class="eyebrow">10</span>What's the best local desktop search for a folder of PDFs and docs?</a>
+ <a href="/compare/xerj-vs-houdahspot" class=""><span class="eyebrow">11</span>XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a>
+ <a href="/compare/xerj-vs-spotlight" class=""><span class="eyebrow">12</span>XERJ vs macOS Spotlight for folder content an agent can query</a>
+ <a href="/compare/xerj-vs-localsynapse" class=""><span class="eyebrow">13</span>What's a local MCP search engine for Claude?</a>
+ <a href="/compare/xerj-vs-elasticsearch-local" class=""><span class="eyebrow">14</span>Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a>
+ <a href="/compare/xerj-vs-obsidian-omnisearch" class=""><span class="eyebrow">15</span>How do I search an Obsidian vault from outside Obsidian?</a>
+ <a href="/compare/xerj-vs-khoj" class=""><span class="eyebrow">16</span>What's a simpler alternative to Khoj if I only need search and memory?</a>
+ <a href="/compare/xerj-vs-typesense" class=""><span class="eyebrow">17</span>Do I need Typesense for an agent to search my docs?</a>
+ <a href="/compare/best-lightweight-elasticsearch-compatible-server-2026" class=""><span class="eyebrow">18</span>The best lightweight Elasticsearch-compatible search servers in 2026</a>
+ <a href="/compare/xerj-vs-meilisearch" class=""><span class="eyebrow">19</span>What's a local alternative to Meilisearch that indexes a folder by itself?</a>
+ <a href="/compare/xerj-vs-pagefind" class=""><span class="eyebrow">20</span>Pagefind vs indexing a local HTML dump for an agent?</a>
+ <a href="/compare/xerj-vs-vector-database" class=""><span class="eyebrow">21</span>Should my agent call a search API or stand up Qdrant for persistent memory?</a>
+ </div>
+ </nav>
+ </div>
+ <!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+ <nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">LEARN</span>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARE</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/blog/">BLOG</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ <a href="/resources/">SALES KIT</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+ </nav>
+ <!-- seo:footer-end -->
+ <footer class="footer">
+ <span>XERJ.AI · ANSWERS</span>
+ <span>READ THE SOURCE</span>
+ <span><a href="/">HOME</a> · <a href="/product">PRODUCT</a> · <a href="/answers/">ANSWERS</a> · <a href="/playground">DASHBOARDS</a> &middot; <a href="/llms.txt">LLMS.TXT</a></span>
+ </footer>
+ <script src="/interact.js"></script>
+ </body>
+ </html>
diff --cc landing/answers/what-is-agentic-memory.md
index 000000000,22d03a7f7..4b223fbc1
mode 000000,100644..100644
--- a/landing/answers/what-is-agentic-memory.md
+++ b/landing/answers/what-is-agentic-memory.md
@@@ -1,0 -1,130 +1,130 @@@
+ <!-- generated by build_articles.py — edit content/answers/what-is-agentic-memory.md instead -->
+ ---
+ title: "What is agentic memory? A plain answer"
+ canonical: "https://xerj.org/answers/what-is-agentic-memory"
+ updated: "2026-10-28"
+ source: "content/answers/what-is-agentic-memory.md"
+ ---
+
+ # What is agentic memory?
+
+ **Short answer** (updated 2026-10-28): What is agentic memory? It is memory that an AI agent manages itself: the agent decides what to save, writes it through a tool call, and searches it again in a later task or session. It differs from a chat history because it is stored outside the model and survives restarts. XERJ serves it as a search endpoint.
+
+ **TL;DR**: Agentic memory is memory an AI agent manages for itself. The agent decides what to keep, saves it with a tool call, and searches it again in a later task. Recall is a search problem, so XERJ serves agent memory as two endpoints on one local search engine.
+
+ ## Agent prompt
+
+ ```text
+ Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start one local node, store one durable fact with POST /_memory/agentmem, recall it with POST /_memory/agentmem/_recall, and report the exact hit you got back.
+ ```
+
+ ## Commands
+
+ ### Command 1
+
+ Note: Install the single XERJ binary.
+
+ ```sh
+ curl -fsSL https://xerj.org/get | sh
+ ```
+
+ ### Command 2
+
+ Note: The agent saves one fact. Port 9200 is the default Elasticsearch-compatible listener.
+
+ ```sh
+ curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem' -H 'content-type: application/json' -d '{"text":"The user wants answers in metric units."}'
+ ```
+
+ ### Command 3
+
+ Note: A later task reads it back. Plain query recall is BM25 over the stored text.
+
+ ```sh
+ curl -s -XPOST 'http://127.0.0.1:9200/_memory/agentmem/_recall' -H 'content-type: application/json' -d '{"query":"which units does the user want","k":3}'
+ ```
+
+ ## The short definition
+
+ An agent with memory can say "remember this" and find it again next week. The memory lives outside the model, in a store the agent reads and writes through tools.
+
+ LangChain calls the agent-driven version updating memory "in the hot path": the agent itself decides to remember a fact, usually via a tool call, before it answers. The other route is a background process that writes memory for the agent.
+
+ ## The three common types
+
+ | type | what it holds | example |
+ | --- | --- | --- |
+ | semantic | facts | the user wants metric units |
+ | episodic | past events | the deploy failed last Tuesday on step 3 |
+ | procedural | how to do a task | run the linter before every commit |
+
-This split comes from the CoALA paper, as summarized by LangChain. Most agent memory tools store all three as text and differ in how they write and recall it.
++This split comes from the CoALA paper, as summarized by LangChain. A memory application can represent these as text, structured records or links, depending on its retrieval needs.
+
+ ## Memory is search
+
+ Saving a note is simple. The hard part is getting the right note back out when the agent asks a vague question months later. That is a retrieval job, which is why XERJ treats memory as a search feature and not as a separate database.
+
+ ## How XERJ does it
+
+ XERJ is the search engine for AI agents: a new way for AI to search for data, in one local binary. Memory is part of the same API.
+
-- `POST /_memory/{namespace}` saves a fact. No model runs on the write path.
++- `POST /_memory/{namespace}` saves a fact. The configured embedder runs at write time; the default is lexical feature hashing.
+ - `POST /_memory/{namespace}/_recall` finds it again. Plain `query` recall is BM25.
+ - `DELETE /_memory/{namespace}/{id}` forgets one entry.
-- Each namespace is its own index, so two agents do not read each other's notes.
++- Each namespace is its own index. Use separately scoped API keys to restrict agents to their own namespaces; names alone are not an access boundary.
+ - Over MCP, `xerj mcp` exposes the same calls as `xerj_memory_store` and `xerj_memory_recall`.
+
+ The default embedder is lexical feature hashing, so `semantic: true` recall matches shared words, not meaning. Start the node with `--embed-mode neural` for a real neural embedder.
+
+ ## Limits to know
+
+ XERJ is single-node: no replication and no failover. There is no decay and no TTL. A memory is permanent until explicitly forgotten. The only time signal is `stored_at`, which the optional `recency_weight` re-rank uses.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent, or follow the [agent memory recipe](/docs/recipes/agentic-memory).
+
+ ## FAQ
+
+ ### What is agentic memory in simple words?
+
+ Notes an AI agent keeps for itself. The agent saves a fact with a tool call and looks it up later, so the fact outlives the chat that produced it.
+
+ ### How is agentic memory different from a context window?
+
+ The context window is what the model sees right now and it is lost when the session ends. Agentic memory lives in a store outside the model and is searched back in when needed.
+
+ ### What types of agentic memory are there?
+
+ A common split, from the CoALA paper as summarized by LangChain, is semantic memory for facts, episodic memory for past events and procedural memory for how to do a task.
+
+ ### Does agentic memory need a vector database?
+
+ No. Recall is a search problem. XERJ stores memories as documents in one local binary and recalls them with BM25 by default, with no second database.
+
+ ### Can an agent use XERJ memory over MCP?
+
+ Yes. The xerj mcp server exposes xerj_memory_store and xerj_memory_recall, which call the same /_memory endpoints.
+
+ ### Does XERJ forget memories on its own?
+
+ No. There is no decay and no TTL. A memory is permanent until explicitly forgotten with DELETE /_memory/{namespace}/{id}.
+
+ ## Evidence
+
+ - LangChain describes agents updating memory in the hot path, where the agent explicitly decides to remember facts, usually via tool calling, or in the background by a separate process. — [https://www.langchain.com/blog/memory-for-agents](https://www.langchain.com/blog/memory-for-agents)
+ - LangChain, after the CoALA paper, splits agent long-term memory into procedural, semantic and episodic memory. — [https://www.langchain.com/blog/memory-for-agents](https://www.langchain.com/blog/memory-for-agents)
+ - XERJ memory: POST /_memory/{namespace} stores, POST /_memory/{namespace}/_recall recalls, DELETE /_memory/{namespace}/{id} forgets one entry, each namespace is its own .xerj-memory-{namespace} index. — `engine/crates/xerj-api/src/memory_api.rs`
+ - xerj mcp exposes xerj_memory_store and xerj_memory_recall as MCP tools. — `landing/docs/agents/schemas/mcp-tools.json`
+
+ ## Related
+
+ - [Agentic memory vs RAG: what is the difference?](/answers/agentic-memory-vs-rag)
+ - [What is an MCP memory server?](/answers/what-is-an-mcp-memory-server)
+ - [XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee](/compare/xerj-vs-agent-memory-tools)
+ - [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant)
+ - [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call)
+ - [Agent memory](/docs/recipes/agentic-memory)
+ - [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)
+ - [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces) (same intent: agent memory)
+ - [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path) (same intent: agent memory)
diff --cc landing/answers/what-is-an-mcp-memory-server.html
index 000000000,a54d09f97..9db1528d2
mode 000000,100644..100644
--- a/landing/answers/what-is-an-mcp-memory-server.html
+++ b/landing/answers/what-is-an-mcp-memory-server.html
@@@ -1,0 -1,476 +1,476 @@@
+ <!-- generated by build_articles.py — edit content/answers/what-is-an-mcp-memory-server.md instead -->
+ <!DOCTYPE html>
+ <html lang="en" data-theme="day">
+ <head>
+ <!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-Z77ETCDJYL');
+ </script>
+ <!-- ga4:end -->
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>What is an MCP memory server?</title>
+ <meta name="description" content="An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%230b0b0d'/><text x='50' y='68' font-size='60' font-family='Big Shoulders Display,sans-serif' font-weight='900' fill='%23ffc400' text-anchor='middle'>X</text></svg>">
+ <script src="/theme.js"></script>
+ <link rel="stylesheet" href="/style.css?v=as2">
+ <link rel="alternate" type="text/markdown" href="/answers/what-is-an-mcp-memory-server.md">
+ <!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+ <link rel="canonical" href="https://xerj.org/answers/what-is-an-mcp-memory-server">
+ <meta property="og:site_name" content="XERJ.ai">
+ <meta property="og:type" content="article">
+ <meta property="og:title" content="What is an MCP memory server?">
+ <meta property="og:description" content="An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.">
+ <meta property="og:url" content="https://xerj.org/answers/what-is-an-mcp-memory-server">
+ <meta property="og:image" content="https://xerj.org/og/xerj-card.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="What is an MCP memory server?">
+ <meta name="twitter:description" content="An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.">
+ <meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "description": "A new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers.",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj",
+ "https://x.com/xerj_org"
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "TechArticle",
+ "headline": "What is an MCP memory server?",
+ "description": "An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.",
+ "url": "https://xerj.org/answers/what-is-an-mcp-memory-server",
+ "image": "https://xerj.org/og/xerj-card.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-28",
+ "dateModified": "2026-10-28",
+ "author": {
+ "@type": "Organization",
+ "name": "XERJ documentation team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/answers/what-is-an-mcp-memory-server"
+ },
+ "reviewedBy": {
+ "@type": "Organization",
+ "name": "XERJ engineering team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ "mainEntity": [
+ {
+ "@type": "Question",
+ "name": "What does an MCP memory server do?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "It gives an AI assistant tools to write facts to a store and read them back later. Any MCP client, such as Claude Code or Cursor, can call those tools."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "How is it different from a normal MCP server?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "It is a normal MCP server whose tools happen to be about memory. The protocol is the same; only the tools differ."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "What does the reference MCP memory server store?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "The modelcontextprotocol reference server keeps entities, relations and observations in a local JSONL file. You choose the file with MEMORY_FILE_PATH."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Which memory tools does xerj mcp expose?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "xerj_memory_store saves a fact to a namespace and xerj_memory_recall finds it again. They call POST /_memory/{namespace} and its _recall endpoint on a local node."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Does the XERJ memory server need an API key or a model?",
+ "acceptedAnswer": {
+ "@type": "Answer",
- "text": "No. No model runs on the write path, and the default embedder is lexical feature hashing inside the binary, so it works offline."
++ "text": "The default lexical embedder needs no model download or external provider key. A secured XERJ node still requires its own API key. Neural or proxy embedding is optional and also runs when memories are stored."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Where does XERJ keep the memories?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "In the node data directory, one .xerj-memory-{namespace} index per namespace. Change the location by starting the node with a different data directory."
+ }
+ }
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Answers",
+ "item": "https://xerj.org/answers/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "What is an MCP memory server?"
+ }
+ ]
+ }
+ </script>
+ <!-- seo:end -->
+ </head>
+ <body>
+ <nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/product">PRODUCT</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/answers/" class="active">ANSWERS</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://hub.xerj.org" rel="external">HUB</a>
+ <a class="nav-stars" href="https://github.com/xerj-org/xerj" rel="external" title="XERJ on GitHub" aria-label="XERJ on GitHub, 14,225 stars"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span class="nav-stars-n" data-gh-stars="14225">★ 14.2k</span></a>
+ <a href="https://x.com/xerj_org" rel="external" title="XERJ on X" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg></a>
+ <a href="https://discord.com/invite/yetXFusXfs" rel="external" title="XERJ on Discord" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.37a19.79 19.79 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.74 19.74 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.1 13.1 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.3 12.3 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.84 19.84 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg></a>
+ <span class="theme">
+ <button type="button" data-theme="day" class="active">DAY</button>
+ <span class="dash">·</span>
+ <button type="button" data-theme="night">NIGHT</button>
+ </span>
+ </nav>
+ <div class="docs-shell article-shell">
+ <main class="docs-content">
+ <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT IS AN MCP MEMORY SERVER?</div>
+ <div class="kicker"><span>ANSWERS · AGENT MEMORY: CONCEPTS</span></div>
+ <h1>What is an MCP memory server?</h1>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-10-28 · UPDATED · 2026-10-28</div>
+ <div class="prompt-card answer-first" id="short-answer">
+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-28</span>
+ <p>What is an MCP memory server? It is a Model Context Protocol server that gives an AI assistant tools to save facts and recall them later, so memory survives across chats and clients. The assistant calls the tools itself. XERJ ships one inside its binary: xerj mcp exposes xerj_memory_store and xerj_memory_recall.</p>
+ </div>
+ <p><strong>TL;DR</strong>: An MCP memory server is a Model Context Protocol server whose tools save and recall facts, so an agent keeps what it learned across chats. XERJ ships one in the same binary as its search engine: <code class="inline">xerj mcp</code> exposes <code class="inline">xerj_memory_store</code> and <code class="inline">xerj_memory_recall</code>.</p>
+ <div class="prompt-card">
+ <span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>
+ <code>Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, register xerj mcp as an MCP server in this client, call xerj_memory_store with one fact in namespace agentmem, then call xerj_memory_recall and report the hit.</code>
+ <button type="button" class="prompt-copy" data-copy="Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, register xerj mcp as an MCP server in this client, call xerj_memory_store with one fact in namespace agentmem, then call xerj_memory_recall and report the hit.">COPY THE PROMPT</button>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -fsSL https://xerj.org/get | sh</code>
+ <button type="button" class="prompt-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY COMMAND</button>
+ <span class="hero-proof">Install the single XERJ binary. The MCP server is the xerj mcp subcommand of the same binary.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>xerj mcp --help</code>
+ <button type="button" class="prompt-copy" data-copy="xerj mcp --help">COPY COMMAND</button>
+ <span class="hero-proof">Show the MCP server options. It talks to a node you already started; it does not start one.</span>
+ </div>
+ <h2>The short definition</h2>
+ <p>MCP is the protocol AI clients like Claude Code and Cursor use to call outside tools. A memory server is an MCP server with two jobs: save a fact when the assistant asks, and find it again later.</p>
+ <p>The assistant decides when to call those tools. That is what makes the memory agentic.</p>
+ <h2>Two common designs</h2>
+ <table>
+ <thead><tr><th>design</th><th>what it stores</th><th>how it finds things</th></tr></thead>
+ <tbody>
+ <tr><td>the reference server</td><td>entities, relations and observations in a JSONL file</td><td>reads the graph and matches names and text</td></tr>
+ <tr><td>XERJ</td><td>each fact as a document in a search index</td><td>BM25 search by default, with filters</td></tr>
+ </tbody>
+ </table>
+ <p>The reference server from the modelcontextprotocol project is a good small start. XERJ fits when memory should sit next to the files and data your agent already searches.</p>
+ <h2>How XERJ does it</h2>
+ <p>XERJ is the search engine for AI agents. <code class="inline">xerj mcp</code> is an MCP stdio server inside the same binary. Point it at a local node you already started.</p>
+ <ul>
- <li><code class="inline">xerj_memory_store</code> saves a fact to a namespace. No model runs on the write path.</li>
++ <li><code class="inline">xerj_memory_store</code> saves a fact to a namespace. The configured embedder runs at write time; lexical feature hashing is the default.</li>
+ <li><code class="inline">xerj_memory_recall</code> finds it again. The default is BM25 over the stored text.</li>
- <li>Each namespace is its own index, so two agents can keep private memories on one laptop.</li>
++ <li>Each namespace is its own index. Privacy between agents requires separately scoped API keys, not only different namespace names.</li>
+ </ul>
+ <p>The default embedder is lexical feature hashing. Recall with <code class="inline">semantic: true</code> matches shared words unless the node runs with <code class="inline">--embed-mode neural</code>.</p>
+ <h2>Limits to know</h2>
+ <p>XERJ is single-node. Memories are permanent until explicitly forgotten; there is no decay and no TTL.</p>
+ <h2>Try it</h2>
+ <p>Copy the prompt on this page into your coding agent, or read the <a href="/docs/recipes/agentic-memory">agent memory recipe</a>.</p>
+ <h2>FAQ</h2>
+ <h3>What does an MCP memory server do?</h3>
+ <p>It gives an AI assistant tools to write facts to a store and read them back later. Any MCP client, such as Claude Code or Cursor, can call those tools.</p>
+ <h3>How is it different from a normal MCP server?</h3>
+ <p>It is a normal MCP server whose tools happen to be about memory. The protocol is the same; only the tools differ.</p>
+ <h3>What does the reference MCP memory server store?</h3>
+ <p>The modelcontextprotocol reference server keeps entities, relations and observations in a local JSONL file. You choose the file with MEMORY_FILE_PATH.</p>
+ <h3>Which memory tools does xerj mcp expose?</h3>
+ <p>xerj_memory_store saves a fact to a namespace and xerj_memory_recall finds it again. They call POST /_memory/{namespace} and its _recall endpoint on a local node.</p>
+ <h3>Does the XERJ memory server need an API key or a model?</h3>
- <p>No. No model runs on the write path, and the default embedder is lexical feature hashing inside the binary, so it works offline.</p>
++ <p>The default lexical embedder needs no model download or external provider key. A secured XERJ node still requires its own API key. Neural or proxy embedding is optional and also runs when memories are stored.</p>
+ <h3>Where does XERJ keep the memories?</h3>
+ <p>In the node data directory, one .xerj-memory-{namespace} index per namespace. Change the location by starting the node with a different data directory.</p>
+ <h2>Evidence</h2>
+ <ul>
+ <li>The reference MCP memory server stores a graph of entities, relations and observations in a local JSONL file set by MEMORY_FILE_PATH. — <a href="https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md">https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md</a></li>
+ <li>xerj mcp exposes xerj_memory_store, which proxies POST /_memory/{namespace}, and xerj_memory_recall, which proxies POST /_memory/{namespace}/_recall. — <code>landing/docs/agents/schemas/mcp-tools.json</code></li>
+ <li>Each XERJ memory namespace is backed by its own .xerj-memory-{namespace} index. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
+ </ul>
+ <h2>Related</h2>
+ <ul>
+ <li><a href="/answers/what-is-agentic-memory">What is agentic memory?</a></li>
+ <li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a></li>
+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a></li>
+ <li><a href="/compare/xerj-vs-agent-memory-tools">XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a></li>
+ <li><a href="/docs/recipes/agentic-memory">Agent memory</a></li>
+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/agentic-memory-vs-rag">Agentic memory vs RAG: what is the difference?</a> <span class="mute">· same intent: agent memory</span></li>
+ </ul>
+ </main>
+ <nav class="docs-nav" aria-label="Article sections">
+ <div class="group">
+ <span class="label">ANSWERS</span>
+ <a href="/answers/"><span class="eyebrow">00</span>All Answers</a>
+ <a href="/answers/give-chatgpt-claude-local-file-access" class=""><span class="eyebrow">01</span>Can ChatGPT search a folder on my laptop, or do I need something else?</a>
+ <a href="/answers/code-search-mcp-for-claude-code" class=""><span class="eyebrow">02</span>I need my agent to find a passage and cite the file, not dump the whole tree. How?</a>
+ <a href="/answers/local-search-mcp-for-codex-and-cursor" class=""><span class="eyebrow">03</span>Search tool for a Codex agent, on the files you have</a>
+ <a href="/answers/mcp-api-search-or-vector-search" class=""><span class="eyebrow">04</span>Should an agent use API search or vector search?</a>
+ <a href="/answers/agentic-memory-vs-rag" class=""><span class="eyebrow">05</span>Agentic memory vs RAG: what is the difference?</a>
+ <a href="/answers/what-is-agentic-memory" class=""><span class="eyebrow">06</span>What is agentic memory?</a>
+ <a href="/answers/what-is-an-mcp-memory-server" class="active"><span class="eyebrow">07</span>What is an MCP memory server?</a>
+ <a href="/answers/knowledge-graphs-for-agent-memory" class=""><span class="eyebrow">08</span>Should agent memory use a knowledge graph?</a>
+ <a href="/answers/store-agent-memory-without-llm-call" class=""><span class="eyebrow">09</span>How do I stop an agent memory store from filling with near-duplicate notes?</a>
+ <a href="/answers/evidence-for-agent-memory-links" class=""><span class="eyebrow">10</span>How can agent-memory links retain evidence?</a>
+ <a href="/answers/private-agent-memory-namespaces" class=""><span class="eyebrow">11</span>How do I give two agents private memory on one laptop?</a>
+ <a href="/answers/coding-agent-memory-across-sessions" class=""><span class="eyebrow">12</span>How do people store user preferences so an agent can recall them next week?</a>
+ <a href="/answers/search-claude-code-past-sessions" class=""><span class="eyebrow">13</span>Search Claude Code past sessions on disk</a>
+ <a href="/answers/set-mcp-memory-storage-path" class=""><span class="eyebrow">14</span>How do I set the MCP memory storage path?</a>
+ <a href="/answers/agent-memory-without-postgres-qdrant" class=""><span class="eyebrow">15</span>What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a>
+ <a href="/answers/ask-questions-about-a-github-repo-without-cloning" class=""><span class="eyebrow">16</span>Ask questions about a GitHub repo without cloning it</a>
+ <a href="/answers/batch-lookup-cve-ghsa-ids-offline" class=""><span class="eyebrow">17</span>Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a>
+ <a href="/answers/full-text-search-over-jsonl-files-cli" class=""><span class="eyebrow">18</span>Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a>
+ <a href="/answers/local-code-search-mcp-fewer-tokens-than-grep" class=""><span class="eyebrow">19</span>Local code search MCP for Claude Code that uses fewer tokens than grep</a>
+ <a href="/answers/retrieval-that-says-not-found-with-file-line-citations" class=""><span class="eyebrow">20</span>Retrieval that says not found, and cites file and line when it does answer</a>
+ <a href="/answers/batch-lookup-ids-from-csv-against-local-index" class=""><span class="eyebrow">21</span>Look up 1,000 IDs against a local index</a>
+ <a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">22</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
+ <a href="/answers/verify-ai-report-claims-against-sources" class=""><span class="eyebrow">23</span>Verify claims in a report against the saved sources</a>
+ <a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">24</span>How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a>
+ <a href="/answers/index-reference-library-for-coding-agent" class=""><span class="eyebrow">25</span>How do I set up reference coding so the agent retrieves a mechanism before writing code?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">26</span>xerj corpus index --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/classify-text-from-labelled-history-without-llm" class=""><span class="eyebrow">27</span>Can I route tickets or filter spam from labelled history, without an LLM call?</a>
+ <a href="/answers/reduce-embedding-api-cost" class=""><span class="eyebrow">28</span>How do I reduce embedding API cost?</a>
+ <a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">29</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
+ <a href="/answers/do-search-embeddings-help" class=""><span class="eyebrow">30</span>When should I turn on neural embeddings, and when is the lexical default enough?</a>
+ <a href="/answers/count-keyword-mentions-over-time-jsonl" class=""><span class="eyebrow">31</span>Count mentions of a word over time in a posts file</a>
+ <a href="/answers/search-yaml-xml-config-repository" class=""><span class="eyebrow">32</span>How do I find every place a config key is set across YAML and XML in a repo?</a>
+ <a href="/answers/full-text-search-sqlite-database" class=""><span class="eyebrow">33</span>How do I full-text search a SQLite database I just copied onto disk?</a>
+ <a href="/answers/index-csv-with-many-columns" class=""><span class="eyebrow">34</span>How do I index a CSV with many columns?</a>
+ <a href="/answers/index-markdown-into-elasticsearch-api" class=""><span class="eyebrow">35</span>How do I index Markdown into the Elasticsearch API?</a>
+ <a href="/answers/syntax-aware-code-search-refactoring" class=""><span class="eyebrow">36</span>How do I run syntax-aware code search?</a>
+ <a href="/answers/search-gzipped-csv-or-json" class=""><span class="eyebrow">37</span>How do I search a .csv.gz or .json.gz without unzipping it first?</a>
+ <a href="/answers/search-confluence-html-export" class=""><span class="eyebrow">38</span>How do I search a Confluence export?</a>
+ <a href="/answers/search-slack-json-export" class=""><span class="eyebrow">39</span>How do I search a Slack JSON export?</a>
+ <a href="/answers/search-bvh-motion-capture-files" class=""><span class="eyebrow">40</span>How do I search BVH motion-capture files?</a>
+ <a href="/answers/search-gzip-logs-without-zgrep" class=""><span class="eyebrow">41</span>How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a>
+ <a href="/answers/search-kubernetes-pod-logs-on-disk" class=""><span class="eyebrow">42</span>How do I search Kubernetes pod logs?</a>
+ <a href="/answers/search-word-documents-in-a-folder" class=""><span class="eyebrow">43</span>How do I search through a folder of contracts in .docx?</a>
+ <a href="/answers/search-unity-project-assets" class=""><span class="eyebrow">44</span>How do I search Unity YAML scenes and the C# that references them as one project?</a>
+ <a href="/answers/index-monorepo-for-agent" class=""><span class="eyebrow">45</span>How do I stop my agent from reading the whole repo into context?</a>
+ <a href="/answers/catalog-files-with-autoindex-map" class=""><span class="eyebrow">46</span>How should an agent figure out what's in a messy data folder before searching?</a>
+ <a href="/answers/search-all-pdfs-in-a-folder" class=""><span class="eyebrow">47</span>I downloaded a bunch of papers as PDFs. How do I search across them?</a>
+ <a href="/answers/search-sql-dump-file" class=""><span class="eyebrow">48</span>I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a>
+ <a href="/answers/index-multiple-csv-files" class=""><span class="eyebrow">49</span>I have a directory of CSV exports. How do I query them without opening each one in Excel?</a>
+ <a href="/answers/search-file-contents-in-a-folder" class=""><span class="eyebrow">50</span>I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a>
+ <a href="/answers/search-zendesk-ticket-json-export" class=""><span class="eyebrow">51</span>I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a>
+ <a href="/answers/read-indexed-email-and-pdf-folder" class=""><span class="eyebrow">52</span>I indexed a folder of email and PDFs. How do I actually read what it found?</a>
+ <a href="/answers/search-jupyter-notebook-cells" class=""><span class="eyebrow">53</span>I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</a>
+ <a href="/answers/search-html-export" class=""><span class="eyebrow">54</span>I saved a help-center as HTML. How do I search it like the real help-center search?</a>
+ <a href="/answers/is-pdf-indexing-efficient" class=""><span class="eyebrow">55</span>Is it efficient to index PDF files?</a>
+ <a href="/answers/full-text-search-browser-history" class=""><span class="eyebrow">56</span>Is there a way to full-text search my browser history file itself?</a>
+ <a href="/answers/search-openapi-spec-for-agent" class=""><span class="eyebrow">57</span>My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</a>
+ <a href="/answers/search-obsidian-pdf-docx-attachments" class=""><span class="eyebrow">58</span>What's the best way to search markdown notes and PDFs in the same vault?</a>
+ <a href="/answers/search-json-and-jsonl-logs" class=""><span class="eyebrow">59</span>What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a>
+ <a href="/answers/notion-export-duplicate-search-results" class=""><span class="eyebrow">60</span>Why does my Notion export duplicate titles?</a>
+ <a href="/answers/answer-questions-about-a-docs-folder-with-citations" class=""><span class="eyebrow">61</span>Answer questions about a docs folder, with a file to cite</a>
+ <a href="/answers/search-gmail-takeout-mbox-locally" class=""><span class="eyebrow">62</span>I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a>
+ <a href="/answers/how-xerj-autoindexes-a-folder" class=""><span class="eyebrow">63</span>I want to point something at a folder and then ask questions about what's in it. What should I use?</a>
+ <a href="/answers/find-duplicate-github-issues-before-filing" class=""><span class="eyebrow">64</span>Find duplicate GitHub issues before you file</a>
+ <a href="/answers/search-github-issues-and-prs-locally" class=""><span class="eyebrow">65</span>Search a repo's issues and pull requests on your machine</a>
+ <a href="/answers/rag-without-vector-database" class=""><span class="eyebrow">66</span>How do I build RAG without a vector database?</a>
+ <a href="/answers/hybrid-search-quality-measured-ndcg" class=""><span class="eyebrow">67</span>How much better is hybrid search than BM25? Measured nDCG numbers</a>
+ <a href="/answers/rerank-search-results-calibrated-judge" class=""><span class="eyebrow">68</span>How do I rerank search results with a relevance judge?</a>
+ <a href="/answers/reciprocal-rank-fusion-when-to-use" class=""><span class="eyebrow">69</span>What is Reciprocal Rank Fusion?</a>
+ <a href="/answers/how-xerj-combines-search" class=""><span class="eyebrow">70</span>How does XERJ combine BM25 and kNN?</a>
+ <a href="/answers/search-files-in-an-s3-bucket" class=""><span class="eyebrow">71</span>How do I search files that live in an S3 bucket?</a>
+ <a href="/answers/keep-s3-bucket-index-current" class=""><span class="eyebrow">72</span>How do I keep an index current when the files live in an object store?</a>
+ <a href="/answers/check-codebase-index-is-complete" class=""><span class="eyebrow">73</span>My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a>
+ <a href="/answers/estimate-autoindex-time-before-running" class=""><span class="eyebrow">74</span>How do I estimate folder-indexing time?</a>
+ <a href="/answers/why-autoindex-skipped-files" class=""><span class="eyebrow">75</span>Why would a folder search miss files that I can see on disk?</a>
+ <a href="/answers/autoindex-dataset-refused-by-server" class=""><span class="eyebrow">76</span>One dataset was REFUSED by the server. Did I lose the whole index?</a>
+ <a href="/answers/autoindex-exit-codes" class=""><span class="eyebrow">77</span>The indexer exited 3 (or 4). Did it fail?</a>
+ <a href="/answers/autoindex-server-back-pressure-429" class=""><span class="eyebrow">78</span>The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a>
+ <a href="/answers/autoindex-says-extract-the-archive-first" class=""><span class="eyebrow">79</span>xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a>
+ <a href="/answers/keep-index-current-as-files-change" class=""><span class="eyebrow">80</span>How do I keep a search index up to date as files change, without re-indexing everything?</a>
+ <a href="/answers/search-engine-without-docker" class=""><span class="eyebrow">81</span>Is there a single-binary local search engine I can just run?</a>
+ <a href="/answers/cheap-low-volume-log-search" class=""><span class="eyebrow">82</span>What can I use for low-volume log search?</a>
+ <a href="/answers/read-autoindex-progress" class=""><span class="eyebrow">83</span>How do I read autoindex progress?</a>
+ <a href="/answers/resume-interrupted-autoindex-run" class=""><span class="eyebrow">84</span>The indexer died overnight. Do I have to start over?</a>
+ <a href="/answers/reindex-taking-forever" class=""><span class="eyebrow">85</span>Reindexing my files is taking forever. What usually causes that?</a>
+ <a href="/answers/what-is-xerj" class=""><span class="eyebrow">86</span>What is XERJ?</a>
+ <a href="/answers/improve-basic-faiss-rag-pipeline" class=""><span class="eyebrow">87</span>How do I improve a basic FAISS RAG pipeline?</a>
+ <a href="/answers/filter-knn-exact-scan-caveat" class=""><span class="eyebrow">88</span>Why did my filtered vector search get slower when I added a filter?</a>
+ <a href="/answers/vector-database-vs-full-text-search" class=""><span class="eyebrow">89</span>What's the actual difference between a vector database and full-text search when I have a folder?</a>
+ <a href="/answers/share-folder-read-only-search-without-uploading" class=""><span class="eyebrow">90</span>How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?</a>
+ <a href="/answers/share-local-search-index-through-a-tunnel" class=""><span class="eyebrow">91</span>How do I let someone outside my network search an index on my laptop without opening a port?</a>
+ <a href="/answers/what-a-share-link-guest-can-reach" class=""><span class="eyebrow">92</span>If I share one index with a link and a passcode, what can that person actually reach on my node?</a>
+ </div>
+ <div class="group">
+ <span class="label">COMPARISONS</span>
+ <a href="/compare/"><span class="eyebrow">00</span>All Comparisons</a>
+ <a href="/compare/xerj-vs-agent-memory-tools" class=""><span class="eyebrow">01</span>XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a>
+ <a href="/compare/xerj-vs-web-agent-search" class=""><span class="eyebrow">02</span>How do I let an agent search a folder on my laptop instead of crawling the web?</a>
+ <a href="/compare/xerj-vs-ast-grep" class=""><span class="eyebrow">03</span>ast-grep vs a code index for an agent?</a>
+ <a href="/compare/xerj-vs-ripgrep-for-code-agents" class=""><span class="eyebrow">04</span>Is ripgrep enough for a coding agent, or do I need a code index?</a>
+ <a href="/compare/best-grep-alternative-for-ai-coding-agents-2026" class=""><span class="eyebrow">05</span>The best grep and ripgrep alternatives for AI coding agents in 2026</a>
+ <a href="/compare/best-mcp-server-local-code-search-2026" class=""><span class="eyebrow">06</span>The best MCP servers for searching a local codebase in 2026</a>
+ <a href="/compare/best-local-full-text-search-jsonl-csv-2026" class=""><span class="eyebrow">07</span>The best local full-text search for JSONL and CSV files in 2026, with a published benchmark</a>
+ <a href="/compare/xerj-vs-ripgrep-all" class=""><span class="eyebrow">08</span>How do I grep PDFs and Word docs from the command line?</a>
+ <a href="/compare/xerj-vs-docfetcher" class=""><span class="eyebrow">09</span>What's a free DocFetcher alternative that an agent can call?</a>
+ <a href="/compare/xerj-vs-recoll" class=""><span class="eyebrow">10</span>What's the best local desktop search for a folder of PDFs and docs?</a>
+ <a href="/compare/xerj-vs-houdahspot" class=""><span class="eyebrow">11</span>XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a>
+ <a href="/compare/xerj-vs-spotlight" class=""><span class="eyebrow">12</span>XERJ vs macOS Spotlight for folder content an agent can query</a>
+ <a href="/compare/xerj-vs-localsynapse" class=""><span class="eyebrow">13</span>What's a local MCP search engine for Claude?</a>
+ <a href="/compare/xerj-vs-elasticsearch-local" class=""><span class="eyebrow">14</span>Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a>
+ <a href="/compare/xerj-vs-obsidian-omnisearch" class=""><span class="eyebrow">15</span>How do I search an Obsidian vault from outside Obsidian?</a>
+ <a href="/compare/xerj-vs-khoj" class=""><span class="eyebrow">16</span>What's a simpler alternative to Khoj if I only need search and memory?</a>
+ <a href="/compare/xerj-vs-typesense" class=""><span class="eyebrow">17</span>Do I need Typesense for an agent to search my docs?</a>
+ <a href="/compare/best-lightweight-elasticsearch-compatible-server-2026" class=""><span class="eyebrow">18</span>The best lightweight Elasticsearch-compatible search servers in 2026</a>
+ <a href="/compare/xerj-vs-meilisearch" class=""><span class="eyebrow">19</span>What's a local alternative to Meilisearch that indexes a folder by itself?</a>
+ <a href="/compare/xerj-vs-pagefind" class=""><span class="eyebrow">20</span>Pagefind vs indexing a local HTML dump for an agent?</a>
+ <a href="/compare/xerj-vs-vector-database" class=""><span class="eyebrow">21</span>Should my agent call a search API or stand up Qdrant for persistent memory?</a>
+ </div>
+ </nav>
+ </div>
+ <!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+ <nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">LEARN</span>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARE</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/blog/">BLOG</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ <a href="/resources/">SALES KIT</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+ </nav>
+ <!-- seo:footer-end -->
+ <footer class="footer">
+ <span>XERJ.AI · ANSWERS</span>
+ <span>READ THE SOURCE</span>
+ <span><a href="/">HOME</a> · <a href="/product">PRODUCT</a> · <a href="/answers/">ANSWERS</a> · <a href="/playground">DASHBOARDS</a> &middot; <a href="/llms.txt">LLMS.TXT</a></span>
+ </footer>
+ <script src="/interact.js"></script>
+ </body>
+ </html>
diff --cc landing/answers/what-is-an-mcp-memory-server.md
index 000000000,3034c81b4..f19fd2943
mode 000000,100644..100644
--- a/landing/answers/what-is-an-mcp-memory-server.md
+++ b/landing/answers/what-is-an-mcp-memory-server.md
@@@ -1,0 -1,113 +1,113 @@@
+ <!-- generated by build_articles.py — edit content/answers/what-is-an-mcp-memory-server.md instead -->
+ ---
+ title: "What is an MCP memory server?"
+ canonical: "https://xerj.org/answers/what-is-an-mcp-memory-server"
+ updated: "2026-10-28"
+ source: "content/answers/what-is-an-mcp-memory-server.md"
+ ---
+
+ # What is an MCP memory server?
+
+ **Short answer** (updated 2026-10-28): What is an MCP memory server? It is a Model Context Protocol server that gives an AI assistant tools to save facts and recall them later, so memory survives across chats and clients. The assistant calls the tools itself. XERJ ships one inside its binary: xerj mcp exposes xerj_memory_store and xerj_memory_recall.
+
+ **TL;DR**: An MCP memory server is a Model Context Protocol server whose tools save and recall facts, so an agent keeps what it learned across chats. XERJ ships one in the same binary as its search engine: `xerj mcp` exposes `xerj_memory_store` and `xerj_memory_recall`.
+
+ ## Agent prompt
+
+ ```text
+ Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, register xerj mcp as an MCP server in this client, call xerj_memory_store with one fact in namespace agentmem, then call xerj_memory_recall and report the hit.
+ ```
+
+ ## Commands
+
+ ### Command 1
+
+ Note: Install the single XERJ binary. The MCP server is the xerj mcp subcommand of the same binary.
+
+ ```sh
+ curl -fsSL https://xerj.org/get | sh
+ ```
+
+ ### Command 2
+
+ Note: Show the MCP server options. It talks to a node you already started; it does not start one.
+
+ ```sh
+ xerj mcp --help
+ ```
+
+ ## The short definition
+
+ MCP is the protocol AI clients like Claude Code and Cursor use to call outside tools. A memory server is an MCP server with two jobs: save a fact when the assistant asks, and find it again later.
+
+ The assistant decides when to call those tools. That is what makes the memory agentic.
+
+ ## Two common designs
+
+ | design | what it stores | how it finds things |
+ | --- | --- | --- |
+ | the reference server | entities, relations and observations in a JSONL file | reads the graph and matches names and text |
+ | XERJ | each fact as a document in a search index | BM25 search by default, with filters |
+
+ The reference server from the modelcontextprotocol project is a good small start. XERJ fits when memory should sit next to the files and data your agent already searches.
+
+ ## How XERJ does it
+
+ XERJ is the search engine for AI agents. `xerj mcp` is an MCP stdio server inside the same binary. Point it at a local node you already started.
+
-- `xerj_memory_store` saves a fact to a namespace. No model runs on the write path.
++- `xerj_memory_store` saves a fact to a namespace. The configured embedder runs at write time; lexical feature hashing is the default.
+ - `xerj_memory_recall` finds it again. The default is BM25 over the stored text.
-- Each namespace is its own index, so two agents can keep private memories on one laptop.
++- Each namespace is its own index. Privacy between agents requires separately scoped API keys, not only different namespace names.
+
+ The default embedder is lexical feature hashing. Recall with `semantic: true` matches shared words unless the node runs with `--embed-mode neural`.
+
+ ## Limits to know
+
+ XERJ is single-node. Memories are permanent until explicitly forgotten; there is no decay and no TTL.
+
+ ## Try it
+
+ Copy the prompt on this page into your coding agent, or read the [agent memory recipe](/docs/recipes/agentic-memory).
+
+ ## FAQ
+
+ ### What does an MCP memory server do?
+
+ It gives an AI assistant tools to write facts to a store and read them back later. Any MCP client, such as Claude Code or Cursor, can call those tools.
+
+ ### How is it different from a normal MCP server?
+
+ It is a normal MCP server whose tools happen to be about memory. The protocol is the same; only the tools differ.
+
+ ### What does the reference MCP memory server store?
+
+ The modelcontextprotocol reference server keeps entities, relations and observations in a local JSONL file. You choose the file with MEMORY_FILE_PATH.
+
+ ### Which memory tools does xerj mcp expose?
+
+ xerj_memory_store saves a fact to a namespace and xerj_memory_recall finds it again. They call POST /_memory/{namespace} and its _recall endpoint on a local node.
+
+ ### Does the XERJ memory server need an API key or a model?
+
-No. No model runs on the write path, and the default embedder is lexical feature hashing inside the binary, so it works offline.
++The default lexical embedder needs no model download or external provider key. A secured XERJ node still requires its own API key. Neural or proxy embedding is optional and also runs when memories are stored.
+
+ ### Where does XERJ keep the memories?
+
+ In the node data directory, one .xerj-memory-{namespace} index per namespace. Change the location by starting the node with a different data directory.
+
+ ## Evidence
+
+ - The reference MCP memory server stores a graph of entities, relations and observations in a local JSONL file set by MEMORY_FILE_PATH. — [https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md](https://github.com/modelcontextprotocol/servers/blob/main/src/memory/README.md)
+ - xerj mcp exposes xerj_memory_store, which proxies POST /_memory/{namespace}, and xerj_memory_recall, which proxies POST /_memory/{namespace}/_recall. — `landing/docs/agents/schemas/mcp-tools.json`
+ - Each XERJ memory namespace is backed by its own .xerj-memory-{namespace} index. — `engine/crates/xerj-api/src/memory_api.rs`
+
+ ## Related
+
+ - [What is agentic memory?](/answers/what-is-agentic-memory)
+ - [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path)
+ - [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces)
+ - [XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee](/compare/xerj-vs-agent-memory-tools)
+ - [Agent memory](/docs/recipes/agentic-memory)
+ - [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)
+ - [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)
+ - [Agentic memory vs RAG: what is the difference?](/answers/agentic-memory-vs-rag) (same intent: agent memory)
diff --cc landing/compare/index.json
index f937aeb16,7a3a8a29d..a101b12d6
--- a/landing/compare/index.json
+++ b/landing/compare/index.json
@@@ -2,6 -2,24 +2,24 @@@
"generated_by": "scripts/seo/build_articles.py",
"section": "compare",
"articles": [
+ {
+ "title": "XERJ vs Mem0, Zep, Letta and Cognee for agent memory",
+ "question": "Should I use Mem0, Zep, Letta, Cognee or XERJ for AI agent memory?",
+ "canonical_url": "https://xerj.org/compare/xerj-vs-agent-memory-tools",
+ "markdown_url": "https://xerj.org/compare/xerj-vs-agent-memory-tools.md",
+ "cluster": "Comparison: agent memory",
+ "updated": "2026-10-28",
+ "summary": "How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one.",
+ "intent_group": "agent memory",
- "answer": "Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no model on the write path.",
++ "answer": "Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no generative fact-extraction step.",
+ "queries": [
+ "mem0 vs zep vs letta",
+ "mem0 alternative open source",
+ "zep alternative self-hosted",
+ "agent memory tools comparison",
+ "self-hosted agent memory no LLM"
+ ]
+ },
{
"title": "Local folder search vs a web agent search API",
"question": "How do I let an agent search a folder on my laptop instead of crawling the web?",
diff --cc landing/compare/xerj-vs-agent-memory-tools.html
index 000000000,844c81cb1..72a71e86a
mode 000000,100644..100644
--- a/landing/compare/xerj-vs-agent-memory-tools.html
+++ b/landing/compare/xerj-vs-agent-memory-tools.html
@@@ -1,0 -1,497 +1,497 @@@
+ <!-- generated by build_articles.py — edit content/compare/xerj-vs-agent-memory-tools.md instead -->
+ <!DOCTYPE html>
+ <html lang="en" data-theme="day">
+ <head>
+ <!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-Z77ETCDJYL');
+ </script>
+ <!-- ga4:end -->
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>XERJ vs Mem0, Zep, Letta and Cognee for agent memory</title>
+ <meta name="description" content="How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one.">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%230b0b0d'/><text x='50' y='68' font-size='60' font-family='Big Shoulders Display,sans-serif' font-weight='900' fill='%23ffc400' text-anchor='middle'>X</text></svg>">
+ <script src="/theme.js"></script>
+ <link rel="stylesheet" href="/style.css?v=as2">
+ <link rel="alternate" type="text/markdown" href="/compare/xerj-vs-agent-memory-tools.md">
+ <!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+ <link rel="canonical" href="https://xerj.org/compare/xerj-vs-agent-memory-tools">
+ <meta property="og:site_name" content="XERJ.ai">
+ <meta property="og:type" content="article">
+ <meta property="og:title" content="XERJ vs Mem0, Zep, Letta and Cognee for agent memory">
+ <meta property="og:description" content="How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one.">
+ <meta property="og:url" content="https://xerj.org/compare/xerj-vs-agent-memory-tools">
+ <meta property="og:image" content="https://xerj.org/og/xerj-card.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="XERJ vs Mem0, Zep, Letta and Cognee for agent memory">
+ <meta name="twitter:description" content="How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one.">
+ <meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "description": "A new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers.",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj",
+ "https://x.com/xerj_org"
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "Article",
+ "headline": "XERJ vs Mem0, Zep, Letta and Cognee for agent memory",
+ "description": "How XERJ compares with Mem0, Zep, Letta and Cognee for AI agent memory: what each one stores, what it needs to run, and when to pick each one.",
+ "url": "https://xerj.org/compare/xerj-vs-agent-memory-tools",
+ "image": "https://xerj.org/og/xerj-card.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-28",
+ "dateModified": "2026-10-28",
+ "author": {
+ "@type": "Organization",
+ "name": "XERJ documentation team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/compare/xerj-vs-agent-memory-tools"
+ },
+ "reviewedBy": {
+ "@type": "Organization",
+ "name": "XERJ engineering team",
+ "parentOrganization": {
+ "@id": "https://xerj.org/#organization"
+ }
+ }
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "FAQPage",
+ "mainEntity": [
+ {
+ "@type": "Question",
+ "name": "What is the main difference between XERJ and Mem0?",
+ "acceptedAnswer": {
+ "@type": "Answer",
- "text": "Mem0 uses an LLM to extract facts from conversations, and its README says it requires one. XERJ stores the text your agent sends as is and finds it with search, with no model on the write path."
++ "text": "Mem0 extracts facts by default and supports raw inserts with infer=false. XERJ stores the supplied text and generates a search vector with its configured embedder, lexical feature hashing by default."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Is Zep open source?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Zep Cloud is a commercial cloud product. Zep Community Edition is deprecated. The open-source part is Graphiti, an Apache-2.0 framework where you bring your own graph database, LLM and embedder."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Is Letta a memory layer?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Letta is broader: it is a harness for stateful agents, with memory blocks and a git-versioned memory filesystem. You run your agent inside Letta rather than calling it as a store."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Does Cognee need an LLM?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Not for ingestion and retrieval. Its README says it runs locally with a GLiNER model and a local embedder, and an LLM key adds generated answers."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "When is XERJ the better fit?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "When you want memory as plain searchable records on your own machine, next to the files and data your agent already searches, without an LLM or a second database."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "Did you benchmark these tools against each other?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "No. No head-to-head was run. This page compares what each project documents about itself."
+ }
+ }
+ ]
+ }
+ </script>
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Comparisons",
+ "item": "https://xerj.org/compare/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee"
+ }
+ ]
+ }
+ </script>
+ <!-- seo:end -->
+ </head>
+ <body>
+ <nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/product">PRODUCT</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/answers/" class="active">ANSWERS</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://hub.xerj.org" rel="external">HUB</a>
+ <a class="nav-stars" href="https://github.com/xerj-org/xerj" rel="external" title="XERJ on GitHub" aria-label="XERJ on GitHub, 14,225 stars"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><span class="nav-stars-n" data-gh-stars="14225">★ 14.2k</span></a>
+ <a href="https://x.com/xerj_org" rel="external" title="XERJ on X" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg></a>
+ <a href="https://discord.com/invite/yetXFusXfs" rel="external" title="XERJ on Discord" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.37a19.79 19.79 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.74 19.74 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.1 13.1 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.3 12.3 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.84 19.84 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg></a>
+ <span class="theme">
+ <button type="button" data-theme="day" class="active">DAY</button>
+ <span class="dash">·</span>
+ <button type="button" data-theme="night">NIGHT</button>
+ </span>
+ </nav>
+ <div class="docs-shell article-shell">
+ <main class="docs-content">
+ <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>XERJ VS AGENT MEMORY TOOLS: MEM0, ZEP, LETTA AND COGNEE</div>
+ <div class="kicker"><span>COMPARE · COMPARISON: AGENT MEMORY</span></div>
+ <h1>XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</h1>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-10-28 · UPDATED · 2026-10-28</div>
+ <div class="prompt-card answer-first" id="short-answer">
+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-28</span>
- <p>Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no model on the write path.</p>
++ <p>Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no generative fact-extraction step.</p>
+ </div>
- <p><strong>TL;DR</strong>: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no model on the write path. No head-to-head was run.</p>
++ <p><strong>TL;DR</strong>: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no generative fact-extraction step. No head-to-head was run.</p>
+ <div class="prompt-card">
+ <span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>
+ <code>Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, store three facts about this project with POST /_memory/project, recall each one with POST /_memory/project/_recall, and tell me whether plain search recall is enough for my agent before I add an LLM-based memory tool.</code>
+ <button type="button" class="prompt-copy" data-copy="Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, store three facts about this project with POST /_memory/project, recall each one with POST /_memory/project/_recall, and tell me whether plain search recall is enough for my agent before I add an LLM-based memory tool.">COPY THE PROMPT</button>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -fsSL https://xerj.org/get | sh</code>
+ <button type="button" class="prompt-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY COMMAND</button>
+ <span class="hero-proof">Install the single XERJ binary.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{"text":"Releases are cut from the main branch on Fridays."}'</code>
+ <button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9200/_memory/project&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;text&quot;:&quot;Releases are cut from the main branch on Fridays.&quot;}&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">Store one fact exactly as the agent wrote it.</span>
+ </div>
+ <div class="prompt-card">
+ <span class="prompt-label">RUN THIS XERJ COMMAND</span>
+ <code>curl -s -XPOST 'http://127.0.0.1:9200/_memory/project/_recall' -H 'content-type: application/json' -d '{"query":"when do we release","k":3}'</code>
+ <button type="button" class="prompt-copy" data-copy="curl -s -XPOST &#x27;http://127.0.0.1:9200/_memory/project/_recall&#x27; -H &#x27;content-type: application/json&#x27; -d &#x27;{&quot;query&quot;:&quot;when do we release&quot;,&quot;k&quot;:3}&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">Recall it. Plain query recall is BM25 over the stored text.</span>
+ </div>
+ <h2>What each one is</h2>
+ <table>
+ <thead><tr><th>tool</th><th>what it is</th><th>needs a model to store?</th><th>license</th></tr></thead>
+ <tbody>
- <tr><td>Mem0</td><td>memory layer that extracts facts with an LLM</td><td>yes, OpenAI by default</td><td>Apache 2.0</td></tr>
++ <tr><td>Mem0</td><td>fact extraction by default; raw inserts with infer=false</td><td>LLM extraction optional; embeddings still apply</td><td>Apache 2.0</td></tr>
+ <tr><td>Zep and Graphiti</td><td>Zep Cloud, plus the open Graphiti framework for temporal context graphs</td><td>Graphiti: you supply the LLM</td><td>Graphiti: Apache 2.0</td></tr>
+ <tr><td>Letta</td><td>harness for stateful agents with memory blocks and MemFS</td><td>runs your agent's model</td><td>Apache 2.0</td></tr>
- <tr><td>Cognee</td><td>memory platform that builds a graph of entities and relationships</td><td>no; a local GLiNER model by default</td><td>Apache 2.0</td></tr>
- <tr><td>XERJ</td><td>search engine for AI agents with a memory API</td><td>no</td><td>Apache 2.0</td></tr>
++ <tr><td>Cognee</td><td>memory platform that builds a graph of entities and relationships</td><td>local extraction and embedding models; LLM optional</td><td>Apache 2.0</td></tr>
++ <tr><td>XERJ</td><td>search engine for AI agents with a memory API</td><td>lexical by default; neural/proxy embedder optional</td><td>Apache 2.0</td></tr>
+ </tbody>
+ </table>
+ <p>Each row comes from the project's own README, linked in the sources.</p>
+ <h2>The real difference</h2>
- <p>The four tools above transform what the agent says before they store it. Mem0 extracts facts. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.</p>
- <p>XERJ keeps the raw text the agent sends and makes it searchable. That is less clever, and it is also cheaper and easier to inspect. Recent research points the same way: two 2026 studies found plain retrieval over raw history often matches more complex memory systems. See <a href="/answers/agentic-memory-vs-rag">agentic memory vs RAG</a>.</p>
++ <p>These tools support different memory workflows. Mem0 extracts facts by default and can also store raw text. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.</p>
++ <p>XERJ keeps the raw text the agent sends and makes it searchable. Keeping the original text makes it possible to inspect what was stored. Two 2026 preprints report competitive raw-history retrieval on their evaluated tasks; neither evaluates XERJ or establishes its cost or quality. See <a href="/answers/agentic-memory-vs-rag">agentic memory vs RAG</a>.</p>
+ <h2>When to choose Mem0 instead</h2>
- <p>Choose Mem0 when you want a model to turn chats into short facts. Expect an LLM call on every write. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.</p>
++ <p>Choose Mem0 when you want a model to turn chats into short facts. Its default extraction path calls an LLM; infer=false skips that extraction, while embedding configuration still matters. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.</p>
+ <h2>When to choose Zep or Graphiti instead</h2>
+ <p>Choose Zep Cloud when you want Zep to run it for you. Choose self-hosted Graphiti when facts change over time and you must know what was true when. Graphiti expects a graph store such as Neo4j or FalkorDB.</p>
+ <h2>When to choose Letta instead</h2>
+ <p>Choose Letta when you want the whole agent, not just a store. It puts memory blocks, a memory filesystem, skills and channels in one harness.</p>
+ <h2>When to choose Cognee instead</h2>
+ <p>Choose Cognee when you want documents, code and chats turned into a graph of entities and relationships. Cognee is a Python stack.</p>
+ <h2>When to choose XERJ</h2>
+ <p>Choose XERJ when you want memory and search in one place, on your machine, with nothing extra to run.</p>
+ <ul>
+ <li>Store with <code class="inline">POST /_memory/{namespace}</code> and recall with <code class="inline">_recall</code>. Over MCP, use <code class="inline">xerj_memory_store</code> and <code class="inline">xerj_memory_recall</code>.</li>
- <li>Each namespace is its own index, so agents keep private memories.</li>
++ <li>Each namespace is its own index; use separately scoped API keys to enforce access between agents.</li>
+ <li>The same binary also searches your files, logs and code, so memory and data sit side by side.</li>
+ </ul>
+ <h2>Limits you inherit with XERJ</h2>
+ <p>XERJ is single-node: no replication and no failover. It does not extract facts or build entity links for you. The default embedder is lexical feature hashing, so <code class="inline">semantic: true</code> recall matches shared words unless you start the node with <code class="inline">--embed-mode neural</code>. Memories are permanent until explicitly forgotten.</p>
+ <h2>What was not measured</h2>
- <p>No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Every competitor fact comes from that project's own README or docs, checked on 2026-10-28.</p>
++ <p>No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Competitor behavior is described from the linked project documentation, checked on 2026-10-29. These integrations were not executed in this review.</p>
+ <h2>FAQ</h2>
+ <h3>What is the main difference between XERJ and Mem0?</h3>
- <p>Mem0 uses an LLM to extract facts from conversations, and its README says it requires one. XERJ stores the text your agent sends as is and finds it with search, with no model on the write path.</p>
++ <p>Mem0 extracts facts by default and supports raw inserts with infer=false. XERJ stores the supplied text and generates a search vector with its configured embedder, lexical feature hashing by default.</p>
+ <h3>Is Zep open source?</h3>
+ <p>Zep Cloud is a commercial cloud product. Zep Community Edition is deprecated. The open-source part is Graphiti, an Apache-2.0 framework where you bring your own graph database, LLM and embedder.</p>
+ <h3>Is Letta a memory layer?</h3>
+ <p>Letta is broader: it is a harness for stateful agents, with memory blocks and a git-versioned memory filesystem. You run your agent inside Letta rather than calling it as a store.</p>
+ <h3>Does Cognee need an LLM?</h3>
+ <p>Not for ingestion and retrieval. Its README says it runs locally with a GLiNER model and a local embedder, and an LLM key adds generated answers.</p>
+ <h3>When is XERJ the better fit?</h3>
+ <p>When you want memory as plain searchable records on your own machine, next to the files and data your agent already searches, without an LLM or a second database.</p>
+ <h3>Did you benchmark these tools against each other?</h3>
+ <p>No. No head-to-head was run. This page compares what each project documents about itself.</p>
+ <h2>Evidence</h2>
+ <ul>
- <li>Mem0 requires an LLM to function, with gpt-5-mini from OpenAI as the default, and uses OpenAI text-embedding-3-small as the default embedder. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0. — <a href="https://github.com/mem0ai/mem0">https://github.com/mem0ai/mem0</a></li>
++ <li>Mem0 uses an LLM for its default fact-extraction flow and an embedding model for retrieval. Its add API also supports infer=false to store raw text without fact extraction. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0. — <a href="https://github.com/mem0ai/mem0/blob/main/docs/core-concepts/memory-operations/add.mdx">https://github.com/mem0ai/mem0/blob/main/docs/core-concepts/memory-operations/add.mdx</a></li>
+ <li>Zep Cloud is the managed product. Zep Community Edition is deprecated and unsupported. Graphiti is the open-source framework inside Zep for temporal context graphs, and you supply the graph database, LLM and embedder. — <a href="https://github.com/getzep/zep">https://github.com/getzep/zep</a></li>
+ <li>Graphiti is an Apache-2.0 framework for building temporal context graphs for AI agents; you bring your own graph database such as Neo4j or FalkorDB. — <a href="https://github.com/getzep/graphiti">https://github.com/getzep/graphiti</a></li>
+ <li>Letta (formerly MemGPT) is a harness for stateful agents with memory blocks and a git-versioned memory filesystem (MemFS). The local runtime keeps agent state on the device. Apache 2.0. — <a href="https://github.com/letta-ai/letta-code">https://github.com/letta-ai/letta-code</a></li>
+ <li>Letta docs describe MemFS as the git-versioned memory filesystem agents read, write and reorganize. — <a href="https://docs.letta.com/llms.txt">https://docs.letta.com/llms.txt</a></li>
+ <li>Cognee is an Apache-2.0 open-source AI memory platform that turns documents, code and conversations into a graph of entities and relationships plus searchable chunks. It runs locally without an LLM key using a local GLiNER extraction model; an LLM key adds generated answers. — <a href="https://github.com/topoteretes/cognee">https://github.com/topoteretes/cognee</a></li>
- <li>XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, no model runs on the write path, and each namespace is its own index. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
++ <li>XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, the configured embedder runs at write time, with lexical feature hashing by default, and each namespace is its own index. — <code>engine/crates/xerj-api/src/memory_api.rs</code></li>
+ </ul>
+ <h2>Related</h2>
+ <ul>
+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>
+ <li><a href="/compare/xerj-vs-khoj">What's a simpler alternative to Khoj if I only need search and memory?</a></li>
+ <li><a href="/answers/what-is-agentic-memory">What is agentic memory?</a></li>
+ <li><a href="/answers/what-is-an-mcp-memory-server">What is an MCP memory server?</a></li>
+ <li><a href="/answers/agentic-memory-vs-rag">Agentic memory vs RAG: what is the difference?</a></li>
+ <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a></li>
+ <li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>
+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>
+ </ul>
+ </main>
+ <nav class="docs-nav" aria-label="Article sections">
+ <div class="group">
+ <span class="label">ANSWERS</span>
+ <a href="/answers/"><span class="eyebrow">00</span>All Answers</a>
+ <a href="/answers/give-chatgpt-claude-local-file-access" class=""><span class="eyebrow">01</span>Can ChatGPT search a folder on my laptop, or do I need something else?</a>
+ <a href="/answers/code-search-mcp-for-claude-code" class=""><span class="eyebrow">02</span>I need my agent to find a passage and cite the file, not dump the whole tree. How?</a>
+ <a href="/answers/local-search-mcp-for-codex-and-cursor" class=""><span class="eyebrow">03</span>Search tool for a Codex agent, on the files you have</a>
+ <a href="/answers/mcp-api-search-or-vector-search" class=""><span class="eyebrow">04</span>Should an agent use API search or vector search?</a>
+ <a href="/answers/agentic-memory-vs-rag" class=""><span class="eyebrow">05</span>Agentic memory vs RAG: what is the difference?</a>
+ <a href="/answers/what-is-agentic-memory" class=""><span class="eyebrow">06</span>What is agentic memory?</a>
+ <a href="/answers/what-is-an-mcp-memory-server" class=""><span class="eyebrow">07</span>What is an MCP memory server?</a>
+ <a href="/answers/knowledge-graphs-for-agent-memory" class=""><span class="eyebrow">08</span>Should agent memory use a knowledge graph?</a>
+ <a href="/answers/store-agent-memory-without-llm-call" class=""><span class="eyebrow">09</span>How do I stop an agent memory store from filling with near-duplicate notes?</a>
+ <a href="/answers/evidence-for-agent-memory-links" class=""><span class="eyebrow">10</span>How can agent-memory links retain evidence?</a>
+ <a href="/answers/private-agent-memory-namespaces" class=""><span class="eyebrow">11</span>How do I give two agents private memory on one laptop?</a>
+ <a href="/answers/coding-agent-memory-across-sessions" class=""><span class="eyebrow">12</span>How do people store user preferences so an agent can recall them next week?</a>
+ <a href="/answers/search-claude-code-past-sessions" class=""><span class="eyebrow">13</span>Search Claude Code past sessions on disk</a>
+ <a href="/answers/set-mcp-memory-storage-path" class=""><span class="eyebrow">14</span>How do I set the MCP memory storage path?</a>
+ <a href="/answers/agent-memory-without-postgres-qdrant" class=""><span class="eyebrow">15</span>What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a>
+ <a href="/answers/ask-questions-about-a-github-repo-without-cloning" class=""><span class="eyebrow">16</span>Ask questions about a GitHub repo without cloning it</a>
+ <a href="/answers/batch-lookup-cve-ghsa-ids-offline" class=""><span class="eyebrow">17</span>Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a>
+ <a href="/answers/full-text-search-over-jsonl-files-cli" class=""><span class="eyebrow">18</span>Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a>
+ <a href="/answers/local-code-search-mcp-fewer-tokens-than-grep" class=""><span class="eyebrow">19</span>Local code search MCP for Claude Code that uses fewer tokens than grep</a>
+ <a href="/answers/retrieval-that-says-not-found-with-file-line-citations" class=""><span class="eyebrow">20</span>Retrieval that says not found, and cites file and line when it does answer</a>
+ <a href="/answers/batch-lookup-ids-from-csv-against-local-index" class=""><span class="eyebrow">21</span>Look up 1,000 IDs against a local index</a>
+ <a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">22</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
+ <a href="/answers/verify-ai-report-claims-against-sources" class=""><span class="eyebrow">23</span>Verify claims in a report against the saved sources</a>
+ <a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">24</span>How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a>
+ <a href="/answers/index-reference-library-for-coding-agent" class=""><span class="eyebrow">25</span>How do I set up reference coding so the agent retrieves a mechanism before writing code?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">26</span>xerj corpus index --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/classify-text-from-labelled-history-without-llm" class=""><span class="eyebrow">27</span>Can I route tickets or filter spam from labelled history, without an LLM call?</a>
+ <a href="/answers/reduce-embedding-api-cost" class=""><span class="eyebrow">28</span>How do I reduce embedding API cost?</a>
+ <a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">29</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
+ <a href="/answers/do-search-embeddings-help" class=""><span class="eyebrow">30</span>When should I turn on neural embeddings, and when is the lexical default enough?</a>
+ <a href="/answers/count-keyword-mentions-over-time-jsonl" class=""><span class="eyebrow">31</span>Count mentions of a word over time in a posts file</a>
+ <a href="/answers/search-yaml-xml-config-repository" class=""><span class="eyebrow">32</span>How do I find every place a config key is set across YAML and XML in a repo?</a>
+ <a href="/answers/full-text-search-sqlite-database" class=""><span class="eyebrow">33</span>How do I full-text search a SQLite database I just copied onto disk?</a>
+ <a href="/answers/index-csv-with-many-columns" class=""><span class="eyebrow">34</span>How do I index a CSV with many columns?</a>
+ <a href="/answers/index-markdown-into-elasticsearch-api" class=""><span class="eyebrow">35</span>How do I index Markdown into the Elasticsearch API?</a>
+ <a href="/answers/syntax-aware-code-search-refactoring" class=""><span class="eyebrow">36</span>How do I run syntax-aware code search?</a>
+ <a href="/answers/search-gzipped-csv-or-json" class=""><span class="eyebrow">37</span>How do I search a .csv.gz or .json.gz without unzipping it first?</a>
+ <a href="/answers/search-confluence-html-export" class=""><span class="eyebrow">38</span>How do I search a Confluence export?</a>
+ <a href="/answers/search-slack-json-export" class=""><span class="eyebrow">39</span>How do I search a Slack JSON export?</a>
+ <a href="/answers/search-bvh-motion-capture-files" class=""><span class="eyebrow">40</span>How do I search BVH motion-capture files?</a>
+ <a href="/answers/search-gzip-logs-without-zgrep" class=""><span class="eyebrow">41</span>How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a>
+ <a href="/answers/search-kubernetes-pod-logs-on-disk" class=""><span class="eyebrow">42</span>How do I search Kubernetes pod logs?</a>
+ <a href="/answers/search-word-documents-in-a-folder" class=""><span class="eyebrow">43</span>How do I search through a folder of contracts in .docx?</a>
+ <a href="/answers/search-unity-project-assets" class=""><span class="eyebrow">44</span>How do I search Unity YAML scenes and the C# that references them as one project?</a>
+ <a href="/answers/index-monorepo-for-agent" class=""><span class="eyebrow">45</span>How do I stop my agent from reading the whole repo into context?</a>
+ <a href="/answers/catalog-files-with-autoindex-map" class=""><span class="eyebrow">46</span>How should an agent figure out what's in a messy data folder before searching?</a>
+ <a href="/answers/search-all-pdfs-in-a-folder" class=""><span class="eyebrow">47</span>I downloaded a bunch of papers as PDFs. How do I search across them?</a>
+ <a href="/answers/search-sql-dump-file" class=""><span class="eyebrow">48</span>I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a>
+ <a href="/answers/index-multiple-csv-files" class=""><span class="eyebrow">49</span>I have a directory of CSV exports. How do I query them without opening each one in Excel?</a>
+ <a href="/answers/search-file-contents-in-a-folder" class=""><span class="eyebrow">50</span>I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a>
+ <a href="/answers/search-zendesk-ticket-json-export" class=""><span class="eyebrow">51</span>I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a>
+ <a href="/answers/read-indexed-email-and-pdf-folder" class=""><span class="eyebrow">52</span>I indexed a folder of email and PDFs. How do I actually read what it found?</a>
+ <a href="/answers/search-jupyter-notebook-cells" class=""><span class="eyebrow">53</span>I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</a>
+ <a href="/answers/search-html-export" class=""><span class="eyebrow">54</span>I saved a help-center as HTML. How do I search it like the real help-center search?</a>
+ <a href="/answers/is-pdf-indexing-efficient" class=""><span class="eyebrow">55</span>Is it efficient to index PDF files?</a>
+ <a href="/answers/full-text-search-browser-history" class=""><span class="eyebrow">56</span>Is there a way to full-text search my browser history file itself?</a>
+ <a href="/answers/search-openapi-spec-for-agent" class=""><span class="eyebrow">57</span>My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</a>
+ <a href="/answers/search-obsidian-pdf-docx-attachments" class=""><span class="eyebrow">58</span>What's the best way to search markdown notes and PDFs in the same vault?</a>
+ <a href="/answers/search-json-and-jsonl-logs" class=""><span class="eyebrow">59</span>What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a>
+ <a href="/answers/notion-export-duplicate-search-results" class=""><span class="eyebrow">60</span>Why does my Notion export duplicate titles?</a>
+ <a href="/answers/answer-questions-about-a-docs-folder-with-citations" class=""><span class="eyebrow">61</span>Answer questions about a docs folder, with a file to cite</a>
+ <a href="/answers/search-gmail-takeout-mbox-locally" class=""><span class="eyebrow">62</span>I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a>
+ <a href="/answers/how-xerj-autoindexes-a-folder" class=""><span class="eyebrow">63</span>I want to point something at a folder and then ask questions about what's in it. What should I use?</a>
+ <a href="/answers/find-duplicate-github-issues-before-filing" class=""><span class="eyebrow">64</span>Find duplicate GitHub issues before you file</a>
+ <a href="/answers/search-github-issues-and-prs-locally" class=""><span class="eyebrow">65</span>Search a repo's issues and pull requests on your machine</a>
+ <a href="/answers/rag-without-vector-database" class=""><span class="eyebrow">66</span>How do I build RAG without a vector database?</a>
+ <a href="/answers/hybrid-search-quality-measured-ndcg" class=""><span class="eyebrow">67</span>How much better is hybrid search than BM25? Measured nDCG numbers</a>
+ <a href="/answers/rerank-search-results-calibrated-judge" class=""><span class="eyebrow">68</span>How do I rerank search results with a relevance judge?</a>
+ <a href="/answers/reciprocal-rank-fusion-when-to-use" class=""><span class="eyebrow">69</span>What is Reciprocal Rank Fusion?</a>
+ <a href="/answers/how-xerj-combines-search" class=""><span class="eyebrow">70</span>How does XERJ combine BM25 and kNN?</a>
+ <a href="/answers/search-files-in-an-s3-bucket" class=""><span class="eyebrow">71</span>How do I search files that live in an S3 bucket?</a>
+ <a href="/answers/keep-s3-bucket-index-current" class=""><span class="eyebrow">72</span>How do I keep an index current when the files live in an object store?</a>
+ <a href="/answers/check-codebase-index-is-complete" class=""><span class="eyebrow">73</span>My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a>
+ <a href="/answers/estimate-autoindex-time-before-running" class=""><span class="eyebrow">74</span>How do I estimate folder-indexing time?</a>
+ <a href="/answers/why-autoindex-skipped-files" class=""><span class="eyebrow">75</span>Why would a folder search miss files that I can see on disk?</a>
+ <a href="/answers/autoindex-dataset-refused-by-server" class=""><span class="eyebrow">76</span>One dataset was REFUSED by the server. Did I lose the whole index?</a>
+ <a href="/answers/autoindex-exit-codes" class=""><span class="eyebrow">77</span>The indexer exited 3 (or 4). Did it fail?</a>
+ <a href="/answers/autoindex-server-back-pressure-429" class=""><span class="eyebrow">78</span>The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a>
+ <a href="/answers/autoindex-says-extract-the-archive-first" class=""><span class="eyebrow">79</span>xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a>
+ <a href="/answers/keep-index-current-as-files-change" class=""><span class="eyebrow">80</span>How do I keep a search index up to date as files change, without re-indexing everything?</a>
+ <a href="/answers/search-engine-without-docker" class=""><span class="eyebrow">81</span>Is there a single-binary local search engine I can just run?</a>
+ <a href="/answers/cheap-low-volume-log-search" class=""><span class="eyebrow">82</span>What can I use for low-volume log search?</a>
+ <a href="/answers/read-autoindex-progress" class=""><span class="eyebrow">83</span>How do I read autoindex progress?</a>
+ <a href="/answers/resume-interrupted-autoindex-run" class=""><span class="eyebrow">84</span>The indexer died overnight. Do I have to start over?</a>
+ <a href="/answers/reindex-taking-forever" class=""><span class="eyebrow">85</span>Reindexing my files is taking forever. What usually causes that?</a>
+ <a href="/answers/what-is-xerj" class=""><span class="eyebrow">86</span>What is XERJ?</a>
+ <a href="/answers/improve-basic-faiss-rag-pipeline" class=""><span class="eyebrow">87</span>How do I improve a basic FAISS RAG pipeline?</a>
+ <a href="/answers/filter-knn-exact-scan-caveat" class=""><span class="eyebrow">88</span>Why did my filtered vector search get slower when I added a filter?</a>
+ <a href="/answers/vector-database-vs-full-text-search" class=""><span class="eyebrow">89</span>What's the actual difference between a vector database and full-text search when I have a folder?</a>
+ <a href="/answers/share-folder-read-only-search-without-uploading" class=""><span class="eyebrow">90</span>How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?</a>
+ <a href="/answers/share-local-search-index-through-a-tunnel" class=""><span class="eyebrow">91</span>How do I let someone outside my network search an index on my laptop without opening a port?</a>
+ <a href="/answers/what-a-share-link-guest-can-reach" class=""><span class="eyebrow">92</span>If I share one index with a link and a passcode, what can that person actually reach on my node?</a>
+ </div>
+ <div class="group">
+ <span class="label">COMPARISONS</span>
+ <a href="/compare/"><span class="eyebrow">00</span>All Comparisons</a>
+ <a href="/compare/xerj-vs-agent-memory-tools" class="active"><span class="eyebrow">01</span>XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee</a>
+ <a href="/compare/xerj-vs-web-agent-search" class=""><span class="eyebrow">02</span>How do I let an agent search a folder on my laptop instead of crawling the web?</a>
+ <a href="/compare/xerj-vs-ast-grep" class=""><span class="eyebrow">03</span>ast-grep vs a code index for an agent?</a>
+ <a href="/compare/xerj-vs-ripgrep-for-code-agents" class=""><span class="eyebrow">04</span>Is ripgrep enough for a coding agent, or do I need a code index?</a>
+ <a href="/compare/best-grep-alternative-for-ai-coding-agents-2026" class=""><span class="eyebrow">05</span>The best grep and ripgrep alternatives for AI coding agents in 2026</a>
+ <a href="/compare/best-mcp-server-local-code-search-2026" class=""><span class="eyebrow">06</span>The best MCP servers for searching a local codebase in 2026</a>
+ <a href="/compare/best-local-full-text-search-jsonl-csv-2026" class=""><span class="eyebrow">07</span>The best local full-text search for JSONL and CSV files in 2026, with a published benchmark</a>
+ <a href="/compare/xerj-vs-ripgrep-all" class=""><span class="eyebrow">08</span>How do I grep PDFs and Word docs from the command line?</a>
+ <a href="/compare/xerj-vs-docfetcher" class=""><span class="eyebrow">09</span>What's a free DocFetcher alternative that an agent can call?</a>
+ <a href="/compare/xerj-vs-recoll" class=""><span class="eyebrow">10</span>What's the best local desktop search for a folder of PDFs and docs?</a>
+ <a href="/compare/xerj-vs-houdahspot" class=""><span class="eyebrow">11</span>XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a>
+ <a href="/compare/xerj-vs-spotlight" class=""><span class="eyebrow">12</span>XERJ vs macOS Spotlight for folder content an agent can query</a>
+ <a href="/compare/xerj-vs-localsynapse" class=""><span class="eyebrow">13</span>What's a local MCP search engine for Claude?</a>
+ <a href="/compare/xerj-vs-elasticsearch-local" class=""><span class="eyebrow">14</span>Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a>
+ <a href="/compare/xerj-vs-obsidian-omnisearch" class=""><span class="eyebrow">15</span>How do I search an Obsidian vault from outside Obsidian?</a>
+ <a href="/compare/xerj-vs-khoj" class=""><span class="eyebrow">16</span>What's a simpler alternative to Khoj if I only need search and memory?</a>
+ <a href="/compare/xerj-vs-typesense" class=""><span class="eyebrow">17</span>Do I need Typesense for an agent to search my docs?</a>
+ <a href="/compare/best-lightweight-elasticsearch-compatible-server-2026" class=""><span class="eyebrow">18</span>The best lightweight Elasticsearch-compatible search servers in 2026</a>
+ <a href="/compare/xerj-vs-meilisearch" class=""><span class="eyebrow">19</span>What's a local alternative to Meilisearch that indexes a folder by itself?</a>
+ <a href="/compare/xerj-vs-pagefind" class=""><span class="eyebrow">20</span>Pagefind vs indexing a local HTML dump for an agent?</a>
+ <a href="/compare/xerj-vs-vector-database" class=""><span class="eyebrow">21</span>Should my agent call a search API or stand up Qdrant for persistent memory?</a>
+ </div>
+ </nav>
+ </div>
+ <!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+ <nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">LEARN</span>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARE</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/blog/">BLOG</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ <a href="/resources/">SALES KIT</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+ </nav>
+ <!-- seo:footer-end -->
+ <footer class="footer">
+ <span>XERJ.AI · COMPARE</span>
+ <span>READ THE SOURCE</span>
+ <span><a href="/">HOME</a> · <a href="/product">PRODUCT</a> · <a href="/answers/">ANSWERS</a> · <a href="/playground">DASHBOARDS</a> &middot; <a href="/llms.txt">LLMS.TXT</a></span>
+ </footer>
+ <script src="/interact.js"></script>
+ </body>
+ </html>
diff --cc landing/compare/xerj-vs-agent-memory-tools.md
index 000000000,b4c654382..948de3cd8
mode 000000,100644..100644
--- a/landing/compare/xerj-vs-agent-memory-tools.md
+++ b/landing/compare/xerj-vs-agent-memory-tools.md
@@@ -1,0 -1,143 +1,143 @@@
+ <!-- generated by build_articles.py — edit content/compare/xerj-vs-agent-memory-tools.md instead -->
+ ---
+ title: "XERJ vs Mem0, Zep, Letta and Cognee for agent memory"
+ canonical: "https://xerj.org/compare/xerj-vs-agent-memory-tools"
+ updated: "2026-10-28"
+ source: "content/compare/xerj-vs-agent-memory-tools.md"
+ ---
+
+ # XERJ vs agent memory tools: Mem0, Zep, Letta and Cognee
+
-**Short answer** (updated 2026-10-28): Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no model on the write path.
++**Short answer** (updated 2026-10-28): Should I use Mem0, Zep, Letta, Cognee or XERJ for agent memory? Pick Mem0 or Cognee to have a model extract facts and links for you, Zep or Graphiti for facts that change over time, Letta for a full stateful agent. Pick XERJ for plain local memory, searched like any other data, with no generative fact-extraction step.
+
-**TL;DR**: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no model on the write path. No head-to-head was run.
++**TL;DR**: Mem0, Zep, Letta and Cognee add intelligence on top of memory: models that extract facts, graphs that track change, or a whole agent runtime. XERJ does less on purpose. It stores what your agent writes and finds it with search, in one local binary with no generative fact-extraction step. No head-to-head was run.
+
+ ## Agent prompt
+
+ ```text
+ Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, store three facts about this project with POST /_memory/project, recall each one with POST /_memory/project/_recall, and tell me whether plain search recall is enough for my agent before I add an LLM-based memory tool.
+ ```
+
+ ## Commands
+
+ ### Command 1
+
+ Note: Install the single XERJ binary.
+
+ ```sh
+ curl -fsSL https://xerj.org/get | sh
+ ```
+
+ ### Command 2
+
+ Note: Store one fact exactly as the agent wrote it.
+
+ ```sh
+ curl -s -XPOST 'http://127.0.0.1:9200/_memory/project' -H 'content-type: application/json' -d '{"text":"Releases are cut from the main branch on Fridays."}'
+ ```
+
+ ### Command 3
+
+ Note: Recall it. Plain query recall is BM25 over the stored text.
+
+ ```sh
+ curl -s -XPOST 'http://127.0.0.1:9200/_memory/project/_recall' -H 'content-type: application/json' -d '{"query":"when do we release","k":3}'
+ ```
+
+ ## What each one is
+
+ | tool | what it is | needs a model to store? | license |
+ | --- | --- | --- | --- |
-| Mem0 | memory layer that extracts facts with an LLM | yes, OpenAI by default | Apache 2.0 |
++| Mem0 | fact extraction by default; raw inserts with infer=false | LLM extraction optional; embeddings still apply | Apache 2.0 |
+ | Zep and Graphiti | Zep Cloud, plus the open Graphiti framework for temporal context graphs | Graphiti: you supply the LLM | Graphiti: Apache 2.0 |
+ | Letta | harness for stateful agents with memory blocks and MemFS | runs your agent's model | Apache 2.0 |
-| Cognee | memory platform that builds a graph of entities and relationships | no; a local GLiNER model by default | Apache 2.0 |
-| XERJ | search engine for AI agents with a memory API | no | Apache 2.0 |
++| Cognee | memory platform that builds a graph of entities and relationships | local extraction and embedding models; LLM optional | Apache 2.0 |
++| XERJ | search engine for AI agents with a memory API | lexical by default; neural/proxy embedder optional | Apache 2.0 |
+
+ Each row comes from the project's own README, linked in the sources.
+
+ ## The real difference
+
-The four tools above transform what the agent says before they store it. Mem0 extracts facts. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.
++These tools support different memory workflows. Mem0 extracts facts by default and can also store raw text. Graphiti builds a graph whose facts have validity windows. Cognee pulls out entities and links. Letta lets the agent rewrite its own memory files.
+
-XERJ keeps the raw text the agent sends and makes it searchable. That is less clever, and it is also cheaper and easier to inspect. Recent research points the same way: two 2026 studies found plain retrieval over raw history often matches more complex memory systems. See [agentic memory vs RAG](/answers/agentic-memory-vs-rag).
++XERJ keeps the raw text the agent sends and makes it searchable. Keeping the original text makes it possible to inspect what was stored. Two 2026 preprints report competitive raw-history retrieval on their evaluated tasks; neither evaluates XERJ or establishes its cost or quality. See [agentic memory vs RAG](/answers/agentic-memory-vs-rag).
+
+ ## When to choose Mem0 instead
+
-Choose Mem0 when you want a model to turn chats into short facts. Expect an LLM call on every write. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.
++Choose Mem0 when you want a model to turn chats into short facts. Its default extraction path calls an LLM; infer=false skips that extraction, while embedding configuration still matters. Mem0 also offers a cloud platform. XERJ memory runs on your own machine.
+
+ ## When to choose Zep or Graphiti instead
+
+ Choose Zep Cloud when you want Zep to run it for you. Choose self-hosted Graphiti when facts change over time and you must know what was true when. Graphiti expects a graph store such as Neo4j or FalkorDB.
+
+ ## When to choose Letta instead
+
+ Choose Letta when you want the whole agent, not just a store. It puts memory blocks, a memory filesystem, skills and channels in one harness.
+
+ ## When to choose Cognee instead
+
+ Choose Cognee when you want documents, code and chats turned into a graph of entities and relationships. Cognee is a Python stack.
+
+ ## When to choose XERJ
+
+ Choose XERJ when you want memory and search in one place, on your machine, with nothing extra to run.
+
+ - Store with `POST /_memory/{namespace}` and recall with `_recall`. Over MCP, use `xerj_memory_store` and `xerj_memory_recall`.
-- Each namespace is its own index, so agents keep private memories.
++- Each namespace is its own index; use separately scoped API keys to enforce access between agents.
+ - The same binary also searches your files, logs and code, so memory and data sit side by side.
+
+ ## Limits you inherit with XERJ
+
+ XERJ is single-node: no replication and no failover. It does not extract facts or build entity links for you. The default embedder is lexical feature hashing, so `semantic: true` recall matches shared words unless you start the node with `--embed-mode neural`. Memories are permanent until explicitly forgotten.
+
+ ## What was not measured
+
-No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Every competitor fact comes from that project's own README or docs, checked on 2026-10-28.
++No head-to-head was run. No accuracy, speed or cost numbers are claimed for any tool here. Competitor behavior is described from the linked project documentation, checked on 2026-10-29. These integrations were not executed in this review.
+
+ ## FAQ
+
+ ### What is the main difference between XERJ and Mem0?
+
-Mem0 uses an LLM to extract facts from conversations, and its README says it requires one. XERJ stores the text your agent sends as is and finds it with search, with no model on the write path.
++Mem0 extracts facts by default and supports raw inserts with infer=false. XERJ stores the supplied text and generates a search vector with its configured embedder, lexical feature hashing by default.
+
+ ### Is Zep open source?
+
+ Zep Cloud is a commercial cloud product. Zep Community Edition is deprecated. The open-source part is Graphiti, an Apache-2.0 framework where you bring your own graph database, LLM and embedder.
+
+ ### Is Letta a memory layer?
+
+ Letta is broader: it is a harness for stateful agents, with memory blocks and a git-versioned memory filesystem. You run your agent inside Letta rather than calling it as a store.
+
+ ### Does Cognee need an LLM?
+
+ Not for ingestion and retrieval. Its README says it runs locally with a GLiNER model and a local embedder, and an LLM key adds generated answers.
+
+ ### When is XERJ the better fit?
+
+ When you want memory as plain searchable records on your own machine, next to the files and data your agent already searches, without an LLM or a second database.
+
+ ### Did you benchmark these tools against each other?
+
+ No. No head-to-head was run. This page compares what each project documents about itself.
+
+ ## Evidence
+
-- Mem0 requires an LLM to function, with gpt-5-mini from OpenAI as the default, and uses OpenAI text-embedding-3-small as the default embedder. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0. — [https://github.com/mem0ai/mem0](https://github.com/mem0ai/mem0)
++- Mem0 uses an LLM for its default fact-extraction flow and an embedding model for retrieval. Its add API also supports infer=false to store raw text without fact extraction. It ships as a library, a self-hosted server and a cloud platform, under Apache 2.0. — [https://github.com/mem0ai/mem0/blob/main/docs/core-concepts/memory-operations/add.mdx](https://github.com/mem0ai/mem0/blob/main/docs/core-concepts/memory-operations/add.mdx)
+ - Zep Cloud is the managed product. Zep Community Edition is deprecated and unsupported. Graphiti is the open-source framework inside Zep for temporal context graphs, and you supply the graph database, LLM and embedder. — [https://github.com/getzep/zep](https://github.com/getzep/zep)
+ - Graphiti is an Apache-2.0 framework for building temporal context graphs for AI agents; you bring your own graph database such as Neo4j or FalkorDB. — [https://github.com/getzep/graphiti](https://github.com/getzep/graphiti)
+ - Letta (formerly MemGPT) is a harness for stateful agents with memory blocks and a git-versioned memory filesystem (MemFS). The local runtime keeps agent state on the device. Apache 2.0. — [https://github.com/letta-ai/letta-code](https://github.com/letta-ai/letta-code)
+ - Letta docs describe MemFS as the git-versioned memory filesystem agents read, write and reorganize. — [https://docs.letta.com/llms.txt](https://docs.letta.com/llms.txt)
+ - Cognee is an Apache-2.0 open-source AI memory platform that turns documents, code and conversations into a graph of entities and relationships plus searchable chunks. It runs locally without an LLM key using a local GLiNER extraction model; an LLM key adds generated answers. — [https://github.com/topoteretes/cognee](https://github.com/topoteretes/cognee)
-- XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, no model runs on the write path, and each namespace is its own index. — `engine/crates/xerj-api/src/memory_api.rs`
++- XERJ memory: POST /_memory/{namespace} stores the text the agent sends, recall defaults to BM25, the configured embedder runs at write time, with lexical feature hashing by default, and each namespace is its own index. — `engine/crates/xerj-api/src/memory_api.rs`
+
+ ## Related
+
+ - [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)
+ - [What's a simpler alternative to Khoj if I only need search and memory?](/compare/xerj-vs-khoj)
+ - [What is agentic memory?](/answers/what-is-agentic-memory)
+ - [What is an MCP memory server?](/answers/what-is-an-mcp-memory-server)
+ - [Agentic memory vs RAG: what is the difference?](/answers/agentic-memory-vs-rag)
+ - [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call)
+ - [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory) (same intent: agent memory)
+ - [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)
+ - [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)
diff --cc landing/compare/xerj-vs-khoj.html
index 398a52c6f,80f2322c2..06181ac9f
--- a/landing/compare/xerj-vs-khoj.html
+++ b/landing/compare/xerj-vs-khoj.html
@@@ -124,7 -124,7 +124,7 @@@
"name": "Khoj vs a local search engine for an agent?",
"acceptedAnswer": {
"@type": "Answer",
-- "text": "Khoj is the finished application. A local search engine is the layer underneath: XERJ has no chat window, no model of its own and no user interface."
++ "text": "Khoj is the finished application. A local search engine is the layer underneath: XERJ focuses on retrieval, with a browser Console and an optional neural embedder; it does not provide a conversational personal assistant."
}
},
{
@@@ -265,7 -265,7 +265,7 @@@
<h2>Concede the product surface</h2>
<p>Khoj is not a search library with a demo page attached. Its own documentation describes chat with local or online models and custom agents with their own persona and tools. It also describes scheduled research delivered by email, voice chat, and image generation through third-party providers.</p>
<p>It also ships clients: browser, desktop, phone, Obsidian, Emacs and a WhatsApp path. That is a product, and building it is a different amount of work from building an index.</p>
-- <p>XERJ has none of that. There is no chat window, no user interface, no model of its own and no phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.</p>
++ <p>XERJ provides a browser Console for search and administration and an optional neural embedder. It does not provide a conversational personal assistant or a phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.</p>
<h2>What each one actually is</h2>
<p>Khoj answers a person. XERJ answers a program.</p>
<p>That difference decides most of the rest. Khoj holds the model, the conversation and the interface, and its retrieval sits inside. XERJ holds only the retrieval, and the agent that calls it is yours.</p>
@@@ -287,7 -287,7 +287,7 @@@ xerj autoindex ./my-docs --prefix docs
<p>Read that plainly: on the shipped default, Khoj's retrieval understands a paraphrase and XERJ's does not.</p>
<h2>Where the agent boundary sits</h2>
<p>Khoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.</p>
-- <p>XERJ sits on the other side of that line. <code class="inline">xerj mcp</code> is a stdio MCP server in the same binary, serving 22 tools, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p>
++ <p>XERJ sits on the other side of that line. <code class="inline">xerj mcp</code> is a stdio MCP server in the same binary, serving 23 tools on main, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p>
<h2>The limits you inherit with XERJ</h2>
<p>XERJ is single-node only. There is no data-plane replication and no failover, so one host is the whole deployment.</p>
<p>The server retains heap for every document it indexes, which is an open tracked defect. Corpora past a few million documents can exhaust memory on one node.</p>
@@@ -307,7 -307,7 +307,7 @@@
<h3>What is Khoj?</h3>
<p>A self-hostable personal application with chat, custom agents, scheduled research, voice and image generation, plus clients for browser, Obsidian, Emacs, desktop, phone and WhatsApp.</p>
<h3>Khoj vs a local search engine for an agent?</h3>
-- <p>Khoj is the finished application. A local search engine is the layer underneath: XERJ has no chat window, no model of its own and no user interface.</p>
++ <p>Khoj is the finished application. A local search engine is the layer underneath: XERJ focuses on retrieval, with a browser Console and an optional neural embedder; it does not provide a conversational personal assistant.</p>
<h3>Self-hosted second brain vs a folder index?</h3>
<p>Pick the second brain if you want the finished application. Pick the folder index if you already run an agent and need it to search local files.</p>
<h3>What does Khoj need to run?</h3>
diff --cc landing/compare/xerj-vs-khoj.md
index 625d07506,c325b720a..e4e25142f
--- a/landing/compare/xerj-vs-khoj.md
+++ b/landing/compare/xerj-vs-khoj.md
@@@ -52,7 -52,7 +52,7 @@@ Khoj is not a search library with a dem
It also ships clients: browser, desktop, phone, Obsidian, Emacs and a WhatsApp path. That is a product, and building it is a different amount of work from building an index.
--XERJ has none of that. There is no chat window, no user interface, no model of its own and no phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.
++XERJ provides a browser Console for search and administration and an optional neural embedder. It does not provide a conversational personal assistant or a phone client. If you want the finished application, Khoj is the honest answer and this page will not argue.
## What each one actually is
@@@ -95,7 -95,7 +95,7 @@@ Read that plainly: on the shipped defau
Khoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.
--XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 22 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.
++XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 23 tools on main, and `/_memory/{ns}` gives an agent namespaced memory in the engine.
## The limits you inherit with XERJ
@@@ -135,7 -135,7 +135,7 @@@ A self-hostable personal application wi
### Khoj vs a local search engine for an agent?
--Khoj is the finished application. A local search engine is the layer underneath: XERJ has no chat window, no model of its own and no user interface.
++Khoj is the finished application. A local search engine is the layer underneath: XERJ focuses on retrieval, with a browser Console and an optional neural embedder; it does not provide a conversational personal assistant.
### Self-hosted second brain vs a folder index?