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.

fix(init): tell agents in the hub skill that a one-word question needs `ask`

xerj-org70f23b55a969
diff --git a/engine/crates/xerj-autoindex/src/init.rs b/engine/crates/xerj-autoindex/src/init.rs
index f6169db60..d04762941 100644
--- a/engine/crates/xerj-autoindex/src/init.rs
+++ b/engine/crates/xerj-autoindex/src/init.rs
@@ -109,7 +109,8 @@ xerj "<question>"
One line. No corpus name, no clone, no index. XERJ picks the corpus (your project's dependencies
first), fetches its signed, pre-indexed pack on first use, and answers. Retrieval is lexical, not
-semantic: use the words and identifiers the source uses.
+semantic: use the words and identifiers the source uses. The bare form needs a space in the
+question; for a single word write `xerj ask "<word>"`.
A good answer is three lines, then any `warning:` lines:
@@ -632,6 +633,7 @@ mod tests {
"**LOCAL**",
"**NEITHER**",
r#"xerj "<question>""#,
+ r#"xerj ask "<word>""#,
"xerj ask --def <SYMBOL>",
"Stop only the node you started",
"Never `pkill xerj` or `killall xerj`",