by xerj-org
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 to your Claude Code skills
git clone https://github.com/xerj-org/xerjLast scanned: 11/28/2026
{
"issues": [
{
"file": "AGENTS.md",
"line": 143,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://xerj.org/get | sh\"",
"severity": "medium"
},
{
"file": "README.md",
"line": 91,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://xerj.org/get | sh\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T21:06:25.189Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}xerj is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xerj-org. 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. It has 22,878 GitHub stars.
Yes. xerj passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/xerj-org/xerj" and add it to your Claude Code skills directory (see the Installation section above).
xerj is primarily written in Rust. It is open-source under xerj-org on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh xerj against similar tools.
No comments yet. Be the first to share your thoughts!
English | 简体中文 | 日本語 | العربية | Español | 한국어 | فارسی | Türkçe
Most AI search finds text in milliseconds and then asks a language model to write the answer. The model is what makes a RAG answer good, and it is also where the seconds and the per-question cost come from.
XERJ Query-1 works the other way. It reads your question and writes a short program (look this up, compare these,
count those), and the engine runs that program over facts you stored. Lookup and comparison steps point at a stored
fact and its quoted span; counts return a program hash, not the records. If the data cannot support an answer you get
UNKNOWN; if two facts disagree you get CONFLICT. It runs on four CPU cores, offline, with no embeddings to build
and no GPU.
| XERJ Query-1 | the usual way | measured on | |
|---|---|---|---|
| Question to answer | 220 ms (p50) | 1.5 to 2.3 s for Opus 5.5 to write a RAG answer (API time per call, our command-line client's start-up not counted), after a search of 0.8 to 106 ms | same 160 questions, rc.101 release, 4 model threads, laptop CPU |
| Wrong answers | 1 of 160 (124 right, 35 declined) | 9 to 15 (RAG with Opus 5.5), 6 (Opus 5.5 reading the whole store), 5 (Opus 5.5 given each question's records) | our 160-question test, drawn from the model's development set; XERJ Query-1 was given each question's records |
| Cost per million questions | $42 of CPU | $13,400 (RAG) to $694,000 (Opus re-reading the whole store per question, uncached) | same test, Opus 5.5 list prices; CPU at AWS c7g list price, 4.1 CPU-s per question on a shared ARM server (0.9 on a laptop) |
| Build a search index of 10 GB of text | 17 min (BM25, measured) | an estimated 62 to 97 hours to embed it with bge-small on CPU | English Wikipedia (wikimedia/wikipedia 20231101.en, first 22 of 41 files, 3,299,578 articles); XERJ Query-1 does not use this index |
| Correct a fact | 2.3 ms (one write; the next answer uses it) | re-embed the changed chunk (about 30 ms with bge-small), and the whole store (19.6 s for our 5,000-record test store) when the embedding model changes | rc.101 release, laptop |
Retrieval quality (R@k, nDCG@k) on BEIR, on SearchTome and on our 160-question test, the latency split and every data set: benchmarks/query-1-2026-11.
Release binaries only, not in the public build. XERJ Query-1, /_facts, --facts-model-dir and the
xerj_facts_ask MCP tool are in the published release binaries (rc.101 and later), which are built from a private tree
that adds the proprietary model crates. This repository's source does not contain them: a node built from main has no
/_facts route, no --facts-model-dir flag and no xerj_facts_ask tool.
The model is off by default; without the flag there is no /_facts route and the MCP tool list is unchanged. rc.101
upgrades the data directory to format 4 on first write, and rc.100 cannot open it again. What it does not do yet,
measured: sums and totals (a sum question can come back as a member count), and large fact sets (on a 95,000-fact
namespace asks took 0.82 s at the median and all 20 test questions were declined). It declines more often than an LLM
would guess. The numbers and their caveats: blog post,
capabilities.
curl -fsSL https://xerj.org/get | sh -s -- --with-model
Verify: the installer ends by printing the start line with the model directory it unpacked.
xerj --facts-model-dir ~/.local/share/xerj/model --insecure --data-dir ~/xerj-data &
curl -s localhost:9200/_facts | grep -o '"state":"loaded"'
Verify: prints "state":"loaded". In the first few seconds after start it prints nothing, because the model is still loading ("not_loaded"); run it again.
Write a fact and ask about it: docs/MODEL_QUICKSTART.md.
From an agent with no shell, the same calls work over HTTP and the MCP tool xerj_facts_ask;
see llms.txt.
XERJ is research in the open. The model was trained on donated GPU time; if it is useful to you, xerj.org/donate funds the next models. The engine is open source; the model ships as a binary bundle, and its training and evaluation data are not public yet.