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.

docs(#977): re-point the rebuild answer page at xerj corpus index / xerj code

xerj-org459ad6852a3a
diff --git a/content/answers/rebuild-reference-corpus-index.md b/content/answers/rebuild-reference-corpus-index.md
index 749b43ea2..cda34b0c7 100644
--- a/content/answers/rebuild-reference-corpus-index.md
+++ b/content/answers/rebuild-reference-corpus-index.md
@@ -1,28 +1,28 @@
---
title: "How do I rebuild a reference-coding corpus index from scratch?"
-h1: "xc-index.sh --fresh failed. How do I rebuild a corpus index?"
-description: "xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing."
+h1: "xerj corpus index --fresh failed. How do I rebuild a corpus index?"
+description: "xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing."
slug: "rebuild-reference-corpus-index"
cluster: "Coding agents: reference retrieval"
question: "How do I rebuild a reference-coding corpus index from scratch?"
intent: "how-to"
published: "2026-09-18"
-updated: "2026-09-20"
+updated: "2026-09-21"
author: "XERJ documentation team"
reviewer: "XERJ engineering team"
schema_type: "TechArticle"
-agent_prompt: "Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xc.py reports an index older than 30 days, or a plain xc-index.sh run says the state directory cannot become generation authority, run tools/xerj-code/scripts/xc-index.sh <corpus> --fresh. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the script's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched."
+agent_prompt: "Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xerj code reports an index older than 30 days, or a plain `xerj corpus index` run says the state directory cannot become generation authority, run `xerj corpus index <corpus> --fresh`. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the command's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched."
commands:
- - cmd: "bash tools/xerj-code/scripts/xc-index.sh xerj-storage"
+ - cmd: "xerj corpus index xerj-storage"
note: "Index a corpus, or update in place the build an earlier run recorded."
- - cmd: "bash tools/xerj-code/scripts/xc-index.sh xerj-storage --fresh"
+ - cmd: "xerj corpus index xerj-storage --fresh"
note: "Rebuild from scratch: build beside the old index, verify, switch, then retire."
- cmd: "bash -c 'cat ~/.xerj-code/state/xerj-storage.json'"
note: "Read the ledger. prefix is the whole namespace; index_prefix is the one verified build."
- cmd: "curl -s 'http://127.0.0.1:9200/xc-xerj-storage*/_count'"
- note: "Count the records yourself. The script already did, and refused to switch on zero."
- - cmd: "env XERJ_URL=http://127.0.0.1:9200 tools/xerj-code/scripts/xc.py xerj-storage 'merge policy segment selection'"
- note: "Query the rebuilt corpus. xc.py addresses the verified build, not the whole namespace."
+ note: "Count the records yourself. The command already did, and refused to switch on zero."
+ - cmd: "env XERJ_URL=http://127.0.0.1:9200 xerj code xerj-storage 'merge policy segment selection'"
+ note: "Query the rebuilt corpus. xerj code addresses the verified build, not the whole namespace."
links_out:
- "index-reference-library-for-coding-agent"
- "resume-interrupted-autoindex-run"
@@ -33,34 +33,34 @@ evidence:
source: "benchmarks/autoindex-resilience/fresh-before-rc74.legacy-state.txt"
- claim: "On v1.0.0-rc.74 xerj autoindex --fresh over a committed generation aborted with exit 1: --fresh cannot discard committed corpus generation 1 under the same destination."
source: "benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt"
- - claim: "The --fresh contract is pinned by 81 offline checks: a new state directory and prefix, --fresh never forwarded to autoindex, nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaves the old index and state file untouched, a sibling corpus is never touched, an interrupted first build is kept, recorded as salvaged with its real exit code, and resumed by a plain re-run under the same prefix and state directory, and a record count the node does not answer is never read as zero: it cannot get a working index retired or a finished build deleted."
- source: "tools/xerj-code/tests/test_xc_index_fresh.py"
- - claim: "When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xc.py prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and marks the corpus INCOMPLETE in --list. Exit 3 is not reported as incomplete."
- source: "tools/xerj-code/tests/test_state_ledger.py"
- - claim: "xc.py queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt."
- source: "tools/xerj-code/tests/test_state_ledger.py"
+ - claim: "When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xerj code prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and xerj corpus list marks the corpus INCOMPLETE. Exit 3 is not reported as incomplete. Pinned by the state-ledger tests in xccode/state.rs."
+ source: "engine/crates/xerj-common/src/xccode/state.rs"
+ - claim: "xerj code queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt. Pinned by the prefix-fallback tests in xccode/state.rs."
+ source: "engine/crates/xerj-common/src/xccode/state.rs"
+ - claim: "The full --fresh swap contract (nothing deleted before the replacement's count was read, deletes by exact name, sibling corpora never touched, unknown counts never read as zero) was pinned by 81 offline checks against a fake node in the retired script suite; re-pinning those contracts as Rust tests around xerj corpus index is open."
+ source: "https://github.com/xerj-org/xerj/issues/1004"
faq:
- q: "How do I rebuild a reference-coding corpus index from scratch?"
- a: "Run `xc-index.sh <corpus> --fresh`. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name."
- - q: "xc-index.sh --fresh failed. How do I rebuild a corpus index?"
- a: "Update the script. Older versions forwarded `--fresh` to `xerj autoindex`, which refuses it once a corpus generation has committed. The current script never forwards it and rebuilds under a new prefix instead."
+ a: "Run `xerj corpus index <corpus> --fresh`. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name."
+ - q: "xerj corpus index --fresh failed. How do I rebuild a corpus index?"
+ a: "Update the binary. Older releases shipped wrapper scripts that forwarded `--fresh` to `xerj autoindex`, which refuses it once a corpus generation has committed. The built-in command never forwards it and rebuilds under a new prefix instead."
- q: "Does --fresh delete my working index first?"
a: "No. The old index stays live until the replacement exited 0 or 3 and its record count is above zero. A build that fails or comes back empty is removed, and the old index and state file are left exactly as they were."
- q: "Why does the state file have both prefix and index_prefix?"
- a: "`prefix` is always `xc-<corpus>`, the whole namespace, so anything that globs on it keeps working. `index_prefix` is the one verified build, and it is what `xc.py` queries."
- - q: "Is xc-index.sh --fresh the same as xerj autoindex --fresh?"
- a: "No. `xerj autoindex --fresh` only discards the resume journal, never removes records, and is refused once a durable generation exists. The script's `--fresh` is a full rebuild under a new prefix and state directory."
+ a: "`prefix` is always `xc-<corpus>`, the whole namespace, so anything that globs on it keeps working. `index_prefix` is the one verified build, and it is what `xerj code` queries."
+ - q: "Is xerj corpus index --fresh the same as xerj autoindex --fresh?"
+ a: "No. `xerj autoindex --fresh` only discards the resume journal, never removes records, and is refused once a durable generation exists. The corpus command's `--fresh` is a full rebuild under a new prefix and state directory."
- q: "What happens if the first build of a corpus is interrupted?"
- a: "With no working index to fall back to, the script keeps the partial build, records `salvaged: true` and the real exit code in the state file, and warns. `xc.py` then warns on every query that coverage is incomplete. A plain `xc-index.sh <corpus>` resumes the run under the same prefix and state directory."
+ a: "With no working index to fall back to, the command keeps the partial build, records `salvaged: true` and the real exit code in the state file, and warns. `xerj code` then warns on every query that coverage is incomplete. A plain `xerj corpus index <corpus>` resumes the run under the same prefix and state directory."
- q: "How much disk does a rebuild need?"
a: "Room for the corpus twice. Both builds exist on the node from the start of the rebuild until the old one is retired. This was not measured; plan for double."
---
-**TL;DR** — Run `xc-index.sh <corpus> --fresh`. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older versions of the script failed on every corpus that had been indexed before.
+**TL;DR** — Run `xerj corpus index <corpus> --fresh`. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older releases' wrapper scripts failed on every corpus that had been indexed before.
## Why the old --fresh failed
-The script used to forward `--fresh` to `xerj autoindex`. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.
+The wrapper scripts used to forward `--fresh` to `xerj autoindex`. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.
So the rebuild failed in both states a previously indexed corpus can be in.
@@ -76,7 +76,7 @@ A state directory written since refuses the flag outright:
error: this attempt made no remote mutations. `--fresh` cannot discard committed corpus generation 1 under the same destination
```
-Both messages give the same advice: build into a new `--state-dir` and a new `--prefix`, validate, then switch readers. A wrapper that owns the whole `xc-<corpus>` namespace can do exactly that. Now it does.
+Both messages give the same advice: build into a new `--state-dir` and a new `--prefix`, validate, then switch readers. A command that owns the whole `xc-<corpus>` namespace can do exactly that. Since rc.76 it is built in: `xerj corpus index`.
## What --fresh does now
@@ -91,31 +91,31 @@ The old indices are listed before the build starts. The retire step can therefor
## A failed build costs nothing
-If autoindex aborts, or exits 0 with zero records, the script removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the script says so:
+If autoindex aborts, or exits 0 with zero records, the command removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the command says so:
```text
-xc-index: the existing index was NOT touched and is still what xc.py serves.
+xerj corpus index: the existing index was NOT touched and is still what `xerj code` serves.
```
-There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The script cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in `autoindex_exit` with `salvaged: true`, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.
+There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The command cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in `autoindex_exit` with `salvaged: true`, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.
-A kept build can be partial, so the reader is told. While the state file says `salvaged`, or records an exit code other than 0 or 3, `xc.py` prints this on stderr with every query, and `xc.py --list` marks the corpus `INCOMPLETE`:
+A kept build can be partial, so the reader is told. While the state file says `salvaged`, or records an exit code other than 0 or 3, `xerj code` prints this on stderr with every query, and `xerj corpus list` marks the corpus `INCOMPLETE`:
```text
-WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). Coverage may be INCOMPLETE: a miss here is not evidence that the code is absent. Re-run xc-index.sh xerj-storage to resume or confirm it.
+WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). A miss here is not evidence that the code is absent. Re-run `xerj corpus index xerj-storage` to resume or confirm it.
```
## A count the node does not answer is not zero
-Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The script asks up to 6 times, 5 seconds apart (`XC_COUNT_TRIES`, `XC_COUNT_PAUSE`). Only a number, or a 404 because no index matches, is believed.
+Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The command asks up to 6 times, 5 seconds apart (`XC_COUNT_TRIES`, `XC_COUNT_PAUSE`). Only a number, or a 404 because no index matches, is believed.
-When the node never says how many records the existing index holds, the script presumes it is a working index. A failed build is then not kept over it.
+When the node never says how many records the existing index holds, the command presumes it is a working index. A failed build is then not kept over it.
-When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next `--fresh` that verifies retires the leftover. If there is none, the build is recorded as unverified, `xc.py` warns as above, and a plain re-run confirms it once the node answers.
+When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next `--fresh` that verifies retires the leftover. If there is none, the build is recorded as unverified, `xerj code` warns as above, and a plain re-run confirms it once the node answers.
-An earlier draft of this script read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the test file and fail against that draft.
+An earlier draft of this command read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the retired script's test file and fail against that draft.
-A plain `xc-index.sh <corpus>` resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the `salvaged` mark is cleared and the warning stops.
+A plain `xerj corpus index <corpus>` resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the `salvaged` mark is cleared and the warning stops.
## Two prefixes in the state file
@@ -125,17 +125,17 @@ A plain `xc-index.sh <corpus>` resumes a kept build. The kept build has its own
`prefix` is always `xc-<corpus>`. It matches every build's indices, so anything that globs `xc-<corpus>*` keeps working across a rebuild.
-`index_prefix` is the one build that was verified. `xc.py` queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.
+`index_prefix` is the one build that was verified. `xerj code` queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.
-A state file written before builds existed has no `index_prefix`. `xc.py` falls back to `prefix` for it.
+A state file written before builds existed has no `index_prefix`. `xerj code` falls back to `prefix` for it.
## Siblings are safe
-`xc-battle-*` also matches the indices of a corpus named `battle-terse`. The script knows which corpus names extend this one, from `corpora/` and from `state/`, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the script.
+`xc-battle-*` also matches the indices of a corpus named `battle-terse`. The command knows which corpus names extend this one, from `corpora/` and from `state/`, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the command.
## A plain re-run updates in place
-`xc-index.sh <corpus>` without `--fresh` re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.
+`xerj corpus index <corpus>` without `--fresh` re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.
If that run fails with the `generation authority` message, the corpus predates the generation format. Run `--fresh` once.
@@ -143,14 +143,14 @@ If that run fails with the `generation authority` message, the corpus predates t
A rebuild holds the corpus on the node twice until the old build is retired. Plan disk for double. This was not measured.
-The old state directory of a corpus indexed before builds existed lives under `~/.xerj/autoindex/`, in a folder named by a hash. The script cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.
+The old state directory of a corpus indexed before builds existed lives under `~/.xerj/autoindex/`, in a folder named by a hash. The command cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.
## How this page was checked
The two error messages are captures from v1.0.0-rc.74, committed under `benchmarks/autoindex-resilience/`. Local paths in them were shortened; nothing else was changed.
-The new behaviour is pinned by `tools/xerj-code/tests/test_xc_index_fresh.py`: 81 offline checks against a fake node and a fake `xerj` binary that refuses what the real one refuses. The same test fails against the old script with the first error above.
+The state-ledger contracts the warning section rests on — the salvaged warning on every query, exit 3 not reported as incomplete, `index_prefix` preferred over the bare namespace glob, the staleness refusal — are pinned by the tests in `engine/crates/xerj-common/src/xccode/state.rs`.
-The warning and the `--list` mark are pinned by `tools/xerj-code/tests/test_state_ledger.py` (25 offline checks). Resuming a kept build was checked against the fake binary only: that the re-run passes the same prefix and state directory. autoindex resuming an interrupted generation from its journal is a separate capture, `benchmarks/autoindex-resilience/after-fix.resume-probe.stderr.txt`. The two were not run together end to end.
+The full `--fresh` swap contract was pinned by 81 offline checks in the retired script suite (`tools/xerj-code/tests/test_xc_index_fresh.py`, deleted with the scripts): nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaving the old index untouched, sibling corpora never touched, an interrupted first build kept and resumable, unknown counts never read as zero. Those contracts now live in `engine/crates/xerj-autoindex/src/xc.rs` but are not yet re-pinned as Rust tests there; the re-pinning is tracked in [issue #1004](https://github.com/xerj-org/xerj/issues/1004). Until it lands, treat the swap safety claims on this page as carried by review, not by a test suite.
-Writing that test found five defects in drafts of the new script. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five are fixed and covered. The unanswered count was exercised against the fake node only, with a 503. It was not provoked on a real node.
+Writing the old suite found five defects in drafts of the new command. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five were fixed in the port; the unanswered count was exercised against a fake node only, with a 503. It was not provoked on a real node.
diff --git a/landing/answers/agent-memory-without-postgres-qdrant.html b/landing/answers/agent-memory-without-postgres-qdrant.html
index fe6ce23fb..9466bb538 100644
--- a/landing/answers/agent-memory-without-postgres-qdrant.html
+++ b/landing/answers/agent-memory-without-postgres-qdrant.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/audit-php-codebase-with-an-index.html b/landing/answers/audit-php-codebase-with-an-index.html
index c0c050565..6655a4ef2 100644
--- a/landing/answers/audit-php-codebase-with-an-index.html
+++ b/landing/answers/audit-php-codebase-with-an-index.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class="active"><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/autoindex-dataset-refused-by-server.html b/landing/answers/autoindex-dataset-refused-by-server.html
index 9177a8603..344675fe2 100644
--- a/landing/answers/autoindex-dataset-refused-by-server.html
+++ b/landing/answers/autoindex-dataset-refused-by-server.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/autoindex-exit-codes.html b/landing/answers/autoindex-exit-codes.html
index ef2510ee4..6d88977bb 100644
--- a/landing/answers/autoindex-exit-codes.html
+++ b/landing/answers/autoindex-exit-codes.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/autoindex-says-extract-the-archive-first.html b/landing/answers/autoindex-says-extract-the-archive-first.html
index 04a151fc1..58effabf6 100644
--- a/landing/answers/autoindex-says-extract-the-archive-first.html
+++ b/landing/answers/autoindex-says-extract-the-archive-first.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/autoindex-server-back-pressure-429.html b/landing/answers/autoindex-server-back-pressure-429.html
index d259d2cd8..59fef0da6 100644
--- a/landing/answers/autoindex-server-back-pressure-429.html
+++ b/landing/answers/autoindex-server-back-pressure-429.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/catalog-files-with-autoindex-map.html b/landing/answers/catalog-files-with-autoindex-map.html
index a158d9366..bc463cc42 100644
--- a/landing/answers/catalog-files-with-autoindex-map.html
+++ b/landing/answers/catalog-files-with-autoindex-map.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/cheap-low-volume-log-search.html b/landing/answers/cheap-low-volume-log-search.html
index fb6cabf09..f5eb628a0 100644
--- a/landing/answers/cheap-low-volume-log-search.html
+++ b/landing/answers/cheap-low-volume-log-search.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/check-codebase-index-is-complete.html b/landing/answers/check-codebase-index-is-complete.html
index 47d9daa56..6c9bcd74a 100644
--- a/landing/answers/check-codebase-index-is-complete.html
+++ b/landing/answers/check-codebase-index-is-complete.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/classify-text-from-labelled-history-without-llm.html b/landing/answers/classify-text-from-labelled-history-without-llm.html
index 70683d638..ec1c06108 100644
--- a/landing/answers/classify-text-from-labelled-history-without-llm.html
+++ b/landing/answers/classify-text-from-labelled-history-without-llm.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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="active"><span class="eyebrow">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/code-search-mcp-for-claude-code.html b/landing/answers/code-search-mcp-for-claude-code.html
index 6a5d8cb1b..addbdd073 100644
--- a/landing/answers/code-search-mcp-for-claude-code.html
+++ b/landing/answers/code-search-mcp-for-claude-code.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/coding-agent-memory-across-sessions.html b/landing/answers/coding-agent-memory-across-sessions.html
index ce6cc1ae2..c33a86d25 100644
--- a/landing/answers/coding-agent-memory-across-sessions.html
+++ b/landing/answers/coding-agent-memory-across-sessions.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/do-search-embeddings-help.html b/landing/answers/do-search-embeddings-help.html
index 7d49904f6..c372abfff 100644
--- a/landing/answers/do-search-embeddings-help.html
+++ b/landing/answers/do-search-embeddings-help.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/does-xerj-support-s3-alerting-plugins.html b/landing/answers/does-xerj-support-s3-alerting-plugins.html
index 276e16f8f..c90b467cb 100644
--- a/landing/answers/does-xerj-support-s3-alerting-plugins.html
+++ b/landing/answers/does-xerj-support-s3-alerting-plugins.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class="active"><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/estimate-autoindex-time-before-running.html b/landing/answers/estimate-autoindex-time-before-running.html
index 08b7507b7..7844664cd 100644
--- a/landing/answers/estimate-autoindex-time-before-running.html
+++ b/landing/answers/estimate-autoindex-time-before-running.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/evidence-for-agent-memory-links.html b/landing/answers/evidence-for-agent-memory-links.html
index 61e30796c..71adb56ca 100644
--- a/landing/answers/evidence-for-agent-memory-links.html
+++ b/landing/answers/evidence-for-agent-memory-links.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/filter-knn-exact-scan-caveat.html b/landing/answers/filter-knn-exact-scan-caveat.html
index 682d87877..da17b1f93 100644
--- a/landing/answers/filter-knn-exact-scan-caveat.html
+++ b/landing/answers/filter-knn-exact-scan-caveat.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/full-text-search-browser-history.html b/landing/answers/full-text-search-browser-history.html
index cc5d5f652..abbc65737 100644
--- a/landing/answers/full-text-search-browser-history.html
+++ b/landing/answers/full-text-search-browser-history.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/full-text-search-sqlite-database.html b/landing/answers/full-text-search-sqlite-database.html
index 127f23a43..5b1d9cb8a 100644
--- a/landing/answers/full-text-search-sqlite-database.html
+++ b/landing/answers/full-text-search-sqlite-database.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/give-chatgpt-claude-local-file-access.html b/landing/answers/give-chatgpt-claude-local-file-access.html
index f633fef65..301354f40 100644
--- a/landing/answers/give-chatgpt-claude-local-file-access.html
+++ b/landing/answers/give-chatgpt-claude-local-file-access.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/how-xerj-autoindexes-a-folder.html b/landing/answers/how-xerj-autoindexes-a-folder.html
index 9f50bfd4a..6fa7456cc 100644
--- a/landing/answers/how-xerj-autoindexes-a-folder.html
+++ b/landing/answers/how-xerj-autoindexes-a-folder.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/how-xerj-combines-search.html b/landing/answers/how-xerj-combines-search.html
index 666cab381..9a97d1b02 100644
--- a/landing/answers/how-xerj-combines-search.html
+++ b/landing/answers/how-xerj-combines-search.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/hybrid-search-quality-measured-ndcg.html b/landing/answers/hybrid-search-quality-measured-ndcg.html
index b5d53d359..2e4da1d27 100644
--- a/landing/answers/hybrid-search-quality-measured-ndcg.html
+++ b/landing/answers/hybrid-search-quality-measured-ndcg.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/improve-basic-faiss-rag-pipeline.html b/landing/answers/improve-basic-faiss-rag-pipeline.html
index 3b34bfbc3..5a96bdbb0 100644
--- a/landing/answers/improve-basic-faiss-rag-pipeline.html
+++ b/landing/answers/improve-basic-faiss-rag-pipeline.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index-csv-with-many-columns.html b/landing/answers/index-csv-with-many-columns.html
index e68d05d88..4bdb26c93 100644
--- a/landing/answers/index-csv-with-many-columns.html
+++ b/landing/answers/index-csv-with-many-columns.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index-markdown-into-elasticsearch-api.html b/landing/answers/index-markdown-into-elasticsearch-api.html
index 167779683..044fe5595 100644
--- a/landing/answers/index-markdown-into-elasticsearch-api.html
+++ b/landing/answers/index-markdown-into-elasticsearch-api.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index-monorepo-for-agent.html b/landing/answers/index-monorepo-for-agent.html
index 9003cf49e..580ab5c29 100644
--- a/landing/answers/index-monorepo-for-agent.html
+++ b/landing/answers/index-monorepo-for-agent.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index-multiple-csv-files.html b/landing/answers/index-multiple-csv-files.html
index cf4015cf3..57a22ab4d 100644
--- a/landing/answers/index-multiple-csv-files.html
+++ b/landing/answers/index-multiple-csv-files.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index-reference-library-for-coding-agent.html b/landing/answers/index-reference-library-for-coding-agent.html
index 992196dec..fb3b580f3 100644
--- a/landing/answers/index-reference-library-for-coding-agent.html
+++ b/landing/answers/index-reference-library-for-coding-agent.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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="active"><span class="eyebrow">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/index.html b/landing/answers/index.html
index fe40d4133..bba241714 100644
--- a/landing/answers/index.html
+++ b/landing/answers/index.html
@@ -63,7 +63,7 @@
"url": "https://xerj.org/answers/",
"image": "https://xerj.org/og/xerj-card.png",
"inLanguage": "en",
- "dateModified": "2026-09-20",
+ "dateModified": "2026-09-21",
"isPartOf": {
"@id": "https://xerj.org/#website"
},
@@ -135,7 +135,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
@@ -270,7 +270,7 @@
<h2>Coding agents: reference retrieval</h2>
<ul>
<li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> — Clone the library you are about to write against, index it with xerj autoindex, and retrieve the passage first. The published study, with the tracks where it loses.</li>
- <li><a href="/answers/rebuild-reference-corpus-index">xc-index.sh --fresh failed. How do I rebuild a corpus index?</a> — xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.</li>
+ <li><a href="/answers/rebuild-reference-corpus-index">xerj corpus index --fresh failed. How do I rebuild a corpus index?</a> — xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.</li>
</ul>
<h2>Decisions as retrieval</h2>
<ul>
diff --git a/landing/answers/index.json b/landing/answers/index.json
index 31c7df24f..a4f1f31ac 100644
--- a/landing/answers/index.json
+++ b/landing/answers/index.json
@@ -116,8 +116,8 @@
"canonical_url": "https://xerj.org/answers/rebuild-reference-corpus-index",
"markdown_url": "https://xerj.org/answers/rebuild-reference-corpus-index.md",
"cluster": "Coding agents: reference retrieval",
- "updated": "2026-09-20",
- "summary": "xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing."
+ "updated": "2026-09-21",
+ "summary": "xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing."
},
{
"title": "Index a reference library for a coding agent",
diff --git a/landing/answers/is-pdf-indexing-efficient.html b/landing/answers/is-pdf-indexing-efficient.html
index ea1bc227e..839674331 100644
--- a/landing/answers/is-pdf-indexing-efficient.html
+++ b/landing/answers/is-pdf-indexing-efficient.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/keep-index-current-as-files-change.html b/landing/answers/keep-index-current-as-files-change.html
index 50afde025..103c1c236 100644
--- a/landing/answers/keep-index-current-as-files-change.html
+++ b/landing/answers/keep-index-current-as-files-change.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/keep-s3-bucket-index-current.html b/landing/answers/keep-s3-bucket-index-current.html
index 134047b71..9f564ef1d 100644
--- a/landing/answers/keep-s3-bucket-index-current.html
+++ b/landing/answers/keep-s3-bucket-index-current.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/knowledge-graphs-for-agent-memory.html b/landing/answers/knowledge-graphs-for-agent-memory.html
index 64eab1f5a..72e6c1ef5 100644
--- a/landing/answers/knowledge-graphs-for-agent-memory.html
+++ b/landing/answers/knowledge-graphs-for-agent-memory.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/local-embeddings-without-openai-api.html b/landing/answers/local-embeddings-without-openai-api.html
index f744568ec..14b10a0e0 100644
--- a/landing/answers/local-embeddings-without-openai-api.html
+++ b/landing/answers/local-embeddings-without-openai-api.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class="active"><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/mcp-api-search-or-vector-search.html b/landing/answers/mcp-api-search-or-vector-search.html
index 268a2d728..52b1312db 100644
--- a/landing/answers/mcp-api-search-or-vector-search.html
+++ b/landing/answers/mcp-api-search-or-vector-search.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/notion-export-duplicate-search-results.html b/landing/answers/notion-export-duplicate-search-results.html
index edc3041a7..64ecef39e 100644
--- a/landing/answers/notion-export-duplicate-search-results.html
+++ b/landing/answers/notion-export-duplicate-search-results.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/private-agent-memory-namespaces.html b/landing/answers/private-agent-memory-namespaces.html
index 7f9ff494b..5b1cc188e 100644
--- a/landing/answers/private-agent-memory-namespaces.html
+++ b/landing/answers/private-agent-memory-namespaces.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/rag-without-vector-database.html b/landing/answers/rag-without-vector-database.html
index 6cc043958..3c8618477 100644
--- a/landing/answers/rag-without-vector-database.html
+++ b/landing/answers/rag-without-vector-database.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/read-autoindex-progress.html b/landing/answers/read-autoindex-progress.html
index 6045b585b..f9f1b3a46 100644
--- a/landing/answers/read-autoindex-progress.html
+++ b/landing/answers/read-autoindex-progress.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/read-indexed-email-and-pdf-folder.html b/landing/answers/read-indexed-email-and-pdf-folder.html
index 7bb81d8c2..aca47ef79 100644
--- a/landing/answers/read-indexed-email-and-pdf-folder.html
+++ b/landing/answers/read-indexed-email-and-pdf-folder.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/rebuild-reference-corpus-index.html b/landing/answers/rebuild-reference-corpus-index.html
index 414345feb..1a3b17fc0 100644
--- a/landing/answers/rebuild-reference-corpus-index.html
+++ b/landing/answers/rebuild-reference-corpus-index.html
@@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>How do I rebuild a reference-coding corpus index from scratch?</title>
-<meta name="description" content="xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
+<meta name="description" content="xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
<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">
@@ -17,7 +17,7 @@
<meta property="og:site_name" content="XERJ.ai">
<meta property="og:type" content="article">
<meta property="og:title" content="How do I rebuild a reference-coding corpus index from scratch?">
-<meta property="og:description" content="xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
+<meta property="og:description" content="xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
<meta property="og:url" content="https://xerj.org/answers/rebuild-reference-corpus-index">
<meta property="og:image" content="https://xerj.org/og/xerj-card.png">
<meta property="og:image:width" content="1200">
@@ -26,7 +26,7 @@
<meta property="og:locale" content="en_US">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How do I rebuild a reference-coding corpus index from scratch?">
-<meta name="twitter:description" content="xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
+<meta name="twitter:description" content="xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.">
<meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
<script type="application/ld+json">
{
@@ -60,12 +60,12 @@
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "How do I rebuild a reference-coding corpus index from scratch?",
- "description": "xc-index.sh --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.",
+ "description": "xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.",
"url": "https://xerj.org/answers/rebuild-reference-corpus-index",
"image": "https://xerj.org/og/xerj-card.png",
"inLanguage": "en",
"datePublished": "2026-09-18",
- "dateModified": "2026-09-20",
+ "dateModified": "2026-09-21",
"author": {
"@type": "Person",
"name": "XERJ documentation team"
@@ -106,7 +106,7 @@
{
"@type": "ListItem",
"position": 3,
- "name": "xc-index.sh --fresh failed. How do I rebuild a corpus index?"
+ "name": "xerj corpus index --fresh failed. How do I rebuild a corpus index?"
}
]
}
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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="active"><span class="eyebrow">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class="active"><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
@@ -240,26 +240,26 @@
</div>
</nav>
<main class="docs-content">
- <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>XC-INDEX.SH --FRESH FAILED. HOW DO I REBUILD A CORPUS INDEX?</div>
+ <div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>XERJ CORPUS INDEX --FRESH FAILED. HOW DO I REBUILD A CORPUS INDEX?</div>
<div class="kicker"><span>ANSWERS · CODING AGENTS: REFERENCE RETRIEVAL</span></div>
- <h1>xc-index.sh --fresh failed. How do I rebuild a corpus index?</h1>
- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>
- <p><strong>TL;DR</strong> — Run <code class="inline">xc-index.sh &lt;corpus&gt; --fresh</code>. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older versions of the script failed on every corpus that had been indexed before.</p>
+ <h1>xerj corpus index --fresh failed. How do I rebuild a corpus index?</h1>
+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-21</div>
+ <p><strong>TL;DR</strong> — Run <code class="inline">xerj corpus index &lt;corpus&gt; --fresh</code>. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older releases' wrapper scripts failed on every corpus that had been indexed before.</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 maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xc.py reports an index older than 30 days, or a plain xc-index.sh run says the state directory cannot become generation authority, run tools/xerj-code/scripts/xc-index.sh &lt;corpus&gt; --fresh. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the script's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.</code>
- <button type="button" class="prompt-copy" data-copy="Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xc.py reports an index older than 30 days, or a plain xc-index.sh run says the state directory cannot become generation authority, run tools/xerj-code/scripts/xc-index.sh &lt;corpus&gt; --fresh. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the script&#x27;s last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.">COPY THE PROMPT</button>
+ <code>Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xerj code reports an index older than 30 days, or a plain `xerj corpus index` run says the state directory cannot become generation authority, run `xerj corpus index &lt;corpus&gt; --fresh`. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the command's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.</code>
+ <button type="button" class="prompt-copy" data-copy="Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xerj code reports an index older than 30 days, or a plain `xerj corpus index` run says the state directory cannot become generation authority, run `xerj corpus index &lt;corpus&gt; --fresh`. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the command&#x27;s last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.">COPY THE PROMPT</button>
</div>
<div class="prompt-card">
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
- <code>bash tools/xerj-code/scripts/xc-index.sh xerj-storage</code>
- <button type="button" class="prompt-copy" data-copy="bash tools/xerj-code/scripts/xc-index.sh xerj-storage">COPY COMMAND</button>
+ <code>xerj corpus index xerj-storage</code>
+ <button type="button" class="prompt-copy" data-copy="xerj corpus index xerj-storage">COPY COMMAND</button>
<span class="hero-proof">Index a corpus, or update in place the build an earlier run recorded.</span>
</div>
<div class="prompt-card">
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
- <code>bash tools/xerj-code/scripts/xc-index.sh xerj-storage --fresh</code>
- <button type="button" class="prompt-copy" data-copy="bash tools/xerj-code/scripts/xc-index.sh xerj-storage --fresh">COPY COMMAND</button>
+ <code>xerj corpus index xerj-storage --fresh</code>
+ <button type="button" class="prompt-copy" data-copy="xerj corpus index xerj-storage --fresh">COPY COMMAND</button>
<span class="hero-proof">Rebuild from scratch: build beside the old index, verify, switch, then retire.</span>
</div>
<div class="prompt-card">
@@ -272,16 +272,16 @@
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
<code>curl -s 'http://127.0.0.1:9200/xc-xerj-storage*/_count'</code>
<button type="button" class="prompt-copy" data-copy="curl -s &#x27;http://127.0.0.1:9200/xc-xerj-storage*/_count&#x27;">COPY COMMAND</button>
- <span class="hero-proof">Count the records yourself. The script already did, and refused to switch on zero.</span>
+ <span class="hero-proof">Count the records yourself. The command already did, and refused to switch on zero.</span>
</div>
<div class="prompt-card">
<span class="prompt-label">RUN THIS XERJ COMMAND</span>
- <code>env XERJ_URL=http://127.0.0.1:9200 tools/xerj-code/scripts/xc.py xerj-storage 'merge policy segment selection'</code>
- <button type="button" class="prompt-copy" data-copy="env XERJ_URL=http://127.0.0.1:9200 tools/xerj-code/scripts/xc.py xerj-storage &#x27;merge policy segment selection&#x27;">COPY COMMAND</button>
- <span class="hero-proof">Query the rebuilt corpus. xc.py addresses the verified build, not the whole namespace.</span>
+ <code>env XERJ_URL=http://127.0.0.1:9200 xerj code xerj-storage 'merge policy segment selection'</code>
+ <button type="button" class="prompt-copy" data-copy="env XERJ_URL=http://127.0.0.1:9200 xerj code xerj-storage &#x27;merge policy segment selection&#x27;">COPY COMMAND</button>
+ <span class="hero-proof">Query the rebuilt corpus. xerj code addresses the verified build, not the whole namespace.</span>
</div>
<h2>Why the old --fresh failed</h2>
- <p>The script used to forward <code class="inline">--fresh</code> to <code class="inline">xerj autoindex</code>. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.</p>
+ <p>The wrapper scripts used to forward <code class="inline">--fresh</code> to <code class="inline">xerj autoindex</code>. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.</p>
<p>So the rebuild failed in both states a previously indexed corpus can be in.</p>
<p>A state directory written before the <code class="inline">generation-v1</code> format cannot be adopted:</p>
<pre class="code"><code class="language-text">error: this state directory contains a legacy nonempty plan that cannot become generation authority
@@ -289,7 +289,7 @@
<p>A state directory written since refuses the flag outright:</p>
<pre class="code"><code class="language-text">error: this attempt made no remote mutations. `--fresh` cannot discard committed corpus generation 1 under the same destination
</code></pre>
- <p>Both messages give the same advice: build into a new <code class="inline">--state-dir</code> and a new <code class="inline">--prefix</code>, validate, then switch readers. A wrapper that owns the whole <code class="inline">xc-&lt;corpus&gt;</code> namespace can do exactly that. Now it does.</p>
+ <p>Both messages give the same advice: build into a new <code class="inline">--state-dir</code> and a new <code class="inline">--prefix</code>, validate, then switch readers. A command that owns the whole <code class="inline">xc-&lt;corpus&gt;</code> namespace can do exactly that. Since rc.76 it is built in: <code class="inline">xerj corpus index</code>.</p>
<h2>What --fresh does now</h2>
<table>
<thead><tr><th>Step</th><th>What happens</th><th>What can go wrong</th></tr></thead>
@@ -302,60 +302,60 @@
</table>
<p>The old indices are listed before the build starts. The retire step can therefore never include what the run itself created.</p>
<h2>A failed build costs nothing</h2>
- <p>If autoindex aborts, or exits 0 with zero records, the script removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the script says so:</p>
- <pre class="code"><code class="language-text">xc-index: the existing index was NOT touched and is still what xc.py serves.
+ <p>If autoindex aborts, or exits 0 with zero records, the command removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the command says so:</p>
+ <pre class="code"><code class="language-text">xerj corpus index: the existing index was NOT touched and is still what `xerj code` serves.
</code></pre>
- <p>There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The script cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in <code class="inline">autoindex_exit</code> with <code class="inline">salvaged: true</code>, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.</p>
- <p>A kept build can be partial, so the reader is told. While the state file says <code class="inline">salvaged</code>, or records an exit code other than 0 or 3, <code class="inline">xc.py</code> prints this on stderr with every query, and <code class="inline">xc.py --list</code> marks the corpus <code class="inline">INCOMPLETE</code>:</p>
- <pre class="code"><code class="language-text">WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). Coverage may be INCOMPLETE: a miss here is not evidence that the code is absent. Re-run xc-index.sh xerj-storage to resume or confirm it.
+ <p>There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The command cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in <code class="inline">autoindex_exit</code> with <code class="inline">salvaged: true</code>, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.</p>
+ <p>A kept build can be partial, so the reader is told. While the state file says <code class="inline">salvaged</code>, or records an exit code other than 0 or 3, <code class="inline">xerj code</code> prints this on stderr with every query, and <code class="inline">xerj corpus list</code> marks the corpus <code class="inline">INCOMPLETE</code>:</p>
+ <pre class="code"><code class="language-text">WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). A miss here is not evidence that the code is absent. Re-run `xerj corpus index xerj-storage` to resume or confirm it.
</code></pre>
<h2>A count the node does not answer is not zero</h2>
- <p>Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The script asks up to 6 times, 5 seconds apart (<code class="inline">XC_COUNT_TRIES</code>, <code class="inline">XC_COUNT_PAUSE</code>). Only a number, or a 404 because no index matches, is believed.</p>
- <p>When the node never says how many records the existing index holds, the script presumes it is a working index. A failed build is then not kept over it.</p>
- <p>When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next <code class="inline">--fresh</code> that verifies retires the leftover. If there is none, the build is recorded as unverified, <code class="inline">xc.py</code> warns as above, and a plain re-run confirms it once the node answers.</p>
- <p>An earlier draft of this script read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the test file and fail against that draft.</p>
- <p>A plain <code class="inline">xc-index.sh &lt;corpus&gt;</code> resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the <code class="inline">salvaged</code> mark is cleared and the warning stops.</p>
+ <p>Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The command asks up to 6 times, 5 seconds apart (<code class="inline">XC_COUNT_TRIES</code>, <code class="inline">XC_COUNT_PAUSE</code>). Only a number, or a 404 because no index matches, is believed.</p>
+ <p>When the node never says how many records the existing index holds, the command presumes it is a working index. A failed build is then not kept over it.</p>
+ <p>When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next <code class="inline">--fresh</code> that verifies retires the leftover. If there is none, the build is recorded as unverified, <code class="inline">xerj code</code> warns as above, and a plain re-run confirms it once the node answers.</p>
+ <p>An earlier draft of this command read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the retired script's test file and fail against that draft.</p>
+ <p>A plain <code class="inline">xerj corpus index &lt;corpus&gt;</code> resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the <code class="inline">salvaged</code> mark is cleared and the warning stops.</p>
<h2>Two prefixes in the state file</h2>
<pre class="code"><code class="language-text">{"corpus":"xerj-storage","prefix":"xc-xerj-storage","index_prefix":"xc-xerj-storage-b20260918101500", ...}
</code></pre>
<p><code class="inline">prefix</code> is always <code class="inline">xc-&lt;corpus&gt;</code>. It matches every build's indices, so anything that globs <code class="inline">xc-&lt;corpus&gt;*</code> keeps working across a rebuild.</p>
- <p><code class="inline">index_prefix</code> is the one build that was verified. <code class="inline">xc.py</code> queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.</p>
- <p>A state file written before builds existed has no <code class="inline">index_prefix</code>. <code class="inline">xc.py</code> falls back to <code class="inline">prefix</code> for it.</p>
+ <p><code class="inline">index_prefix</code> is the one build that was verified. <code class="inline">xerj code</code> queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.</p>
+ <p>A state file written before builds existed has no <code class="inline">index_prefix</code>. <code class="inline">xerj code</code> falls back to <code class="inline">prefix</code> for it.</p>
<h2>Siblings are safe</h2>
- <p><code class="inline">xc-battle-*</code> also matches the indices of a corpus named <code class="inline">battle-terse</code>. The script knows which corpus names extend this one, from <code class="inline">corpora/</code> and from <code class="inline">state/</code>, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the script.</p>
+ <p><code class="inline">xc-battle-*</code> also matches the indices of a corpus named <code class="inline">battle-terse</code>. The command knows which corpus names extend this one, from <code class="inline">corpora/</code> and from <code class="inline">state/</code>, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the command.</p>
<h2>A plain re-run updates in place</h2>
- <p><code class="inline">xc-index.sh &lt;corpus&gt;</code> without <code class="inline">--fresh</code> re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.</p>
+ <p><code class="inline">xerj corpus index &lt;corpus&gt;</code> without <code class="inline">--fresh</code> re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.</p>
<p>If that run fails with the <code class="inline">generation authority</code> message, the corpus predates the generation format. Run <code class="inline">--fresh</code> once.</p>
<h2>What to plan for</h2>
<p>A rebuild holds the corpus on the node twice until the old build is retired. Plan disk for double. This was not measured.</p>
- <p>The old state directory of a corpus indexed before builds existed lives under <code class="inline">~/.xerj/autoindex/</code>, in a folder named by a hash. The script cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.</p>
+ <p>The old state directory of a corpus indexed before builds existed lives under <code class="inline">~/.xerj/autoindex/</code>, in a folder named by a hash. The command cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.</p>
<h2>How this page was checked</h2>
<p>The two error messages are captures from v1.0.0-rc.74, committed under <code class="inline">benchmarks/autoindex-resilience/</code>. Local paths in them were shortened; nothing else was changed.</p>
- <p>The new behaviour is pinned by <code class="inline">tools/xerj-code/tests/test_xc_index_fresh.py</code>: 81 offline checks against a fake node and a fake <code class="inline">xerj</code> binary that refuses what the real one refuses. The same test fails against the old script with the first error above.</p>
- <p>The warning and the <code class="inline">--list</code> mark are pinned by <code class="inline">tools/xerj-code/tests/test_state_ledger.py</code> (25 offline checks). Resuming a kept build was checked against the fake binary only: that the re-run passes the same prefix and state directory. autoindex resuming an interrupted generation from its journal is a separate capture, <code class="inline">benchmarks/autoindex-resilience/after-fix.resume-probe.stderr.txt</code>. The two were not run together end to end.</p>
- <p>Writing that test found five defects in drafts of the new script. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five are fixed and covered. The unanswered count was exercised against the fake node only, with a 503. It was not provoked on a real node.</p>
+ <p>The state-ledger contracts the warning section rests on — the salvaged warning on every query, exit 3 not reported as incomplete, <code class="inline">index_prefix</code> preferred over the bare namespace glob, the staleness refusal — are pinned by the tests in <code class="inline">engine/crates/xerj-common/src/xccode/state.rs</code>.</p>
+ <p>The full <code class="inline">--fresh</code> swap contract was pinned by 81 offline checks in the retired script suite (<code class="inline">tools/xerj-code/tests/test_xc_index_fresh.py</code>, deleted with the scripts): nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaving the old index untouched, sibling corpora never touched, an interrupted first build kept and resumable, unknown counts never read as zero. Those contracts now live in <code class="inline">engine/crates/xerj-autoindex/src/xc.rs</code> but are not yet re-pinned as Rust tests there; the re-pinning is tracked in <a href="https://github.com/xerj-org/xerj/issues/1004">issue #1004</a>. Until it lands, treat the swap safety claims on this page as carried by review, not by a test suite.</p>
+ <p>Writing the old suite found five defects in drafts of the new command. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five were fixed in the port; the unanswered count was exercised against a fake node only, with a 503. It was not provoked on a real node.</p>
<h2>FAQ</h2>
<h3>How do I rebuild a reference-coding corpus index from scratch?</h3>
- <p>Run <code class="inline">xc-index.sh &lt;corpus&gt; --fresh</code>. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name.</p>
- <h3>xc-index.sh --fresh failed. How do I rebuild a corpus index?</h3>
- <p>Update the script. Older versions forwarded <code class="inline">--fresh</code> to <code class="inline">xerj autoindex</code>, which refuses it once a corpus generation has committed. The current script never forwards it and rebuilds under a new prefix instead.</p>
+ <p>Run <code class="inline">xerj corpus index &lt;corpus&gt; --fresh</code>. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name.</p>
+ <h3>xerj corpus index --fresh failed. How do I rebuild a corpus index?</h3>
+ <p>Update the binary. Older releases shipped wrapper scripts that forwarded <code class="inline">--fresh</code> to <code class="inline">xerj autoindex</code>, which refuses it once a corpus generation has committed. The built-in command never forwards it and rebuilds under a new prefix instead.</p>
<h3>Does --fresh delete my working index first?</h3>
<p>No. The old index stays live until the replacement exited 0 or 3 and its record count is above zero. A build that fails or comes back empty is removed, and the old index and state file are left exactly as they were.</p>
<h3>Why does the state file have both prefix and index_prefix?</h3>
- <p><code class="inline">prefix</code> is always <code class="inline">xc-&lt;corpus&gt;</code>, the whole namespace, so anything that globs on it keeps working. <code class="inline">index_prefix</code> is the one verified build, and it is what <code class="inline">xc.py</code> queries.</p>
- <h3>Is xc-index.sh --fresh the same as xerj autoindex --fresh?</h3>
- <p>No. <code class="inline">xerj autoindex --fresh</code> only discards the resume journal, never removes records, and is refused once a durable generation exists. The script's <code class="inline">--fresh</code> is a full rebuild under a new prefix and state directory.</p>
+ <p><code class="inline">prefix</code> is always <code class="inline">xc-&lt;corpus&gt;</code>, the whole namespace, so anything that globs on it keeps working. <code class="inline">index_prefix</code> is the one verified build, and it is what <code class="inline">xerj code</code> queries.</p>
+ <h3>Is xerj corpus index --fresh the same as xerj autoindex --fresh?</h3>
+ <p>No. <code class="inline">xerj autoindex --fresh</code> only discards the resume journal, never removes records, and is refused once a durable generation exists. The corpus command's <code class="inline">--fresh</code> is a full rebuild under a new prefix and state directory.</p>
<h3>What happens if the first build of a corpus is interrupted?</h3>
- <p>With no working index to fall back to, the script keeps the partial build, records <code class="inline">salvaged: true</code> and the real exit code in the state file, and warns. <code class="inline">xc.py</code> then warns on every query that coverage is incomplete. A plain <code class="inline">xc-index.sh &lt;corpus&gt;</code> resumes the run under the same prefix and state directory.</p>
+ <p>With no working index to fall back to, the command keeps the partial build, records <code class="inline">salvaged: true</code> and the real exit code in the state file, and warns. <code class="inline">xerj code</code> then warns on every query that coverage is incomplete. A plain <code class="inline">xerj corpus index &lt;corpus&gt;</code> resumes the run under the same prefix and state directory.</p>
<h3>How much disk does a rebuild need?</h3>
<p>Room for the corpus twice. Both builds exist on the node from the start of the rebuild until the old one is retired. This was not measured; plan for double.</p>
<h2>Evidence</h2>
<ul>
<li>On v1.0.0-rc.74 a state directory written before the generation-v1 format aborted with exit 1: this state directory contains a legacy nonempty plan that cannot become generation authority. — <code>benchmarks/autoindex-resilience/fresh-before-rc74.legacy-state.txt</code></li>
<li>On v1.0.0-rc.74 xerj autoindex --fresh over a committed generation aborted with exit 1: --fresh cannot discard committed corpus generation 1 under the same destination. — <code>benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt</code></li>
- <li>The --fresh contract is pinned by 81 offline checks: a new state directory and prefix, --fresh never forwarded to autoindex, nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaves the old index and state file untouched, a sibling corpus is never touched, an interrupted first build is kept, recorded as salvaged with its real exit code, and resumed by a plain re-run under the same prefix and state directory, and a record count the node does not answer is never read as zero: it cannot get a working index retired or a finished build deleted. — <code>tools/xerj-code/tests/test_xc_index_fresh.py</code></li>
- <li>When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xc.py prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and marks the corpus INCOMPLETE in --list. Exit 3 is not reported as incomplete. — <code>tools/xerj-code/tests/test_state_ledger.py</code></li>
- <li>xc.py queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt. — <code>tools/xerj-code/tests/test_state_ledger.py</code></li>
+ <li>When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xerj code prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and xerj corpus list marks the corpus INCOMPLETE. Exit 3 is not reported as incomplete. Pinned by the state-ledger tests in xccode/state.rs. — <code>engine/crates/xerj-common/src/xccode/state.rs</code></li>
+ <li>xerj code queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt. Pinned by the prefix-fallback tests in xccode/state.rs. — <code>engine/crates/xerj-common/src/xccode/state.rs</code></li>
+ <li>The full --fresh swap contract (nothing deleted before the replacement's count was read, deletes by exact name, sibling corpora never touched, unknown counts never read as zero) was pinned by 81 offline checks against a fake node in the retired script suite; re-pinning those contracts as Rust tests around xerj corpus index is open. — <a href="https://github.com/xerj-org/xerj/issues/1004">https://github.com/xerj-org/xerj/issues/1004</a></li>
</ul>
<h2>Related</h2>
<ul>
diff --git a/landing/answers/rebuild-reference-corpus-index.md b/landing/answers/rebuild-reference-corpus-index.md
index ea97bba1f..324e2b6da 100644
--- a/landing/answers/rebuild-reference-corpus-index.md
+++ b/landing/answers/rebuild-reference-corpus-index.md
@@ -2,18 +2,18 @@
---
title: "How do I rebuild a reference-coding corpus index from scratch?"
canonical: "https://xerj.org/answers/rebuild-reference-corpus-index"
-updated: "2026-09-20"
+updated: "2026-09-21"
source: "content/answers/rebuild-reference-corpus-index.md"
---
-# xc-index.sh --fresh failed. How do I rebuild a corpus index?
+# xerj corpus index --fresh failed. How do I rebuild a corpus index?
-**TL;DR** — Run `xc-index.sh <corpus> --fresh`. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older versions of the script failed on every corpus that had been indexed before.
+**TL;DR** — Run `xerj corpus index <corpus> --fresh`. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A build that fails costs you nothing. Older releases' wrapper scripts failed on every corpus that had been indexed before.
## Agent prompt
```text
-Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xc.py reports an index older than 30 days, or a plain xc-index.sh run says the state directory cannot become generation authority, run tools/xerj-code/scripts/xc-index.sh <corpus> --fresh. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the script's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.
+Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xerj code reports an index older than 30 days, or a plain `xerj corpus index` run says the state directory cannot become generation authority, run `xerj corpus index <corpus> --fresh`. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the command's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched.
```
## Commands
@@ -23,7 +23,7 @@ Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.o
Note: Index a corpus, or update in place the build an earlier run recorded.
```sh
-bash tools/xerj-code/scripts/xc-index.sh xerj-storage
+xerj corpus index xerj-storage
```
### Command 2
@@ -31,7 +31,7 @@ bash tools/xerj-code/scripts/xc-index.sh xerj-storage
Note: Rebuild from scratch: build beside the old index, verify, switch, then retire.
```sh
-bash tools/xerj-code/scripts/xc-index.sh xerj-storage --fresh
+xerj corpus index xerj-storage --fresh
```
### Command 3
@@ -44,7 +44,7 @@ bash -c 'cat ~/.xerj-code/state/xerj-storage.json'
### Command 4
-Note: Count the records yourself. The script already did, and refused to switch on zero.
+Note: Count the records yourself. The command already did, and refused to switch on zero.
```sh
curl -s 'http://127.0.0.1:9200/xc-xerj-storage*/_count'
@@ -52,15 +52,15 @@ curl -s 'http://127.0.0.1:9200/xc-xerj-storage*/_count'
### Command 5
-Note: Query the rebuilt corpus. xc.py addresses the verified build, not the whole namespace.
+Note: Query the rebuilt corpus. xerj code addresses the verified build, not the whole namespace.
```sh
-env XERJ_URL=http://127.0.0.1:9200 tools/xerj-code/scripts/xc.py xerj-storage 'merge policy segment selection'
+env XERJ_URL=http://127.0.0.1:9200 xerj code xerj-storage 'merge policy segment selection'
```
## Why the old --fresh failed
-The script used to forward `--fresh` to `xerj autoindex`. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.
+The wrapper scripts used to forward `--fresh` to `xerj autoindex`. That flag means something narrower than its name suggests. It discards the resume journal. It never removes records from the node. And it is refused once a durable corpus generation exists.
So the rebuild failed in both states a previously indexed corpus can be in.
@@ -76,7 +76,7 @@ A state directory written since refuses the flag outright:
error: this attempt made no remote mutations. `--fresh` cannot discard committed corpus generation 1 under the same destination
```
-Both messages give the same advice: build into a new `--state-dir` and a new `--prefix`, validate, then switch readers. A wrapper that owns the whole `xc-<corpus>` namespace can do exactly that. Now it does.
+Both messages give the same advice: build into a new `--state-dir` and a new `--prefix`, validate, then switch readers. A command that owns the whole `xc-<corpus>` namespace can do exactly that. Since rc.76 it is built in: `xerj corpus index`.
## What --fresh does now
@@ -91,31 +91,31 @@ The old indices are listed before the build starts. The retire step can therefor
## A failed build costs nothing
-If autoindex aborts, or exits 0 with zero records, the script removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the script says so:
+If autoindex aborts, or exits 0 with zero records, the command removes only what that build created. The old indices, the old state file and the old state directory stay exactly as they were, and the command says so:
```text
-xc-index: the existing index was NOT touched and is still what xc.py serves.
+xerj corpus index: the existing index was NOT touched and is still what `xerj code` serves.
```
-There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The script cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in `autoindex_exit` with `salvaged: true`, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.
+There is one case where a failed build is kept: it wrote records, and there is no working index to fall back to. Throwing it away would leave no corpus at all. autoindex can abort in finalisation after every document was written, and it can also stop part-way through a large corpus, for example when the node keeps rejecting writes. The command cannot tell the two apart, so it treats both the same way. It records the build, stores the real exit code in `autoindex_exit` with `salvaged: true`, and prints a warning that coverage is not guaranteed. It never swaps a working index out for a build that failed.
-A kept build can be partial, so the reader is told. While the state file says `salvaged`, or records an exit code other than 0 or 3, `xc.py` prints this on stderr with every query, and `xc.py --list` marks the corpus `INCOMPLETE`:
+A kept build can be partial, so the reader is told. While the state file says `salvaged`, or records an exit code other than 0 or 3, `xerj code` prints this on stderr with every query, and `xerj corpus list` marks the corpus `INCOMPLETE`:
```text
-WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). Coverage may be INCOMPLETE: a miss here is not evidence that the code is absent. Re-run xc-index.sh xerj-storage to resume or confirm it.
+WARNING: the index for 'xerj-storage' was NOT verified complete (autoindex exit 1, kept unverified). A miss here is not evidence that the code is absent. Re-run `xerj corpus index xerj-storage` to resume or confirm it.
```
## A count the node does not answer is not zero
-Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The script asks up to 6 times, 5 seconds apart (`XC_COUNT_TRIES`, `XC_COUNT_PAUSE`). Only a number, or a 404 because no index matches, is believed.
+Every decision above rests on a record count, and a busy node does not always answer one. A timeout, a 5xx or a refused connection is "did not say". It is not zero. The command asks up to 6 times, 5 seconds apart (`XC_COUNT_TRIES`, `XC_COUNT_PAUSE`). Only a number, or a 404 because no index matches, is believed.
-When the node never says how many records the existing index holds, the script presumes it is a working index. A failed build is then not kept over it.
+When the node never says how many records the existing index holds, the command presumes it is a working index. A failed build is then not kept over it.
-When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next `--fresh` that verifies retires the leftover. If there is none, the build is recorded as unverified, `xc.py` warns as above, and a plain re-run confirms it once the node answers.
+When the node never says how many records the new build holds, nothing is deleted and nothing is switched. The build's indices and its state directory are kept. If there is a working index it keeps serving, and the next `--fresh` that verifies retires the leftover. If there is none, the build is recorded as unverified, `xerj code` warns as above, and a plain re-run confirms it once the node answers.
-An earlier draft of this script read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the test file and fail against that draft.
+An earlier draft of this command read "did not say" as zero. One 503 on one request then retired a working 500-record index in favour of a failed build, and another deleted a finished build together with its resume state. Both are reproduced in the retired script's test file and fail against that draft.
-A plain `xc-index.sh <corpus>` resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the `salvaged` mark is cleared and the warning stops.
+A plain `xerj corpus index <corpus>` resumes a kept build. The kept build has its own prefix and state directory, so the re-run passes both back to autoindex, which continues from its journal. When that run exits 0 or 3 the `salvaged` mark is cleared and the warning stops.
## Two prefixes in the state file
@@ -125,17 +125,17 @@ A plain `xc-index.sh <corpus>` resumes a kept build. The kept build has its own
`prefix` is always `xc-<corpus>`. It matches every build's indices, so anything that globs `xc-<corpus>*` keeps working across a rebuild.
-`index_prefix` is the one build that was verified. `xc.py` queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.
+`index_prefix` is the one build that was verified. `xerj code` queries it. During a rebuild the namespace holds two builds, and a query against the whole namespace would return passages twice, or from a half-built index.
-A state file written before builds existed has no `index_prefix`. `xc.py` falls back to `prefix` for it.
+A state file written before builds existed has no `index_prefix`. `xerj code` falls back to `prefix` for it.
## Siblings are safe
-`xc-battle-*` also matches the indices of a corpus named `battle-terse`. The script knows which corpus names extend this one, from `corpora/` and from `state/`, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the script.
+`xc-battle-*` also matches the indices of a corpus named `battle-terse`. The command knows which corpus names extend this one, from `corpora/` and from `state/`, and leaves their indices out of every list. Deletes are by exact index name. There is no wildcard delete anywhere in the command.
## A plain re-run updates in place
-`xc-index.sh <corpus>` without `--fresh` re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.
+`xerj corpus index <corpus>` without `--fresh` re-runs autoindex against the recorded build's prefix and state directory. Additions, edits, deletions and renames reconcile incrementally, and the index prefix does not change.
If that run fails with the `generation authority` message, the corpus predates the generation format. Run `--fresh` once.
@@ -143,27 +143,27 @@ If that run fails with the `generation authority` message, the corpus predates t
A rebuild holds the corpus on the node twice until the old build is retired. Plan disk for double. This was not measured.
-The old state directory of a corpus indexed before builds existed lives under `~/.xerj/autoindex/`, in a folder named by a hash. The script cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.
+The old state directory of a corpus indexed before builds existed lives under `~/.xerj/autoindex/`, in a folder named by a hash. The command cannot compute that name, so it leaves the folder behind. It is harmless, and you can delete it by hand.
## How this page was checked
The two error messages are captures from v1.0.0-rc.74, committed under `benchmarks/autoindex-resilience/`. Local paths in them were shortened; nothing else was changed.
-The new behaviour is pinned by `tools/xerj-code/tests/test_xc_index_fresh.py`: 81 offline checks against a fake node and a fake `xerj` binary that refuses what the real one refuses. The same test fails against the old script with the first error above.
+The state-ledger contracts the warning section rests on — the salvaged warning on every query, exit 3 not reported as incomplete, `index_prefix` preferred over the bare namespace glob, the staleness refusal — are pinned by the tests in `engine/crates/xerj-common/src/xccode/state.rs`.
-The warning and the `--list` mark are pinned by `tools/xerj-code/tests/test_state_ledger.py` (25 offline checks). Resuming a kept build was checked against the fake binary only: that the re-run passes the same prefix and state directory. autoindex resuming an interrupted generation from its journal is a separate capture, `benchmarks/autoindex-resilience/after-fix.resume-probe.stderr.txt`. The two were not run together end to end.
+The full `--fresh` swap contract was pinned by 81 offline checks in the retired script suite (`tools/xerj-code/tests/test_xc_index_fresh.py`, deleted with the scripts): nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaving the old index untouched, sibling corpora never touched, an interrupted first build kept and resumable, unknown counts never read as zero. Those contracts now live in `engine/crates/xerj-autoindex/src/xc.rs` but are not yet re-pinned as Rust tests there; the re-pinning is tracked in [issue #1004](https://github.com/xerj-org/xerj/issues/1004). Until it lands, treat the swap safety claims on this page as carried by review, not by a test suite.
-Writing that test found five defects in drafts of the new script. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five are fixed and covered. The unanswered count was exercised against the fake node only, with a 503. It was not provoked on a real node.
+Writing the old suite found five defects in drafts of the new command. An index listing that never reached its filter, a record count that read as zero when the node put a space after the colon, two rebuilds inside one second retiring the build they had just verified, and the two unanswered-count defects described above. All five were fixed in the port; the unanswered count was exercised against a fake node only, with a 503. It was not provoked on a real node.
## FAQ
### How do I rebuild a reference-coding corpus index from scratch?
-Run `xc-index.sh <corpus> --fresh`. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name.
+Run `xerj corpus index <corpus> --fresh`. It builds a replacement beside the existing index, verifies that it holds records, switches the state file, and only then deletes the old indices by exact name.
-### xc-index.sh --fresh failed. How do I rebuild a corpus index?
+### xerj corpus index --fresh failed. How do I rebuild a corpus index?
-Update the script. Older versions forwarded `--fresh` to `xerj autoindex`, which refuses it once a corpus generation has committed. The current script never forwards it and rebuilds under a new prefix instead.
+Update the binary. Older releases shipped wrapper scripts that forwarded `--fresh` to `xerj autoindex`, which refuses it once a corpus generation has committed. The built-in command never forwards it and rebuilds under a new prefix instead.
### Does --fresh delete my working index first?
@@ -171,15 +171,15 @@ No. The old index stays live until the replacement exited 0 or 3 and its record
### Why does the state file have both prefix and index_prefix?
-`prefix` is always `xc-<corpus>`, the whole namespace, so anything that globs on it keeps working. `index_prefix` is the one verified build, and it is what `xc.py` queries.
+`prefix` is always `xc-<corpus>`, the whole namespace, so anything that globs on it keeps working. `index_prefix` is the one verified build, and it is what `xerj code` queries.
-### Is xc-index.sh --fresh the same as xerj autoindex --fresh?
+### Is xerj corpus index --fresh the same as xerj autoindex --fresh?
-No. `xerj autoindex --fresh` only discards the resume journal, never removes records, and is refused once a durable generation exists. The script's `--fresh` is a full rebuild under a new prefix and state directory.
+No. `xerj autoindex --fresh` only discards the resume journal, never removes records, and is refused once a durable generation exists. The corpus command's `--fresh` is a full rebuild under a new prefix and state directory.
### What happens if the first build of a corpus is interrupted?
-With no working index to fall back to, the script keeps the partial build, records `salvaged: true` and the real exit code in the state file, and warns. `xc.py` then warns on every query that coverage is incomplete. A plain `xc-index.sh <corpus>` resumes the run under the same prefix and state directory.
+With no working index to fall back to, the command keeps the partial build, records `salvaged: true` and the real exit code in the state file, and warns. `xerj code` then warns on every query that coverage is incomplete. A plain `xerj corpus index <corpus>` resumes the run under the same prefix and state directory.
### How much disk does a rebuild need?
@@ -189,9 +189,9 @@ Room for the corpus twice. Both builds exist on the node from the start of the r
- On v1.0.0-rc.74 a state directory written before the generation-v1 format aborted with exit 1: this state directory contains a legacy nonempty plan that cannot become generation authority. — `benchmarks/autoindex-resilience/fresh-before-rc74.legacy-state.txt`
- On v1.0.0-rc.74 xerj autoindex --fresh over a committed generation aborted with exit 1: --fresh cannot discard committed corpus generation 1 under the same destination. — `benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt`
-- The --fresh contract is pinned by 81 offline checks: a new state directory and prefix, --fresh never forwarded to autoindex, nothing deleted before the replacement's count was read, deletes by exact name, a failed or empty build leaves the old index and state file untouched, a sibling corpus is never touched, an interrupted first build is kept, recorded as salvaged with its real exit code, and resumed by a plain re-run under the same prefix and state directory, and a record count the node does not answer is never read as zero: it cannot get a working index retired or a finished build deleted. — `tools/xerj-code/tests/test_xc_index_fresh.py`
-- When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xc.py prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and marks the corpus INCOMPLETE in --list. Exit 3 is not reported as incomplete. — `tools/xerj-code/tests/test_state_ledger.py`
-- xc.py queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt. — `tools/xerj-code/tests/test_state_ledger.py`
+- When the ledger records a salvaged build or an autoindex exit other than 0 or 3, xerj code prints a coverage-may-be-INCOMPLETE warning on stderr on every query, keeps --json stdout parseable, and xerj corpus list marks the corpus INCOMPLETE. Exit 3 is not reported as incomplete. Pinned by the state-ledger tests in xccode/state.rs. — `engine/crates/xerj-common/src/xccode/state.rs`
+- xerj code queries index_prefix, the one verified build, and never the bare namespace glob once a corpus has been rebuilt. Pinned by the prefix-fallback tests in xccode/state.rs. — `engine/crates/xerj-common/src/xccode/state.rs`
+- The full --fresh swap contract (nothing deleted before the replacement's count was read, deletes by exact name, sibling corpora never touched, unknown counts never read as zero) was pinned by 81 offline checks against a fake node in the retired script suite; re-pinning those contracts as Rust tests around xerj corpus index is open. — [https://github.com/xerj-org/xerj/issues/1004](https://github.com/xerj-org/xerj/issues/1004)
## Related
diff --git a/landing/answers/reciprocal-rank-fusion-when-to-use.html b/landing/answers/reciprocal-rank-fusion-when-to-use.html
index ed9b28607..7ba2095a6 100644
--- a/landing/answers/reciprocal-rank-fusion-when-to-use.html
+++ b/landing/answers/reciprocal-rank-fusion-when-to-use.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/reduce-embedding-api-cost.html b/landing/answers/reduce-embedding-api-cost.html
index 6df0a810c..4b0c40a9f 100644
--- a/landing/answers/reduce-embedding-api-cost.html
+++ b/landing/answers/reduce-embedding-api-cost.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</span>Can I route tickets or filter spam from labelled history, without an LLM call?</a>
<a href="/answers/reduce-embedding-api-cost" class="active"><span class="eyebrow">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/reindex-taking-forever.html b/landing/answers/reindex-taking-forever.html
index d7fed68ab..a2c59eab9 100644
--- a/landing/answers/reindex-taking-forever.html
+++ b/landing/answers/reindex-taking-forever.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/rerank-search-results-calibrated-judge.html b/landing/answers/rerank-search-results-calibrated-judge.html
index d48a115a7..20b3b6df2 100644
--- a/landing/answers/rerank-search-results-calibrated-judge.html
+++ b/landing/answers/rerank-search-results-calibrated-judge.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/resume-interrupted-autoindex-run.html b/landing/answers/resume-interrupted-autoindex-run.html
index fc74a7484..0b1ea09ff 100644
--- a/landing/answers/resume-interrupted-autoindex-run.html
+++ b/landing/answers/resume-interrupted-autoindex-run.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-all-pdfs-in-a-folder.html b/landing/answers/search-all-pdfs-in-a-folder.html
index e27187664..9d7ea8047 100644
--- a/landing/answers/search-all-pdfs-in-a-folder.html
+++ b/landing/answers/search-all-pdfs-in-a-folder.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-bvh-motion-capture-files.html b/landing/answers/search-bvh-motion-capture-files.html
index d90554bae..b71034944 100644
--- a/landing/answers/search-bvh-motion-capture-files.html
+++ b/landing/answers/search-bvh-motion-capture-files.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-confluence-html-export.html b/landing/answers/search-confluence-html-export.html
index 136862d85..f5b53e97d 100644
--- a/landing/answers/search-confluence-html-export.html
+++ b/landing/answers/search-confluence-html-export.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-engine-without-docker.html b/landing/answers/search-engine-without-docker.html
index 1300f4865..6c7be1fe0 100644
--- a/landing/answers/search-engine-without-docker.html
+++ b/landing/answers/search-engine-without-docker.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-file-contents-in-a-folder.html b/landing/answers/search-file-contents-in-a-folder.html
index 0eafb7965..7b1f89486 100644
--- a/landing/answers/search-file-contents-in-a-folder.html
+++ b/landing/answers/search-file-contents-in-a-folder.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-files-in-an-s3-bucket.html b/landing/answers/search-files-in-an-s3-bucket.html
index 67437ebe5..b99dda683 100644
--- a/landing/answers/search-files-in-an-s3-bucket.html
+++ b/landing/answers/search-files-in-an-s3-bucket.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-gmail-takeout-mbox-locally.html b/landing/answers/search-gmail-takeout-mbox-locally.html
index b19deb67d..397b00b65 100644
--- a/landing/answers/search-gmail-takeout-mbox-locally.html
+++ b/landing/answers/search-gmail-takeout-mbox-locally.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-gzip-logs-without-zgrep.html b/landing/answers/search-gzip-logs-without-zgrep.html
index 0910e73c0..7f84094fc 100644
--- a/landing/answers/search-gzip-logs-without-zgrep.html
+++ b/landing/answers/search-gzip-logs-without-zgrep.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-gzipped-csv-or-json.html b/landing/answers/search-gzipped-csv-or-json.html
index 93707b960..540ad8352 100644
--- a/landing/answers/search-gzipped-csv-or-json.html
+++ b/landing/answers/search-gzipped-csv-or-json.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-html-export.html b/landing/answers/search-html-export.html
index dd2a1f9a1..91b469caf 100644
--- a/landing/answers/search-html-export.html
+++ b/landing/answers/search-html-export.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-json-and-jsonl-logs.html b/landing/answers/search-json-and-jsonl-logs.html
index 88f525680..7692f3000 100644
--- a/landing/answers/search-json-and-jsonl-logs.html
+++ b/landing/answers/search-json-and-jsonl-logs.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-jupyter-notebook-cells.html b/landing/answers/search-jupyter-notebook-cells.html
index 039ca51df..f025f5fed 100644
--- a/landing/answers/search-jupyter-notebook-cells.html
+++ b/landing/answers/search-jupyter-notebook-cells.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-kubernetes-pod-logs-on-disk.html b/landing/answers/search-kubernetes-pod-logs-on-disk.html
index 66f1b4029..fd1fa2fc1 100644
--- a/landing/answers/search-kubernetes-pod-logs-on-disk.html
+++ b/landing/answers/search-kubernetes-pod-logs-on-disk.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-obsidian-pdf-docx-attachments.html b/landing/answers/search-obsidian-pdf-docx-attachments.html
index 3a2fd70a7..3c8243ba0 100644
--- a/landing/answers/search-obsidian-pdf-docx-attachments.html
+++ b/landing/answers/search-obsidian-pdf-docx-attachments.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-openapi-spec-for-agent.html b/landing/answers/search-openapi-spec-for-agent.html
index d2b9f663b..223686572 100644
--- a/landing/answers/search-openapi-spec-for-agent.html
+++ b/landing/answers/search-openapi-spec-for-agent.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-slack-json-export.html b/landing/answers/search-slack-json-export.html
index b0dbd28a6..331dca523 100644
--- a/landing/answers/search-slack-json-export.html
+++ b/landing/answers/search-slack-json-export.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-sql-dump-file.html b/landing/answers/search-sql-dump-file.html
index c7be668ab..b8b82d477 100644
--- a/landing/answers/search-sql-dump-file.html
+++ b/landing/answers/search-sql-dump-file.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-unity-project-assets.html b/landing/answers/search-unity-project-assets.html
index 88f89f8e2..6f75ab10a 100644
--- a/landing/answers/search-unity-project-assets.html
+++ b/landing/answers/search-unity-project-assets.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-word-documents-in-a-folder.html b/landing/answers/search-word-documents-in-a-folder.html
index 4ffab7266..74f2d76ab 100644
--- a/landing/answers/search-word-documents-in-a-folder.html
+++ b/landing/answers/search-word-documents-in-a-folder.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-yaml-xml-config-repository.html b/landing/answers/search-yaml-xml-config-repository.html
index eef654218..f50e07695 100644
--- a/landing/answers/search-yaml-xml-config-repository.html
+++ b/landing/answers/search-yaml-xml-config-repository.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/search-zendesk-ticket-json-export.html b/landing/answers/search-zendesk-ticket-json-export.html
index a10facae4..af30c639a 100644
--- a/landing/answers/search-zendesk-ticket-json-export.html
+++ b/landing/answers/search-zendesk-ticket-json-export.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/set-mcp-memory-storage-path.html b/landing/answers/set-mcp-memory-storage-path.html
index 556365aa3..4a85165de 100644
--- a/landing/answers/set-mcp-memory-storage-path.html
+++ b/landing/answers/set-mcp-memory-storage-path.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/share-folder-read-only-search-without-uploading.html b/landing/answers/share-folder-read-only-search-without-uploading.html
index 685229935..ecb7bd140 100644
--- a/landing/answers/share-folder-read-only-search-without-uploading.html
+++ b/landing/answers/share-folder-read-only-search-without-uploading.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/share-local-search-index-through-a-tunnel.html b/landing/answers/share-local-search-index-through-a-tunnel.html
index 5cb8ce476..1c1444d22 100644
--- a/landing/answers/share-local-search-index-through-a-tunnel.html
+++ b/landing/answers/share-local-search-index-through-a-tunnel.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/store-agent-memory-without-llm-call.html b/landing/answers/store-agent-memory-without-llm-call.html
index 9345f2b89..9e34f61be 100644
--- a/landing/answers/store-agent-memory-without-llm-call.html
+++ b/landing/answers/store-agent-memory-without-llm-call.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/syntax-aware-code-search-refactoring.html b/landing/answers/syntax-aware-code-search-refactoring.html
index 646231d00..3b63c9937 100644
--- a/landing/answers/syntax-aware-code-search-refactoring.html
+++ b/landing/answers/syntax-aware-code-search-refactoring.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/vector-database-vs-full-text-search.html b/landing/answers/vector-database-vs-full-text-search.html
index d2a6e490c..e05fbae3e 100644
--- a/landing/answers/vector-database-vs-full-text-search.html
+++ b/landing/answers/vector-database-vs-full-text-search.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/what-a-share-link-guest-can-reach.html b/landing/answers/what-a-share-link-guest-can-reach.html
index 5590bb94c..6277516c2 100644
--- a/landing/answers/what-a-share-link-guest-can-reach.html
+++ b/landing/answers/what-a-share-link-guest-can-reach.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/what-is-xerj.html b/landing/answers/what-is-xerj.html
index bab67687f..c2a594e53 100644
--- a/landing/answers/what-is-xerj.html
+++ b/landing/answers/what-is-xerj.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/answers/why-autoindex-skipped-files.html b/landing/answers/why-autoindex-skipped-files.html
index 25fb49c7d..c46f29935 100644
--- a/landing/answers/why-autoindex-skipped-files.html
+++ b/landing/answers/why-autoindex-skipped-files.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/index.html b/landing/compare/index.html
index 5b0129996..3076a80d0 100644
--- a/landing/compare/index.html
+++ b/landing/compare/index.html
@@ -135,7 +135,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-ast-grep.html b/landing/compare/xerj-vs-ast-grep.html
index 37bf049a3..ab47c5cab 100644
--- a/landing/compare/xerj-vs-ast-grep.html
+++ b/landing/compare/xerj-vs-ast-grep.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-docfetcher.html b/landing/compare/xerj-vs-docfetcher.html
index ce6c2e6e3..df3637f81 100644
--- a/landing/compare/xerj-vs-docfetcher.html
+++ b/landing/compare/xerj-vs-docfetcher.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-elasticsearch-local.html b/landing/compare/xerj-vs-elasticsearch-local.html
index 76464f7d1..abebde707 100644
--- a/landing/compare/xerj-vs-elasticsearch-local.html
+++ b/landing/compare/xerj-vs-elasticsearch-local.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-houdahspot.html b/landing/compare/xerj-vs-houdahspot.html
index 2166e5d37..926c2bb7e 100644
--- a/landing/compare/xerj-vs-houdahspot.html
+++ b/landing/compare/xerj-vs-houdahspot.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-khoj.html b/landing/compare/xerj-vs-khoj.html
index 0374c922f..61743b367 100644
--- a/landing/compare/xerj-vs-khoj.html
+++ b/landing/compare/xerj-vs-khoj.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-localsynapse.html b/landing/compare/xerj-vs-localsynapse.html
index c88447652..d8b3c93e9 100644
--- a/landing/compare/xerj-vs-localsynapse.html
+++ b/landing/compare/xerj-vs-localsynapse.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-meilisearch.html b/landing/compare/xerj-vs-meilisearch.html
index b068009d2..0066ea619 100644
--- a/landing/compare/xerj-vs-meilisearch.html
+++ b/landing/compare/xerj-vs-meilisearch.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-obsidian-omnisearch.html b/landing/compare/xerj-vs-obsidian-omnisearch.html
index 25b83dc26..e17edee96 100644
--- a/landing/compare/xerj-vs-obsidian-omnisearch.html
+++ b/landing/compare/xerj-vs-obsidian-omnisearch.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-pagefind.html b/landing/compare/xerj-vs-pagefind.html
index 8e8da6756..0a13d3279 100644
--- a/landing/compare/xerj-vs-pagefind.html
+++ b/landing/compare/xerj-vs-pagefind.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-recoll.html b/landing/compare/xerj-vs-recoll.html
index 08964e8ea..cb3380629 100644
--- a/landing/compare/xerj-vs-recoll.html
+++ b/landing/compare/xerj-vs-recoll.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-ripgrep-all.html b/landing/compare/xerj-vs-ripgrep-all.html
index 8a1a667f7..881995c55 100644
--- a/landing/compare/xerj-vs-ripgrep-all.html
+++ b/landing/compare/xerj-vs-ripgrep-all.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-ripgrep-for-code-agents.html b/landing/compare/xerj-vs-ripgrep-for-code-agents.html
index 5bd3ec650..42b65782d 100644
--- a/landing/compare/xerj-vs-ripgrep-for-code-agents.html
+++ b/landing/compare/xerj-vs-ripgrep-for-code-agents.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-spotlight.html b/landing/compare/xerj-vs-spotlight.html
index fa45657cd..d6c81e12b 100644
--- a/landing/compare/xerj-vs-spotlight.html
+++ b/landing/compare/xerj-vs-spotlight.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-typesense.html b/landing/compare/xerj-vs-typesense.html
index 3f0fe9bb4..ef3203273 100644
--- a/landing/compare/xerj-vs-typesense.html
+++ b/landing/compare/xerj-vs-typesense.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-vector-database.html b/landing/compare/xerj-vs-vector-database.html
index 0fdca1868..00342979c 100644
--- a/landing/compare/xerj-vs-vector-database.html
+++ b/landing/compare/xerj-vs-vector-database.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/landing/compare/xerj-vs-web-agent-search.html b/landing/compare/xerj-vs-web-agent-search.html
index 2c7fdfd51..2c9fa409b 100644
--- a/landing/compare/xerj-vs-web-agent-search.html
+++ b/landing/compare/xerj-vs-web-agent-search.html
@@ -154,7 +154,7 @@
<a href="/answers/does-xerj-support-s3-alerting-plugins" class=""><span class="eyebrow">11</span>Does XERJ support S3 storage, alerting or custom plugins yet?</a>
<a href="/answers/audit-php-codebase-with-an-index" class=""><span class="eyebrow">12</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">13</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">14</span>xc-index.sh --fresh failed. How do I rebuild a corpus index?</a>
+ <a href="/answers/rebuild-reference-corpus-index" class=""><span class="eyebrow">14</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">15</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">16</span>How do I reduce embedding API cost?</a>
<a href="/answers/local-embeddings-without-openai-api" class=""><span class="eyebrow">17</span>I want local search that works offline, no cloud embeddings. What are my options?</a>
diff --git a/scripts/seo/article_data.py b/scripts/seo/article_data.py
index 97948e210..4dce051b3 100644
--- a/scripts/seo/article_data.py
+++ b/scripts/seo/article_data.py
@@ -67,7 +67,11 @@ COMMAND_TOKEN_RE = re.compile(r"^-{1,2}[A-Za-z][A-Za-z0-9-]*(?:=.*)?$")
# through a command nobody can run. Check the binary before editing this.
# `share` added 2026-09-18 with the subcommand itself (`xerj share --help`,
# engine/crates/xerj-server/src/share.rs).
-XERJ_COMMANDS = frozenset({"index", "autoindex", "brain", "mcp", "share", "help", "version"})
+# `code` and `corpus` added 2026-09-21 with #977's port of the xc wrapper
+# scripts into the binary (engine/crates/xerj-autoindex/src/xc.rs).
+XERJ_COMMANDS = frozenset({
+ "index", "autoindex", "brain", "mcp", "share", "code", "corpus", "help", "version",
+})
SHELL_PRIMITIVES = frozenset({
"bash", "cd", "command", "curl", "env", "export", "git", "sh", "until", "wget",
})