AI products and toolsReviewed · xerj-org

XERJ

XERJ is a local search tool for developers and AI agents, but its optional question-answering model requires explicitly stored facts and can still return incorrect answers. It combines keyword, vector and hybrid retrieval, code navigation, agent memory and MCP access in one Rust binary. The engine is Apache-2.0; the Query-1 components included in release binaries are proprietary.

Researched 13 Nov 2026

In short.

XERJ is a local search engine for developers and AI agents, but its optional Query-1 model answers only from explicitly stored facts and has documented counting errors. Its main appeal is retrieving relevant code and document passages through a single binary with CLI, HTTP and MCP access. The default search embedder uses lexical feature hashing; neural embeddings are optional. Reported coding savings and model accuracy come from project evaluations with important limitations. The engine is Apache-2.0, while Query-1 release components are proprietary. Installation, performance and runtime behavior were not independently tested.

Researched and written by an AI model and checked by a second AI model. How it works

Covers only README.md at the supplied original address and commit 50e4ffded5518b1822cfac5450fa34d3829ab8ab, together with the accompanying LICENSE and NOTICE for rights context. Linked documentation, source code, benchmark artifacts, installers, binaries, model bundles and datasets are outside the supplied evidence. No commands or software were executed. Installation success, runtime security, compatibility, performance and model accuracy remain independently unverified.

The overview

Identity

XERJ is a Rust search engine and MCP server intended to give AI agents access to local code, documents, structured data and persistent memory. It exposes an Elasticsearch-compatible HTTP API and includes an optional model, XERJ Query-1, for answering questions over stored facts.

