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.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
docs(llms.txt): correct six autoindex claims that do not match the binary
xerj-org784b30b991ac
diff --git a/landing/llms.txt b/landing/llms.txtindex 67fa049b7..443ca92f8 100644--- a/landing/llms.txt+++ b/landing/llms.txt@@ -69,16 +69,16 @@ Verified (all numbers trace to recorded runs, 2026-07-09): 80/81 ground-truth chIf you are an AI coding agent driving XERJ on a person's machine, indexing is the one operation that can occupy their laptop for minutes. They cannot see your tool output — they see you go quiet. Treat it as a job you are running on their behalf: **estimate, tell them, ask if it is big, report progress while it runs, report the real time when it finishes.**-- **Plan before you index.** `xerj autoindex <folder> --dry-run` walks, sniffs and samples every file, prints the plan, and writes nothing. Its first line is the size of the job — `autoindex: 40 files (0 MB) under /path` — followed by the datasets it would create and the junk/skipped counts. It needs a running node. Report that line to your user before you commit their machine to anything.-- **Estimate honestly, from two signals.** (a) The dry run performs the *full* phase-A pass, so its own wall-clock is a floor for the real run, never the whole cost. (b) Recorded reference throughput on one machine: 518 MB / 1,995 files → ~38–51 s; 33.7k records/s on 923 MB (server-bound). Hardware varies widely — Apple Silicon laptops, cold caches, and PDF-heavy or SQL-dump-heavy corpora are much slower per byte than source code. Give the user a range and say it is an estimate; never state a confident single number you have not measured on their machine.+- **Plan before you index.** `xerj autoindex <folder> --dry-run` walks, sniffs and samples every file, prints the plan, and indexes nothing. The line to report is the job size — `autoindex: 40 files (0 MB) under /path` — followed by the datasets it would create and the junk/skipped counts. Do not read it as the *first* line: a `bulk HTTP request timeout: Ns` line is printed before it, and both go to stderr. It needs a running node. Report the job-size line to your user before you commit their machine to anything. A dry run is read-only for the *index*, not for the disk: it creates the run's state dir, takes an exclusive lock on it and appends a journal record — so it fails if a real run of the same folder is already live, and a dry run before the first real run makes that run announce "resuming from journal".+- **Estimate honestly, from two signals.** (a) The dry run performs the full phase-A pass **only when no plan is frozen yet**; if the journal already holds one — because an earlier run was interrupted — it reuses that plan, returns in under a second and prints the *old* numbers. Treat a suspiciously fast dry run as "no new estimate", and point `--state-dir` at a fresh directory if you need a real one. (b) Recorded reference throughput on one machine: 518 MB / 1,995 files → ~38–51 s; 33.7k records/s on 923 MB (server-bound). Hardware varies widely — Apple Silicon laptops, cold caches, and PDF-heavy or SQL-dump-heavy corpora are much slower per byte than source code. Give the user a range and say it is an estimate; never state a confident single number you have not measured on their machine.- **If it is going to be long, ask instead of deciding for them.** Present the real trade-off:* **Full** — everything: binary/hostile format extraction (PDF, DOCX, SQLite, gzip…), inferred types, embedded body fields, relationship edges.* **Fast** — `--no-semantic --no-graph`: skips embedding-backed body fields and relationship detection. You still get typed, queryable BM25 + keyword indices over the same files — a better-than-grep experience for a fraction of the time. (Note: XERJ's default embedder is lexical feature-hashing, not neural, so `--no-semantic` costs you less than the word "semantic" suggests unless the node runs `--embed-mode neural`.)* **Narrower** — index the subdirectory that matters, or skip `node_modules`/`vendor`/`target`/build outputs. Usually the biggest win available.- * Also useful when their machine must stay usable: `--workers N` and `--pdf-workers N` bound the CPU XERJ takes.-- **Never run a long index as one silent blocking call.** Start it in the background, then poll `xerj autoindex status --state-dir <dir>` — it prints `N files done, M records, in progress` (or `FINISHED`) plus live per-index doc counts — and relay that to your user periodically. `status` has **no** `--json` (only `map` does); parse its text, or poll `GET /_cat/indices` / `GET /ax-*/_count` for machine-readable counts.+ * Also useful when their machine must stay usable: `--workers N` and `--pdf-workers N` (which accepts 1–4 only). They bound the **client-side extractor**, not the server — indexing itself runs in the node process, so do not promise a user these cap the machine's total CPU.+- **Never run a long index as one silent blocking call.** Start it in the background with an explicit `--state-dir <dir>`, then poll `xerj autoindex status --state-dir <dir>` with the *same* directory — it prints `N files done, M records, in progress` (or `FINISHED`) plus live per-index doc counts — and relay that to your user periodically. Passing no `--state-dir` to `status` prints one line per journal under `~/.xerj/autoindex`, including unrelated runs from weeks ago, which is how an agent ends up reporting someone else's progress. `status` has **no** `--json` (only `map` does); parse its text, or poll `GET /_cat/indices` / `GET /ax-*/_count` for machine-readable counts.- **Stopping is safe, so offer it.** The resume journal plus idempotent `_id`s mean an interrupted run resumes where it stopped and never duplicates. A user may abort a long index without losing the work already done.-- **Read the exit code correctly.** `0` complete · **`3` completed-with-junk — this is SUCCESS**, junk records are recorded and never fatal; do not report it as a failure · `2` usage error · `1` endpoint unreachable, which almost always means the node is not running yet.+- **Read the exit code correctly.** `0` complete · **`3` completed-with-junk — this is SUCCESS**, junk records are recorded and never fatal; do not report it as a failure · `2` usage error · `1` **any error at all** — it is the catch-all for every failure, so read the `error:` line on stderr before you act. Endpoint-unreachable is only the most common one; a bulk failure, an index-creation conflict, a journal-config mismatch, a state-dir lock conflict, corruption or a disk error all exit 1 too, and restarting the node "because 1 means it is down" will not fix any of them.- **Close the loop.** When it finishes, tell the user the actual elapsed time, how many records landed, and what they can now ask — `xerj autoindex map` is the briefing to summarize from.## Use cases