XERJ: the search engine for AI agents

XERJ.ai

6 min read Original article ↗

New Thanksgiving 2026: 270 contributors in 5 months →

The search engine for AI agents, with a neurosymbolic model inside.

Search in milliseconds on your own CPU, local and offline, MCP-ready. XERJ Query-1 turns questions into small programs and answers with the evidence.

Give this to your AI agent

Set up XERJ for me, following https://xerj.org/llms.txt.
1. Install XERJ with the XERJ Query-1 model and start it.
2. Index the folder I point you to (ask before reading anything outside it) and run one search.
3. Write three facts from that data into a facts namespace and ask XERJ Query-1 one question about them. Show me the answer, the program and the evidence.
4. Set up reference coding: index one open-source repo close to this project and look up one definition in it.
5. If this client takes MCP servers, register XERJ (llms.txt has the line for each client) and save one memory note through it.
If you have no shell, use the HTTP or MCP steps in llms.txt instead.

Check it worked: curl -s localhost:9200/_facts | grep -o '"state":"loaded"' prints "state":"loaded" (empty for a few seconds while the model loads).

No shell: HTTP and MCP steps in llms.txt. Install it yourself: curl -fsSL https://xerj.org/get | sh -s -- --with-model on Linux and macOS; Windows and other targets: install.

New model · In preview

Waitlist access to XERJ Reader-1 is open

A verifiable neurosymbolic data extraction model. It writes a formula that points at the exact words of your document, and a separate engine calculates the value, so every value can be checked. $0.01 per 1M input tokens, output free. Approved accounts start with a $1.00 free balance.

Why now

Agents now do a growing share of the searching. Every answer they get from a language model costs seconds and money. XERJ moves that work into the index: search in milliseconds, and answers computed as small programs over your own facts, each with the evidence it used.

For developers whose coding agents need real code, and for teams whose data stays in their network.

Programs you can read.

XERJ Query-1 writes a short program and the engine runs it. Every answer comes from a fact; with none, it says UNKNOWN.

One binary.

Search, vectors, facts, memory and an Elasticsearch-compatible API in one Rust binary.

Your data stays put.

Runs offline on a CPU, on a laptop or a server inside your network.

Use cases

One binary. Seven jobs.

01 · Answers

Answers you can check, with the evidence.

XERJ Query-1 turns a question into a short program and the engine runs it over facts you or your agent wrote. No backing facts: UNKNOWN. Facts that disagree: CONFLICT.

How XERJ Query-1 works

02 · Reference coding

Your coding agent stops guessing APIs.

Index the open-source repos closest to what you build, and on code it hasn't memorised your coding agent reads the real definition instead of inventing one and looping. Ready-made corpora are on the Corpus Hub.

2.7x fewer output tokens

than Claude Code grepping the same source, both 16 of 16 solved; 8 tasks in 4 languages on libraries written for the test. Full method in the case study.

The case study

04 · Live data Ships in rc.102

Search what your database says right now.

xerj connect postgres://... takes a consistent snapshot, then follows every insert, update and delete through Postgres logical replication, and picks up again after a restart.

19.7 ms

median from Postgres commit to readable in XERJ, 60 updates on a 200,000-row synthetic table, Postgres 16 (p95 21.7 ms; run 2026-11-05).

The worked example

05 · Memory

Agents that remember, and show why.

Agents store, recall and forget notes, and link them into a graph where every edge keeps its evidence. Recall works by keyword and word overlap by default; turn on a neural encoder to recall by meaning.

24 MCP tools

on one node, next to search and facts (23 when XERJ Query-1 is off). Setup per client in llms.txt.

Agent memory recipe

06 · Enterprise on-prem Cohere hooks ship in rc.102

Search and answers inside your own network.

One XERJ node indexes your documents and databases on a CPU server you own, and passes the best hits to Cohere Rerank, Embed and Command, at a private endpoint, only when you turn them on. XERJ is not affiliated with Cohere.

1.05 GB of RAM

for the node running XERJ Query-1 in the worked example (run 2026-11-05).

Cohere on XERJ

07 · Bridge

Keep your Elasticsearch clients. Change the engine.

XERJ answers the Elasticsearch 8.x REST API for indexing, search, aggregations and kNN, so existing clients and scripts can keep working while you move to the native API. It is its own engine, written from scratch in Rust.

1,448 passed

of 1,458 cases in our Elasticsearch 8.x conformance suite on main, 10 skipped (CI, 2026-11-07). For the Python client's bulk helper on rc.102, use POST /_bulk; PUT /_bulk is on main (#3037).

Migrate from Elasticsearch

What is open

Open engine. Your data. Your hardware.

The engine

Apache-2.0, on GitHub. Build it, audit it, fork it. Source

XERJ Query-1

Ships as a separate download with each release.

Nothing leaves

Runs offline. Text goes out only to a model you turn on, at an endpoint you choose. Security policy

Built in the open · counts from the GitHub API, 2026-11-07

100

1.0 release candidates since 8 July 2026

14,239

engine binary downloads from GitHub releases

XERJ blog card: Thanksgiving 2026, XERJ in 5 months. 270 contributors, 104 releases, 21.5k GitHub stars and 12,390 Corpus Hub developers, with a turkey drawn in square tiles 2026-11-25 · THANK YOU · THANKSGIVING Thanksgiving 2026: XERJ in 5 months, 270 contributors, 104 releases, 21.5k stars

In 5 months XERJ grew to 270 contributors, 104 releases and 21,529 GitHub stars, and 12,390 developers joined Corpus Hub. Month by month, with the top 10. Thank you, and happy Thanksgiving.

Cover: “XERJ rc.105” in large display type over “Better ranking on long pages and CJK text”, with long pages R@1 56.60 to 64.78 and Chinese law R@1 0.45 to 0.95. On the right, the Chinese words 中文检索 (Chinese search) split into the bigrams 中文, 文检 and 检索, above a long page and a short page whose answer lines are highlighted in yellow 2026-11-23 · RELEASE · RC.105 XERJ rc.105 (2026): better ranking on long pages and CJK text

A long page no longer outranks the page that answers. Chinese text is searched by bigrams. Hybrid search reads less. Thank you to the 11 community members whose reports and pull requests shaped this release.

Cover: “XERJ rc.104” in large display type, then “Faster. Leaner. Smarter.” beside a yellow “Query-1 inside” tag; below, three headline gains: 1 ms kNN search, from 29 ms; 9x faster vector merge, 144 s to 15 s; half the merge memory, 1,770 MB to 885 MB; footer: thank you for 2,457 field reports 2026-11-18 · RELEASE · RC.104 XERJ rc.104 (2026): faster, leaner, smarter. kNN in 1 ms, half the memory, Query-1 inside

Thank you! Between rc.102 and rc.104, you and your AI agents sent 2,457 field reports in 12 days. Agents use XERJ every day, and their reports built this release: faster, leaner, smarter, with Query-1 inside.

All posts

Measured tests on this site: the AI agent memory benchmark, the Elasticsearch scorecard, Elasticsearch alternatives, the rc.80 gates, and the WordPress security audit.

Build on it, deploy it, or back it.

XERJ is building the search layer agents run on. If you want to deploy it, build on it or invest, write to us.