The source address is [https://github.com/xerj-org/xerj/blob/main/README.md]. This report concerns the README at commit 50e4ffded5518b1822cfac5450fa34d3829ab8ab, available at [https://raw.githubusercontent.com/xerj-org/xerj/50e4ffded5518b1822cfac5450fa34d3829ab8ab/README.md].

Assessment

XERJ is worth considering when an agent repeatedly needs passages from unfamiliar repositories or mixed local documents. Its attraction is combining indexing, retrieval and agent integration without maintaining a separate JVM service or vector database.

The README reports 9,982 output tokens and 16/16 solves with XERJ versus 26,477 tokens and 16/16 solves with grep-driven coding in a controlled reference-coding study. These are project-reported results from eight tasks across four languages. The README explicitly says benefits can disappear or reverse on popular libraries a model already knows; the figures do not establish general savings.

Who it fits

Likely users include developers working with private or unfamiliar code, teams building retrieval-augmented generation systems, and people investigating local documents or logs. Agent memory and defensive code review are also documented uses.

Beginners need enough command-line knowledge to install a binary, keep a server running and configure a client. Experienced developers get query DSL, structured filters, aggregations and MCP tools. Query-1 suits applications that already maintain explicit subject, relation and value facts; indexing ordinary documents alone does not make those documents answerable through the facts API.

Capabilities

The documented engine supports BM25 keyword ranking, vector nearest-neighbor search, hybrid search, structured queries and aggregations. Automatic indexing handles source code, PDFs, CSV, JSON, SQLite, office documents, email and other formats. Code indexing preserves symbols and line locations through tree-sitter parsing.

CLI and MCP tools cover search, definition lookup, ordered batch retrieval, corpus maps and persistent agent memory. Query-1 adds question answering over supplied facts. MCP availability varies by version: with Hub tools enabled, the README lists 23 tools in rc.101, or 24 when the facts model is enabled; its main-branch counts are higher.

Using it

Requirements

The README advertises prebuilt binaries for Linux, macOS and Windows on x86-64 and arm64, with no JVM requirement. Its x86-64 builds require the x86-64-v2 instruction baseline, including SSE4.2. Building the engine from source requires a stable Rust toolchain.

Default lexical embeddings operate offline. The separate optional neural search embedder is advertised as an approximately 90 MB download and needs model files staged locally for air-gapped use. Query-1 requires its own model bundle and runs on CPU without a GPU. Minimum RAM, model-bundle size and practical disk requirements are not established by the supplied text.

How it works

Automatic indexing identifies file types and creates queryable datasets. Code parsing extracts symbols and locations. Incremental indexing can reuse results for byte-identical files, although it still hashes content to detect changes. The default search embedder uses lexical feature hashing rather than a neural language model, which matters when judging claims about retrieval by meaning.

Query-1 translates a question into a small program that the engine executes over facts supplied through the facts API. Facts reference a document version and an exact quoted span. Lookup and comparison answers expose supporting facts; counts expose a program hash and a second-model agreement check, without listing the counted records. Counting requires stable subject_id values.

Unsupported questions can return UNKNOWN, and disagreeing facts can produce CONFLICT. An exact executor checks the operation it receives, but the README documents cases where the model selected the wrong set to count.

Setup

The README offers shell and PowerShell installers, Nix installation and a Rust source build. Its authenticated local setup starts a node with xerj --data-dir ~/xerj-data, supplies the generated API key to the indexing client through XERJ_API_KEY or --api-key, and indexes a folder with xerj autoindex ~/my-project. The indexing client does not obtain its key automatically from xerj.toml.

Keep the data directory outside every tree being indexed: the README warns that a data directory inside the target tree can cause XERJ to index its own storage. Preserve the chosen data path, because XERJ does not automatically discover or migrate other data directories.

For MCP, the client launches the binary with mcp as its argument while a separate node is already running. XERJ_URL selects that node, and XERJ_AUTH supplies authentication. Query-1 is off by default and requires a model bundle plus --facts-model-dir. These are documented procedures; they were not executed here.

Example

The README's facts example stores the document Ana Bel is 170 cm tall. It also supplies a numeric fact with subject Ana Bel, subject_id emp:1, relation height, value 170, unit cm, document version v1 and a quoted span covering 170.

After writing that payload to POST /_facts/demo/_bulk, the documented request to POST /_facts/demo/_ask asks How tall is Ana Bel? The illustrated response has final_status ANSWER and final_answer 170 cm. This demonstrates the required data shape and expected response; the example was not run. Supplying only the document would return UNKNOWN under the documented contract.

Assessment & evidence

Limitations

Query-1's documented weaknesses include sums, numeric thresholds and counting intent. A sum question can become a member count, and some incorrect sets have received verified-count responses. On a reported 95,000-fact namespace, all 20 evaluation questions were declined, with median request latency of 0.82 seconds. These findings materially limit claims of reliable general question answering.

The --insecure option disables TLS and API-key authentication. Every caller able to reach that node becomes a superuser with access to all indices and memory namespaces. Fresh nodes bind to 127.0.0.1, but this mode still requires the single-user local trust boundary described in the README.

Optional Jev reranking sends result text to TypeSafe's servers. Operator-configured proxy embeddings and the WAL tap can also transmit text. Two client test runs described in the README, DeepSeek Harness and Antigravity, set XERJ_DISABLE_FEEDBACK=true; the DeepSeek Harness run observed no automatic field report. On builds that include it, xerj feedback drafts a report containing the version, OS and what was indexed, xerj feedback --open-pr opens it as a public pull request, and the xerj_field_report MCP tool lets an agent file a report. The captured README does not say whether default builds file or send reports automatically, so that behavior is unknown. Offline behavior therefore depends on configuration. Elasticsearch compatibility also has boundaries: oversized scroll snapshots are refused, and the README recommends search_after for larger result sets.

Practical tradeoffs

XERJ's practical value comes from retrieving relevant evidence instead of repeatedly loading large files into an agent's context. That can justify indexing and integration work for a repeatedly queried unfamiliar corpus. Actual context savings depend on the query: the README notes that default _search responses contain whole documents, while passages and field projection reduce response size.

The optional facts model makes a different tradeoff: users supply structured facts to obtain locally executed, inspectable answers. Supporting quotes and checked execution help explain an answer, but they cannot guarantee that the model chose the intended operation or counted the intended subjects.

Alternatives

Grep and direct file reading remain simpler options for small repositories or occasional searches. The README's own reference-coding discussion says XERJ can be neutral or harmful when a model already knows the relevant public library.

Elasticsearch is the named API-compatible comparison for established search workloads. The README reports XERJ wins in several measurements but also reports worse read-tail latency under heavy concurrent writes. A conventional retrieval-plus-language-model system is another approach for answering over ordinary text, with different latency, cost and unsupported-answer risks. None of these alternatives was independently assessed here.

Evidence and confidence

The evidence consists of the version-pinned README and its accompanying LICENSE and NOTICE. Linked benchmark reports, implementation files, security documentation, release assets and model data were not supplied. Performance and compatibility statements are consequently project reports rather than independently reproduced results.

The 160-question Query-1 comparison uses questions drawn from its development set and gives Query-1 each question's records. Its reported outcome is 124 right, 35 declined and one wrong. The separate 1,600-question score is also a private development evaluation, explicitly described as being within the model's training distribution. Neither establishes accuracy on unseen questions with autonomous retrieval.

There are internal reporting discrepancies. The conformance badge reports 1448/1458 cases, while the body reports 1444/1454; both claim zero failures and ten skips. Reranking gains are reported in one section, while another says ranking quality with the real model is unverified. The Elasticsearch comparison also lacks published start and runner scripts needed for complete reproduction. These points remain unresolved.

Access & freshness

Costs

The README describes the binary as free. Operating costs still include local or hosted CPU, storage, indexing time and any external AI services used by an agent. A typical deployment budget, support pricing and Query-1 commercial terms are unknown.

The advertised $42 per million Query-1 questions is a project calculation using AWS c7g CPU list pricing and 4.1 CPU-seconds per question on a shared ARM server. It is an evaluation-specific compute estimate rather than a hosted-service price. The headline 220 ms median comes from a laptop measurement under different conditions.

Optional Jev reranking uses an external provider and key. Current provider prices and the total cost for a particular workload are not established. The Apache license grants covered engine rights without royalties, but that does not establish the terms for proprietary Query-1 components.

Rights and licensing

The engine source is identified as Apache-2.0. The supplied license permits reproduction, modification and redistribution subject to its conditions, including providing the license, marking modified files and retaining applicable notices. The accompanying NOTICE names XERJ and Copyright 2026 The XERJ Authors. The license includes a conditional patent grant and does not grant general trademark rights.

The README explicitly identifies Query-1 crates in release binaries since rc.101 as proprietary. Model weights are distributed as a release asset, and training and evaluation data are not public. The supplied Apache license therefore does not establish permission to modify or redistribute those model components; their full terms are unknown.

The README asks users to contribute a field report. That community request is separate from the redistribution conditions stated in the captured Apache license.

Version and freshness

The README was captured on 2026-11-13 at 14:49:14.310 UTC from commit 50e4ffded5518b1822cfac5450fa34d3829ab8ab. It introduces Query-1 in v1.0.0-rc.101 and distinguishes that release from main-branch functionality intended for rc.102. Later releases and changes are unknown.

Version choice affects stored data: the README says rc.101 upgrades the data directory to format 4 on first write, after which rc.100 cannot reopen it. Client integration reports also span older release candidates. Cursor and Codex are explicitly listed as untested integrations in this snapshot.

What to check before adoption

Start with a small representative corpus, an explicit data directory outside that corpus and authenticated access. Check that retrieval returns the relevant passages and locations, then compare agent task completion and actual token usage with the current approach. Confirm the exact binary version, client integration and any configured outbound services. Check whether the installed binary has the feedback command and any automatic field-report behavior. Set XERJ_DISABLE_FEEDBACK=true if reports are unwanted. Review any drafted report before an agent opens a public pull request, because it can reveal what was indexed, the version and OS. Preserve a recoverable copy of existing data before a format-changing upgrade.

For Query-1, evaluate your own facts and questions, including missing information, contradictions, counts and sums. Inspect whether the returned operation matches the question, especially for counts. Obtain the applicable proprietary component terms before relying on redistribution rights. When retrieving reference code, retain citations and respect each upstream project's license.

Evidence for this report

LICENSEnotice · checked 2026-11-13
NOTICEnotice · checked 2026-11-13
README.mdselected · checked 2026-11-13