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.

blog: Corpus Hub v2 (#1915)

xerj-orgfd915b76fa39
diff --git a/landing/blog/corpus-hub-v2.html b/landing/blog/corpus-hub-v2.html
new file mode 100644
index 000000000..c9fce7560
--- /dev/null
+++ b/landing/blog/corpus-hub-v2.html
@@ -0,0 +1,680 @@
+<!DOCTYPE html>
+<html lang="en" data-theme="day">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Corpus Hub v2: ask a question, get the one pack that answers</title>
+<meta name="description" content="Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.">
+<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&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+<link rel="stylesheet" href="/style.css?v=if9">
+<link rel="stylesheet" href="/blog.css?v=4">
+<!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+<link rel="canonical" href="https://xerj.org/blog/corpus-hub-v2">
+<meta property="og:site_name" content="XERJ.ai">
+<meta property="og:type" content="article">
+<meta property="og:title" content="Corpus Hub v2: ask a question, get the one pack that answers">
+<meta property="og:description" content="Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.">
+<meta property="og:url" content="https://xerj.org/blog/corpus-hub-v2">
+<meta property="og:image" content="https://xerj.org/og/blog-corpus-hub-v2.png">
+<meta property="og:image:width" content="1200">
+<meta property="og:image:height" content="630">
+<meta property="og:image:alt" content="Cover: “Corpus Hub v2” in display type beside the post’s square-matrix art, labelled with its figures. The art: a faint wall of 251 small tiles above 14 larger square-matrix tiles; a yellow route runs from the top into one yellow tile and down to a framed node">
+<meta property="og:locale" content="en_US">
+<meta name="twitter:card" content="summary_large_image">
+<meta name="twitter:title" content="Corpus Hub v2: ask a question, get the one pack that answers">
+<meta name="twitter:description" content="Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.">
+<meta name="twitter:image" content="https://xerj.org/og/blog-corpus-hub-v2.png">
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj"
+ ]
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "Article",
+ "headline": "Corpus Hub v2: ask a question, get the one pack that answers",
+ "description": "Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.",
+ "url": "https://xerj.org/blog/corpus-hub-v2",
+ "image": "https://xerj.org/og/blog-corpus-hub-v2.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-19",
+ "dateModified": "2026-10-19",
+ "author": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/blog/corpus-hub-v2"
+ }
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Blog",
+ "item": "https://xerj.org/blog/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "Corpus Hub v2"
+ }
+ ]
+}
+</script>
+<!-- seo:end -->
+</head>
+<body>
+<nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/">HOME</a>
+ <a href="/product">PRODUCT</a>
+ <span class="nav-drop"><a href="/use-cases">USE CASES</a></span>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/" class="active">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://hub.xerj.org" rel="external">HUB</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ <a href="https://x.com/xerj_org" rel="external" title="XERJ on X" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg></a>
+ <a href="https://discord.com/invite/yetXFusXfs" rel="external" title="XERJ on Discord" style="display:inline-flex;align-items:center"><svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.37a19.79 19.79 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.74 19.74 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.1 13.1 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.3 12.3 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.84 19.84 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg></a>
+ <span class="theme"><button type="button" data-theme="day" class="active">DAY</button><span class="dash">·</span><button type="button" data-theme="night">NIGHT</button></span>
+</nav>
+
+<main>
+<div class="uc-hero">
+ <p class="blog-crumb"><a href="/blog/">&larr; ALL POSTS · /BLOG</a></p>
+ <figure class="blog-cover"><img src="/blog/covers/corpus-hub-v2-hero.webp" width="1600" height="640" alt="Cover art: a faint wall of 251 small tiles above 14 larger square-matrix tiles; a yellow route runs from the top into one yellow tile and down to a framed node" fetchpriority="high" decoding="async"></figure>
+ <div class="uc-eyebrow">CORPUS HUB V2 · 3,663 CONTRIBUTORS · ROUTED · SIGNED · AS OF 2026-10-19</div>
+ <h1>CORPUS HUB V2: ASK THE QUESTION,<br><span class="accent">GET THE ONE PACK THAT ANSWERS IT</span></h1>
+ <p class="blog-byline">XERJ ENGINEERING · PUBLISHED 2026-10-19</p>
+
+ <p class="lede">As of 2026-10-19, <strong>3,663 developers</strong> have said yes. Each of them
+ agreed to let AI agents learn from a piece of their own work: a CUDA kernel fix in llama.cpp, a
+ Turkish translation for cc-switch, a compiler fix in rust-lang/rust, a streaming fix in Fabric.
+ Their repositories now wait in licence review as 3,659 corpora, next to the
+ <strong>513 corpora</strong> already live on <a href="https://hub.xerj.org" rel="external">hub.xerj.org</a>.
+ Hub v2 is how that shared memory reaches an agent. You type
+ <code class="inline">xerj "how does lz4 decompress a block"</code>, the CLI picks the right corpus
+ from a signed catalogue, pulls one pre-indexed <strong>4.4&nbsp;MB</strong> pack and answers on
+ your own machine: <strong>1.7 to 2.3&nbsp;seconds</strong> the first time, <strong>37 to
+ 57&nbsp;ms</strong> after that. Every number below was fetched or measured on 2026-10-19, and each
+ one comes with a URL or a command you can run yourself.</p>
+</div>
+
+<section class="scene-section">
+ <div class="kicker">01 · COMMUNITY</div>
+ <h2 class="scene">The community so far</h2>
+
+ <p>A corpus is only as good as the people who wrote the code in it. So before the CLI, here is
+ who showed up. These figures come from
+ <a href="https://hub.xerj.org/contributors/" rel="external">hub.xerj.org/contributors/</a>, the
+ hub's own APIs and the GitHub API, all read on the evening of 2026-10-19 (Pacific time).</p>
+
+ <div class="stat-band">
+ <div class="stat"><div class="v">3,663</div><div class="k">developers agreed</div><div class="s">3,663 repositories, each included with its author's permission, under its own licence, with attribution</div></div>
+ <div class="stat"><div class="v">3,659</div><div class="k">corpora from their work</div><div class="s">all in licence review; 70 people appear in more than one</div></div>
+ <div class="stat"><div class="v">3,861,407</div><div class="k">lines of selected commits</div><div class="s">summed over the 3,653 contributor cards that list a line count</div></div>
+ <div class="stat"><div class="v">513</div><div class="k">corpora live today</div><div class="s">11 domains, 78.6&nbsp;GB of pinned text, per the hub.xerj.org header</div></div>
+ </div>
+
+ <p>The contributor wall is sorted by the GitHub stars of the repository each person's work
+ landed in, so the top of the list doubles as a map of the projects developers care about most.
+ Here are the first ten, as listed tonight. The stars belong to the repository, not to the person,
+ and every one of these corpora is still in licence review:</p>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>#</th><th>contributor</th><th>selected work in</th><th>corpora</th><th>lines</th><th>GitHub ★ on repo</th><th>hub ★</th></tr></thead>
+ <tbody>
+ <tr><td class="n">1</td><td><a href="https://hub.xerj.org/contributors/NianJiuZst" rel="external">@NianJiuZst</a></td><td class="t">openclaw/openclaw</td><td class="n">1</td><td class="n">308</td><td class="n">392,443</td><td class="n">0</td></tr>
+ <tr><td class="n">2</td><td><a href="https://hub.xerj.org/contributors/abhay-2108" rel="external">@abhay-2108</a></td><td class="t">morluto/rea</td><td class="n">1</td><td class="n">882</td><td class="n">330,245</td><td class="n">0</td></tr>
+ <tr><td class="n">3</td><td><a href="https://hub.xerj.org/contributors/wellkilo" rel="external">@wellkilo</a></td><td class="t">affaan-m/ECC</td><td class="n">1</td><td class="n">2,822</td><td class="n">283,635</td><td class="n">0</td></tr>
+ <tr><td class="n">4</td><td><a href="https://hub.xerj.org/contributors/alkank" rel="external">@alkank</a></td><td class="t">farion1231/cc-switch</td><td class="n">1</td><td class="n">174</td><td class="n">146,199</td><td class="n">0</td></tr>
+ <tr><td class="n">5</td><td><a href="https://hub.xerj.org/contributors/edenfunf" rel="external">@edenfunf</a></td><td class="t">ggml-org/llama.cpp</td><td class="n">1</td><td class="n">399</td><td class="n">131,685</td><td class="n">0</td></tr>
+ <tr><td class="n">6</td><td><a href="https://hub.xerj.org/contributors/SrijanSriv" rel="external">@SrijanSriv</a></td><td class="t">Graphify-Labs/graphify</td><td class="n">1</td><td class="n">236</td><td class="n">128,746</td><td class="n">0</td></tr>
+ <tr><td class="n">7</td><td><a href="https://hub.xerj.org/contributors/fufesou" rel="external">@fufesou</a></td><td class="t">rustdesk/rustdesk</td><td class="n">1</td><td class="n">1,357</td><td class="n">126,303</td><td class="n">0</td></tr>
+ <tr><td class="n">8</td><td><a href="https://hub.xerj.org/contributors/paradoxicalguy" rel="external">@paradoxicalguy</a></td><td class="t">rust-lang/rust</td><td class="n">1</td><td class="n">291</td><td class="n">120,578</td><td class="n">0</td></tr>
+ <tr><td class="n">9</td><td><a href="https://hub.xerj.org/contributors/bilashcse" rel="external">@bilashcse</a></td><td class="t">axios/axios</td><td class="n">1</td><td class="n">342</td><td class="n">109,298</td><td class="n">0</td></tr>
+ <tr><td class="n">10</td><td><a href="https://hub.xerj.org/contributors/MeAkib" rel="external">@MeAkib</a></td><td class="t">angular/angular</td><td class="n">1</td><td class="n">265</td><td class="n">101,110</td><td class="n">0</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>Hub stars are the ones visitors give on the hub itself, and that count is brand new. Across
+ the whole hub there are <strong>3</strong> as of 2026-10-20: one on
+ <a href="https://hub.xerj.org/contributors/ksylvan" rel="external">@ksylvan</a>'s profile, one on
+ <a href="https://hub.xerj.org/contributors/hosseinkarami-dev" rel="external">@hosseinkarami-dev</a>'s,
+ and the first one on a corpus, vuln-fix-commits. If someone's fix saved you an afternoon, their page has a star button.
+ The project repository, <a href="https://github.com/xerj-org/xerj" rel="external">xerj-org/xerj</a>,
+ stood at 10,671 GitHub stars and 637 forks on 2026-10-20, with 60 accounts credited as code contributors.</p>
+
+ <p>Three different numbers describe "how many corpora", and each one answers a different
+ question:</p>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>what lives where, checked 2026-10-19 (Releases re-counted 2026-10-20)</th><th>count</th><th>source</th></tr></thead>
+ <tbody>
+ <tr><td class="t">corpora listed as live in the registry</td><td class="n">513</td><td class="t">hub.xerj.org header (11 domains, 550 registry rows, 78.6&nbsp;GB pinned text)</td></tr>
+ <tr><td class="t">corpora with a signed v2 pack on GitHub Releases</td><td class="n">251</td><td class="t">distinct slugs among published <code class="inline">*.hubpack.tar.zst</code> assets; builds are still landing, so this keeps climbing</td></tr>
+ <tr><td class="t">corpora in the signed catalogue <code class="inline">xerj ask</code> routes over</td><td class="n l">14</td><td class="t">catalogue generated 2026-10-18 02:13 UTC, 1.3&nbsp;MB</td></tr>
+ <tr><td class="t">corpora built from contributors' repositories</td><td class="n">3,659</td><td class="t">hub.xerj.org/contributors/, all in licence review</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>The catalogue row is the one that limits <code class="inline">xerj ask</code> today. Pack builds
+ have run ahead of it, so a corpus can have a signed pack on Releases and stay invisible to the
+ router until the catalogue is regenerated. That gap, 14 against 251, is the one to close.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">02 · ASK</div>
+ <h2 class="scene">Ask without naming a corpus</h2>
+
+ <p>The launch post ended on a promise: "the pre-indexed half &mdash; a corpus you mount instead
+ of indexing". This is it. CI builds each pack, indexes it, signs it and attaches it to a GitHub
+ Release. Your machine restores those indices as they are. No clone, no indexer. Here is a fresh
+ install with an empty cache and no node running:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how does lz4 decompress a block"
+xerj hub: no node answers at http://localhost:9200; starting a local node on port 9300 (data: ~/.xerj/hub/node, log: ~/.xerj/hub/node.log)
+xerj hub: node ready on port 9300 (pid 1626207)
+xerj hub: pulling 'lz4' (4.4 MB) — one-time download, later questions answer locally
+xerj hub: pulled lz4 0774d055 4623814 → 4 indices, 1702 definitions
+lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/doc/lz4_Block_format.md:0
+...
+lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4frame.h:572
+LZ4F_decompress_usingDict(LZ4F_dctx* dctxPtr,
+...
+answered from: local pack
+warning: approach-only licence (mixed: BSD-2 (lib) / GPL-2.0+ (rest)): read, do not copy</pre>
+
+ <p>Every hit names its corpus, pin date, licence and file path. lz4 is GPL-2.0+ outside
+ <code class="inline">lib/</code>, so the CLI marks it approach-only and says "read, do not copy".
+ For an exact symbol, <code class="inline">--def</code> skips ranking and reads the definition
+ table built with the pack:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj ask --def LZ4_compress_fast
+lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4.c:1462
+int LZ4_compress_fast(const char* src, char* dest, int srcSize, int dstCapacity, int acceleration)
+lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4.h:236
+LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration);
+answered from: local pack</pre>
+
+ <p>One flaw is right there in the first transcript: the top hit is cited at line
+ <code class="inline">0</code>. Prose files in rc.97 lose their line numbers. The fix for the
+ same bug in <code class="inline">xerj code</code> (#1892, fixed by #1908) reached main on
+ 2026-10-19, after rc.97 shipped, and we have not re-run these transcripts against it.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">03 · EXAMPLES</div>
+ <h2 class="scene">Four more questions, four more corpora</h2>
+
+ <p>Same rc.97 binary, same fresh scratch HOME, run on 2026-10-19. Each question named no corpus;
+ the router picked one and the CLI pulled it on first use. Output is real and trimmed with
+ <code class="inline">...</code>.</p>
+
+ <p><strong>Alertmanager.</strong> A how-question about grouping lands on the dispatcher function
+ that does the grouping:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how does alertmanager group alerts before sending notifications"
+xerj hub: pulling 'alertmanager' (13.3 MB) — one-time download, later questions answer locally
+xerj hub: pulled alertmanager 55b27cfb 13937896 → 3 indices, 4725 definitions
+alertmanager pin 2026-10-13 (7 days old) Apache-2.0 alertmanager/docs/alertmanager.md:1
+...
+It takes care of deduplicating, grouping, and routing
+them to the correct receiver integration such as email, PagerDuty, or OpsGenie.
+...
+alertmanager pin 2026-10-13 (7 days old) Apache-2.0 alertmanager/dispatch/dispatch.go:440
+func (d *Dispatcher) groupAlert(ctx context.Context, alrt *alert.Alert, route *Route) {
+...
+ groupLabels := getGroupLabels(alrt, route)
+
+ fp := groupLabels.Fingerprint()
+...
+answered from: local pack</pre>
+
+ <p><strong>Avro.</strong> Schema evolution, answered from two language bindings at once:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how does avro resolve schema evolution between writer and reader"
+xerj hub: pulling 'avro' (21.8 MB) — one-time download, later questions answer locally
+xerj hub: pulled avro 28cb08c1 22902146 → 21 indices, 22064 definitions
+avro pin 2026-10-13 (7 days old) Apache-2.0 avro/lang/c/src/avro/resolver.h:64
+avro_resolved_writer_new(avro_schema_t writer_schema,
+ avro_schema_t reader_schema);
+...
+avro pin 2026-10-13 (7 days old) Apache-2.0 avro/lang/java/avro/src/main/java/org/apache/avro/Resolver.java:36
+public class Resolver {
+ /**
+ * Returns a {@link Resolver.Action} tree for resolving the writer schema
+ * &lt;tt&gt;writer&lt;/tt&gt; and the reader schema &lt;tt&gt;reader&lt;/tt&gt;.
+...
+answered from: local pack</pre>
+
+ <p><strong>Snappy.</strong> "How does it find matches" goes straight to the compression loop
+ and the unit test that pins it down:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how does snappy find matches"
+xerj hub: pulling 'snappy' (10.8 MB) — one-time download, later questions answer locally
+xerj hub: pulled snappy 9c28114a 11338487 → 4 indices, 382 definitions
+snappy pin 2026-10-02 (18 days old) BSD-3-Clause snappy/snappy.cc:812
+char* CompressFragment(const char* input, size_t input_size, char* op,
+ uint16_t* table, const int table_size) {
+...
+snappy pin 2026-10-02 (18 days old) BSD-3-Clause snappy/snappy_unittest.cc:1025
+TEST(Snappy, FindMatchLength) {
+ // Exercise all different code paths through the function.
+...
+answered from: local pack</pre>
+
+ <p><strong>zstd, then a symbol.</strong> The question finds the level API; a
+ <code class="inline">--def</code> lookup then pins the definition:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how does zstd choose a compression level"
+xerj hub: pulling 'zstd' (20.1 MB) — one-time download, later questions answer locally
+xerj hub: pulled zstd 01b7154f 21038204 → 8 indices, 7874 definitions
+zstd pin 2026-10-02 (18 days old) mixed: BSD-3 (lib) / GPL-2.0 (cli) zstd/lib/zstd.h:264
+ZSTDLIB_API int ZSTD_defaultCLevel(void); /*!&lt; default compression level, specified by ZSTD_CLEVEL_DEFAULT, requires v1.5.0+ */
+...
+<span class="prompt">$</span> xerj ask --def ZSTD_defaultCLevel
+zstd pin 2026-10-02 (18 days old) mixed: BSD-3 (lib) / GPL-2.0 (cli) zstd/lib/compress/zstd_compress.c:8207
+int ZSTD_defaultCLevel(void)
+...
+answered from: local pack
+warning: approach-only licence (mixed: BSD-3 (lib) / GPL-2.0 (cli)): read, do not copy</pre>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>step (xerj v1.0.0-rc.97, Linux, isolated HOME, 2026-10-19)</th><th>wall clock</th><th>runs</th></tr></thead>
+ <tbody>
+ <tr><td class="t">lz4, first question, cold: node start, catalogue, 4.4&nbsp;MB pull, answer</td><td class="n">1.72&ndash;2.27&nbsp;s</td><td class="n">4</td></tr>
+ <tr><td class="t">lz4, the same question again, pack cached</td><td class="n w">37&ndash;57&nbsp;ms</td><td class="n">11</td></tr>
+ <tr><td class="t"><code class="inline">--def LZ4_compress_fast</code> &rarr; <code class="inline">lz4.c:1462</code></td><td class="n w">21&ndash;25&nbsp;ms</td><td class="n">4</td></tr>
+ <tr><td class="t">alertmanager question, pack cached</td><td class="n w">54&ndash;122&nbsp;ms</td><td class="n">3</td></tr>
+ <tr><td class="t">avro question, pack cached</td><td class="n w">62&ndash;65&nbsp;ms</td><td class="n">3</td></tr>
+ <tr><td class="t"><code class="inline">--def ZSTD_defaultCLevel</code> and <code class="inline">--def groupAlert</code></td><td class="n w">27&ndash;39&nbsp;ms</td><td class="n">6</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>Not every answer is this sharp. "How does astro render islands" pulled the astro pack and
+ came back with an error definition, the config types and three test files cited at line 0, not
+ the island renderer itself. Ranking a prose question against framework code still needs work.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">04 · ROUTING</div>
+ <h2 class="scene">Ambiguous questions come back as a choice</h2>
+
+ <p>The router does not guess between two plausible corpora. Ask about two compressors at once
+ and it hands the decision back:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "lz4 or snappy decompression speed"
+more than one corpus matches; re-run with --corpus &lt;slug&gt;
+lz4 — an agent needing fast block compression queries this for the block format and decoder loop
+snappy — an agent needing cheap compression queries this for the format and the reference encoder decisions
+<span class="prompt">$</span> echo $?
+4</pre>
+
+ <p>Exit 4 already means "needs a decision" in <code class="inline">xerj autoindex</code>, so a
+ wrapper can turn it into a question for the user. When nothing clears the bar, the CLI exits 1
+ and names the nearest corpora:</p>
+
+ <pre class="code"><span class="prompt">$</span> xerj "how do I run a github actions workflow locally"
+no hub corpus matches; see xerj.org/llms.txt
+closest corpora: act, astro, agentops; re-run with --corpus &lt;slug&gt; to ask one of them</pre>
+
+ <p>That one is a miss, and we left it in on purpose. <code class="inline">act</code> exists for
+ exactly this question; the router ranked it first but not confidently enough to answer. The
+ threshold is ours to fix.</p>
+
+ <p>Exit 1 used to hide a third case: hub unreachable, an HTML page where the signed catalogue
+ should be, or <code class="inline">--offline</code> with nothing cached. An agent reading exit
+ codes took that as "the hub has no answer" and fell back to memory. A fresh-user run hit it on
+ 2026-10-19 (<a href="https://github.com/xerj-org/xerj/issues/1904" rel="external">#1904</a>), and
+ <a href="https://github.com/xerj-org/xerj/pull/1905" rel="external">PR #1905</a>, merged to main
+ the same day, gives it its own code. rc.97 still exits 1.</p>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>exit</th><th>meaning</th></tr></thead>
+ <tbody>
+ <tr><td class="n">0</td><td class="t">answered, at least one hit</td></tr>
+ <tr><td class="n">1</td><td class="t">no match, or nothing to answer from (closest corpora are named)</td></tr>
+ <tr><td class="n">2</td><td class="t">usage error or unknown <code class="inline">--corpus</code></td></tr>
+ <tr><td class="n">3</td><td class="t">a pulled pack failed SHA-256, signature or format verification</td></tr>
+ <tr><td class="n">4</td><td class="t">ambiguous: candidates printed, re-run with <code class="inline">--corpus &lt;slug&gt;</code></td></tr>
+ <tr><td class="n">5</td><td class="t">this build has no hub public key, so nothing is downloaded</td></tr>
+ <tr><td class="n w">6</td><td class="t w">the hub catalogue cannot be loaded (on main since #1905; rc.97 still exits 1)</td></tr>
+ </tbody>
+ </table>
+ </div>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">05 · CONTRIBUTORS</div>
+ <h2 class="scene">A page for every contributor</h2>
+
+ <p>Every corpus is somebody's work, so every contributor gets a page that shows exactly what was
+ selected and where it goes. Here is the text of
+ <a href="https://hub.xerj.org/contributors/edenfunf" rel="external">@edenfunf</a>'s page as it
+ rendered on 2026-10-19, trimmed:</p>
+
+ <pre class="code">@edenfunf
+Corpus Hub contributor since 2026-10-10
+1 corpus · 1 selected commit · 3 files · 399 lines
+★ 131,685 GitHub stars on repo · ★ 0 hub stars
+
+Selected work
+ggml-org/llama.cpp fda1866613
+CUDA: fix norm family kernels when ne[2]/ne[3] exceed grid dim limits…
+3 files · 399 lines · CUDA, C++ · ggml, tests
+selected · in licence review · corpus ggml-org--llama-cpp · MIT · agreed 2026-10-10
+Not installable yet ... It becomes installable when this card says live in the hub.</pre>
+
+ <p>The page is upfront about what you cannot do yet: until licence review passes,
+ <code class="inline">xerj corpus add</code> and <code class="inline">xerj ask</code> cannot fetch
+ that corpus. One commit can feed several corpora.
+ <a href="https://hub.xerj.org/contributors/ksylvan" rel="external">@ksylvan</a>'s single Fabric
+ commit (<code class="inline">aa3e1727b7</code>, 29 files, 1,055 lines of Go) appears in 2, and the
+ totals count it once. Each profile carries a README badge at
+ <code class="inline">/contributors/&lt;login&gt;/badge.svg</code> and prints how to leave: reply
+ to the permission email or open an issue.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">06 · SIGNALS</div>
+ <h2 class="scene">Human stars and agent scores, kept apart</h2>
+
+ <p>A corpus page carries two signals and never blends them. Hub stars are people clicking a star.
+ The agent score comes from structured reviews agents send after using a corpus, through
+ <code class="inline">xerj hub pull</code>, MCP queries or the
+ <code class="inline">xerj_corpus_feedback</code> tool. A review rates usefulness from 1 to 5, says
+ whether the answer was found (yes, partial or no) and how fresh the corpus felt, and can name a
+ coverage gap or flag a problem: error, slow, stale or wrong. The rules are printed on every corpus
+ page:</p>
+
+ <ul>
+ <li>The score is a Bayesian mean of usefulness with a prior of 3.0 at weight 5, so a handful of
+ glowing reviews cannot lift a corpus far.</li>
+ <li>One voice per installation, per corpus, per week. Reviewers with abnormal volume are
+ dropped.</li>
+ <li>A coverage gap is shown only once 3 or more agents report the same one.</li>
+ </ul>
+
+ <p>Here is the score for <a href="https://hub.xerj.org/corpus/zstd" rel="external">zstd</a>
+ tonight, and the hub-wide list:</p>
+
+ <pre class="code"><span class="prompt">$</span> curl -s "https://hub.xerj.org/api/corpus-feedback?corpus=zstd"
+{"ok":true,"enabled":true,"corpus":"zstd","reviews":0,"score":null,"raw_mean":null,
+ "confidence":"none","prior":{"mean":3,"weight":5},"found":{"yes":0,"partial":0,"no":0,"rate":null},
+ "freshness_median":null,"families":[],"coverage_gaps":[],
+ "problems":{"error":0,"slow":0,"stale":0,"wrong":0},"agent_reviews":0,"pull_reports":0,
+ "dropped_outliers":0,"k_min":3,"window_weeks":26}
+<span class="prompt">$</span> curl -s "https://hub.xerj.org/api/corpus-feedback"
+{"ok":true,"enabled":true,"prior":{"mean":3,"weight":5},"scores":{}}</pre>
+
+ <p>No corpus has an agent score yet. The page shows that as empty instead of inventing a
+ starting rating, and the first agent review will be the first real data point.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">07 · TRAFFIC</div>
+ <h2 class="scene">Traffic and usage on every corpus page</h2>
+
+ <p>Each corpus page has a traffic panel modelled on GitHub's, covering the last 14 days in UTC:
+ views and unique views (crawlers excluded, uniques by a hash salted with the day), pulls,
+ hosted-hub searches, requests per agent family, and referring sites once a site has sent 3 views.
+ Pulls are the growth in the GitHub Release download count for that corpus's pack, our own
+ verification downloads included. It is one JSON call:</p>
+
+ <pre class="code"><span class="prompt">$</span> curl -s "https://hub.xerj.org/api/hub-traffic?corpus=act"
+{..."totals":{"views":9,"unique_views":8,"pulls":1,"pulls_unique":null,"searches":0},
+ "pulls_since":"2026-10-20","recording_since":"2026-10-19",
+ "agents":[{"family":"curl","count":9}],"referrers":[]}</pre>
+
+ <p>Nine views, all from curl, and most of them were us writing this post. Recording began on
+ 2026-10-19, so every corpus starts near zero.</p>
+
+ <p>Below that sits agent usage: requests over 7 and 30 days, agent families, top topics and the
+ most common query templates. A template swaps identifiers, versions, paths, numbers and quoted
+ text for placeholders, appears only after 3 sightings in 30 days, and raw queries are never
+ published. Only requests to the hosted hub API (<code class="inline">hub.xerj.org/api/v1/code</code>
+ and <code class="inline">/def</code>) count. A question answered on your own node never leaves
+ your machine, so <code class="inline">xerj ask</code> with a cached pack never shows up here.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">08 · SIGN IN</div>
+ <h2 class="scene">Sign in with GitHub or Hugging Face</h2>
+
+ <p>Everything above is public. Signing in through
+ <a href="https://hub.xerj.org/auth/github/login" rel="external">/auth/github/login</a> or
+ <a href="https://hub.xerj.org/auth/hf/login" rel="external">/auth/hf/login</a> (standard OAuth,
+ PKCE on both) opens the detail behind it: a corpus page adds its pack builds, pin history, source
+ pins, review records and signing; a contributor page adds every selected commit in full, with
+ commit date, folders, review state and pin. Usage detail needs a session too; without one the
+ usage API answers <code class="inline">"detail_requires_signin":true</code>.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">09 · FIELD REPORTS</div>
+ <h2 class="scene">Field reports that turn into fixes</h2>
+
+ <p>After an agent installs or uses XERJ, the CLI sends a short field report: what the agent
+ pointed XERJ at, what it used it for, and its verdict. It arrives as a GitHub pull request adding
+ one Markdown file under
+ <a href="https://github.com/xerj-org/xerj/tree/main/user-feedback/16-agent-field-reports" rel="external"><code class="inline">user-feedback/16-agent-field-reports/</code></a>,
+ forking first when the account cannot push. Only when GitHub is unavailable does it fall back to
+ <code class="inline">POST https://xerj.org/api/field-report</code>, which files an issue.
+ <code class="inline">--disable-feedback</code> or <code class="inline">XERJ_DISABLE_FEEDBACK=true</code>
+ turns it off. Whether an agent should send one without asking its user first is open in
+ <a href="https://github.com/xerj-org/xerj/issues/1896" rel="external">#1896</a>; the opt-out works
+ either way.</p>
+
+ <p>As of 2026-10-19, main holds 40 reports in that folder, and 12 more came in through the API
+ fallback as issues titled "Agent field report (API)". One full loop: several reports flagged a
+ stray backslash in the MCP registration text that <code class="inline">xerj init</code> prints.
+ Issue <a href="https://github.com/xerj-org/xerj/issues/1838" rel="external">#1838</a> was opened
+ from them on 2026-10-19, and <a href="https://github.com/xerj-org/xerj/pull/1848" rel="external">PR #1848</a>
+ fixed the three format strings and closed it at 23:34 UTC the same day. A small bug, reported by
+ agents who had no other way to tell us, and fixed before the day was out.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">10 · HOW IT WORKS</div>
+ <h2 class="scene">How it works</h2>
+
+ <p><strong>The catalogue.</strong> <a href="https://hub.xerj.org/api/v1/catalogue.json" rel="external"><code class="inline">hub.xerj.org/api/v1/catalogue.json</code></a>
+ is one JSON file with a detached ed25519 signature beside it in
+ <code class="inline">catalogue.json.sig</code>. The CLI fetches it with
+ <code class="inline">If-None-Match</code> and verifies the signature before new bytes may replace
+ its cache; on any network or verification failure it keeps the last good copy. Each entry holds
+ the slug, domain, topics, a one-sentence <code class="inline">ask_for</code>,
+ <code class="inline">dependency_names</code>, the licence (SPDX plus class), the pin SHA and date,
+ the pack URL, size, SHA-256 and signature URL, and a <code class="inline">term_sketch</code>.</p>
+
+ <p><strong>Routing.</strong> The router reads only that metadata plus two things on your disk:
+ the dependency names in your <code class="inline">Cargo.lock</code>,
+ <code class="inline">package.json</code> or <code class="inline">go.mod</code>, and the packs you
+ already have cached. The term sketch is a Bloom filter over the corpus's terms, built with 7
+ hashes. A Bloom filter never gives a false negative, so when the sketch rules out a word in your
+ question, that corpus drops out without a download. A declared dependency is the strongest
+ evidence a corpus can earn. Corpora whose licence class is <code class="inline">excluded</code>
+ are removed before routing starts: never picked, never offered, never named as closest.</p>
+
+ <p><strong>The pack.</strong> A confident pick downloads that one pack from GitHub Releases,
+ checks its SHA-256 and signature (a failure is exit 3) and restores its pre-built indices into a
+ node. If nothing answers on <code class="inline">localhost:9200</code>, the CLI starts its own on
+ port 9300, and <code class="inline">xerj hub stop</code> stops that process and no other. The hub
+ serves the catalogue, the web pages and a few small JSON APIs; the search runs on your node. A
+ hosted switch exists (<code class="inline">xerj hub config hosted on|off|auto</code>), but no
+ hosted client ships in the CLI yet (checked in rc.97 and on main, 2026-10-19), so every
+ <code class="inline">xerj ask</code> answer today is computed on your machine.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">11 · GETTING STARTED</div>
+ <h2 class="scene">Getting started</h2>
+
+ <p>Install the CLI, then ask. The first question starts the node and pulls the pack; later ones
+ answer from the cache:</p>
+
+ <pre class="code"><span class="prompt">$</span> curl -fsSL https://xerj.org/get | sh
+<span class="prompt">$</span> export PATH="$HOME/.local/bin:$PATH"
+<span class="prompt">$</span> xerj "how does lz4 decompress a block"
+<span class="prompt">$</span> xerj "how does alertmanager group alerts before sending notifications"
+<span class="prompt">$</span> xerj ask --def LZ4_compress_fast
+<span class="prompt">$</span> xerj ask --corpus snappy "how does snappy find matches"
+<span class="prompt">$</span> xerj hub status
+<span class="prompt">$</span> xerj hub stop</pre>
+
+ <p><code class="inline">xerj hub status</code> lists cached packs with age and size, plus the
+ node, the hosted setting and the catalogue age. Add <code class="inline">--offline</code> to stay
+ on cached packs, <code class="inline">--no-fetch</code> to forbid downloads and
+ <code class="inline">--json</code> when an agent parses the answer.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">12 · NEXT STEPS</div>
+ <h2 class="scene">Next steps</h2>
+
+ <ul>
+ <li>Add your own work next to the 3,663 who already did:
+ <a href="https://hub.xerj.org/contribute" rel="external">hub.xerj.org/contribute</a>.</li>
+ <li>Browse the corpora, contributor pages and agent scores at
+ <a href="https://hub.xerj.org" rel="external">hub.xerj.org</a>, and star the people whose
+ code you learn from.</li>
+ <li>Read the <a href="/docs/corpus-hub">Corpus Hub docs</a> and the implementation plan,
+ <a href="https://github.com/xerj-org/xerj/blob/main/docs/CORPUS_HUB_V2_IMPLEMENTATION.md" rel="external">CORPUS_HUB_V2_IMPLEMENTATION.md</a>.</li>
+ <li>Propose a corpus by pull request against the
+ <a href="https://github.com/xerj-org/xerj/tree/corpus-hub" rel="external"><code class="inline">corpus-hub</code></a>
+ branch on <a href="https://github.com/xerj-org/xerj" rel="external">GitHub</a>.</li>
+ <li>Tell us where routing picked wrong on <a href="https://discord.com/invite/yetXFusXfs" rel="external">Discord</a>,
+ or follow releases on <a href="https://x.com/xerj_org" rel="external">X</a>.</li>
+ </ul>
+</section>
+</main>
+
+<!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+<nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARISONS</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">RESOURCES</span>
+ <a href="/resources/">SALES KIT</a>
+ <a href="/blog/">BLOG</a>
+ <a href="/brand">BRAND</a>
+ <a href="/brandbook/">BRAND BOOK</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+</nav>
+<!-- seo:footer-end -->
+<footer class="footer">
+ <span>XERJ.AI · V1.0.0-RC.97 · 2026</span>
+ <span>SEARCH FOR THE AGENT ERA</span>
+ <span><a href="/product">PRODUCT</a> · <a href="/docs/">DOCS</a> · <a href="/brand">BRAND</a> · <a href="/playground">DASHBOARDS</a> &middot; <a href="/llms.txt">LLMS.TXT</a></span>
+</footer>
+
+<script>
+ (function () {
+ const root = document.documentElement;
+ for (const btn of document.querySelectorAll('[data-theme]')) {
+ btn.addEventListener('click', () => {
+ const t = btn.getAttribute('data-theme');
+ root.setAttribute('data-theme', t);
+ for (const b of document.querySelectorAll('[data-theme]')) {
+ b.classList.toggle('active', b.getAttribute('data-theme') === t);
+ }
+ });
+ }
+ })();
+</script>
+
+</body>
+</html>
diff --git a/landing/blog/covers/corpus-hub-v2-hero.webp b/landing/blog/covers/corpus-hub-v2-hero.webp
new file mode 100644
index 000000000..6fbc8c703
Binary files /dev/null and b/landing/blog/covers/corpus-hub-v2-hero.webp differ
diff --git a/landing/blog/covers/corpus-hub-v2-thumb.webp b/landing/blog/covers/corpus-hub-v2-thumb.webp
new file mode 100644
index 000000000..36d014fab
Binary files /dev/null and b/landing/blog/covers/corpus-hub-v2-thumb.webp differ
diff --git a/landing/blog/index.html b/landing/blog/index.html
index 816cd12f5..96b4dd71b 100644
--- a/landing/blog/index.html
+++ b/landing/blog/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XERJ.ai — Blog: the engineering log</title>
-<meta name="description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta name="description" content="Measured results with the losses left in: Corpus Hub v2 and xerj ask, the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<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">
@@ -16,7 +16,7 @@
<meta property="og:site_name" content="XERJ.ai">
<meta property="og:type" content="website">
<meta property="og:title" content="XERJ.ai — Blog: the engineering log">
-<meta property="og:description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta property="og:description" content="Measured results with the losses left in: Corpus Hub v2 and xerj ask, the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<meta property="og:url" content="https://xerj.org/blog/">
<meta property="og:image" content="https://xerj.org/og/xerj-card.png">
<meta property="og:image:width" content="1200">
@@ -25,7 +25,7 @@
<meta property="og:locale" content="en_US">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="XERJ.ai — Blog: the engineering log">
-<meta name="twitter:description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta name="twitter:description" content="Measured results with the losses left in: Corpus Hub v2 and xerj ask, the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
<script type="application/ld+json">
{
@@ -59,7 +59,7 @@
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "XERJ.ai — Blog: the engineering log",
- "description": "Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
+ "description": "Measured results with the losses left in: Corpus Hub v2 and xerj ask, the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
"url": "https://xerj.org/blog/",
"image": "https://xerj.org/og/xerj-card.png",
"inLanguage": "en",
@@ -129,6 +129,24 @@
<!-- Reverse-chronological by hand while there is one post; new posts PREPEND.
Move to a generator only past ~10 posts. -->
<ol class="blog-list">
+ <li>
+ <a class="bl-card" href="/blog/corpus-hub-v2">
+ <img class="bl-thumb" src="/blog/covers/corpus-hub-v2-thumb.webp" width="640" height="336" alt="Cover art: a faint wall of 251 small tiles above 14 larger square-matrix tiles; a yellow route runs from the top into one yellow tile and down to a framed node" loading="lazy" decoding="async">
+ <div class="bl-meta">
+ <p class="bl-date"><time datetime="2026-10-19">2026-10-19</time> · CORPUS HUB · XERJ ASK</p>
+ <h2 class="bl-title">Corpus Hub v2: ask the question, get the one pack that answers it</h2>
+ <p class="bl-excerpt">Type a question and <code>xerj</code> picks the corpus from a signed
+ catalogue, pulls that one pre-indexed pack (lz4: <strong>4.4 MB</strong>) and answers on your
+ machine: <strong>1.7 to 2.3 s</strong> cold, <strong>37 to 57 ms</strong> warm. Ambiguous
+ questions come back as a choice (exit 4), and a dead hub now has its own code (exit 6). The hub
+ site gained contributor pages, agent scores kept apart from human stars, per-corpus traffic and
+ field reports that become PRs. The routing miss we hit, and the catalogue lagging the packs
+ (<strong>14</strong> routable of <strong>251</strong> built), are in the post.</p>
+ <p class="bl-byline">AUTHOR · XERJ ENGINEERING TEAM · PUBLISHED · 2026-10-19</p>
+ <span class="bl-read">READ THE POST &rarr;</span>
+ </div>
+ </a>
+ </li>
<li>
<a class="bl-card" href="/blog/the-exploit-hub">
<img class="bl-thumb" src="/blog/covers/the-exploit-hub-thumb.webp" width="640" height="336" alt="Cover art: a network of small square nodes; a yellow hub linked to 36 yellow nodes, an ink node with one link, and an empty square frame with none" loading="lazy" decoding="async">
diff --git a/landing/index.html b/landing/index.html
index 08e77ccfc..ba724208b 100644
--- a/landing/index.html
+++ b/landing/index.html
@@ -474,19 +474,37 @@ $ curl -sXPOST localhost:9200/_memory/agent-demo/_recall \
instead of taking it.
</p>
- <div class="recipes" style="grid-template-columns:repeat(2,1fr); margin-top:var(--sp-6);">
- <a class="recipe" href="/blog/jev-vs-a-bm25-vote">
- <span class="num">2026-09-22 · BENCHMARKS · DECISIONS</span>
- <span class="title">A BM25 vote ties Jev on spam and beats it on intent</span>
- <p class="lead">Five hundred decisions each on two public datasets. A statistical tie on
- spam, a nine-point win on 77-way intent at zero marginal cost, and one dataset where Jev
- beats us outright.</p>
+ <!-- Newest three posts, same order and thumbnails as /blog/ (covers from
+ scripts/seo/blog_covers/). Update when a post is published. -->
+ <style>
+ #blog .home-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-6); }
+ #blog .home-posts .recipe { gap: var(--sp-3); }
+ #blog .home-posts img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 336;
+ border: 1px solid var(--z-line); background: #f6f4ee; }
+ #blog .home-posts .num { color: var(--z-mute); }
+ #blog .home-posts .lead { font-size: 15px; line-height: 1.55; }
+ #blog .home-posts .recipe:hover img { border-color: var(--z-accent); }
+ @media (max-width: 900px) { #blog .home-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
+ @media (max-width: 600px) { #blog .home-posts { grid-template-columns: minmax(0, 1fr); } }
+ </style>
+ <div class="recipes home-posts">
+ <a class="recipe" href="/blog/corpus-hub-v2">
+ <img src="/blog/covers/corpus-hub-v2-thumb.webp" width="640" height="336" alt="Cover art: a faint wall of 251 small tiles above 14 larger square-matrix tiles; a yellow route runs from the top into one yellow tile and down to a framed node" loading="lazy" decoding="async">
+ <span class="num">2026-10-19 · CORPUS HUB · XERJ ASK</span>
+ <span class="title">Corpus Hub v2: ask the question, get the one pack that answers it</span>
+ <p class="lead">Type a question and <code>xerj</code> picks the corpus from a signed catalogue, pulls that one pre-indexed pack (lz4: 4.4&nbsp;MB) and answers on your machine: 1.7 to 2.3&nbsp;s cold, 37 to 57&nbsp;ms warm.</p>
</a>
- <a class="recipe" href="/blog/does-xerj-beat-jev">
- <span class="num">2026-09-21 · BENCHMARKS · RERANKING</span>
- <span class="title">Does XERJ beat JEV? On the bill, outright. On FiQA, no.</span>
- <p class="lead">1,271 judged BEIR queries. The hosted judge wins SciFact and FiQA, our
- local hybrid keeps NFCorpus, and the rerank run billed $0.6375 against our zero.</p>
+ <a class="recipe" href="/blog/the-exploit-hub">
+ <img src="/blog/covers/the-exploit-hub-thumb.webp" width="640" height="336" alt="Cover art: a network of small square nodes; a yellow hub linked to 36 yellow nodes, an ink node with one link, and an empty square frame with none" loading="lazy" decoding="async">
+ <span class="num">2026-10-08 · CYBER-EXPLOITS CORPUS · EVAL</span>
+ <span class="title">The exploit hub, tested on three fresh CVEs</span>
+ <p class="lead">One query over 1.09 million PoC documents named the exact route and field for CVE-2026-23744; the third case proved the corpus adds nothing when its stratum is empty, and we count it.</p>
+ </a>
+ <a class="recipe" href="/blog/eval-scars-from-agent-memory">
+ <img src="/blog/covers/eval-scars-from-agent-memory-thumb.webp" width="640" height="336" alt="Cover art: six clusters of diagonal scratch marks made of small squares, five in ink and one in yellow" loading="lazy" decoding="async">
+ <span class="num">2026-10-07 · GUEST · AGENT MEMORY · EVAL</span>
+ <span class="title">Six eval scars from a production agent-memory system</span>
+ <p class="lead">Chunxiao Wang (Assay / nautilus-compass) on six patterns that each cost a real failure, from topic slicing to the masking bug that scores every query zero.</p>
</a>
</div>
diff --git a/landing/og/blog-corpus-hub-v2.png b/landing/og/blog-corpus-hub-v2.png
new file mode 100644
index 000000000..98427862e
Binary files /dev/null and b/landing/og/blog-corpus-hub-v2.png differ
diff --git a/landing/sitemap.xml b/landing/sitemap.xml
index da4e2bb25..40e03946b 100644
--- a/landing/sitemap.xml
+++ b/landing/sitemap.xml
@@ -336,6 +336,10 @@
<loc>https://xerj.org/blog/</loc>
<lastmod>2026-10-20</lastmod>
</url>
+ <url>
+ <loc>https://xerj.org/blog/corpus-hub-v2</loc>
+ <lastmod>2026-10-20</lastmod>
+ </url>
<url>
<loc>https://xerj.org/blog/cutting-the-index-28-percent</loc>
<lastmod>2026-10-20</lastmod>
diff --git a/scripts/seo/pagedata.py b/scripts/seo/pagedata.py
index 6e90e74c4..60482fbd0 100755
--- a/scripts/seo/pagedata.py
+++ b/scripts/seo/pagedata.py
@@ -200,11 +200,30 @@ PAGES: dict[str, dict[str, str]] = {
og_image="og/blog-the-exploit-hub.png",
og_image_alt="Cover: “The exploit hub, tested on three fresh CVEs” in display type beside the post’s square-matrix art, labelled with its figures. The art: a network of small square nodes; a yellow hub linked to 36 yellow nodes, an ink node with one link, and an empty square frame with none",
),
+ # Corpus Hub v2 post, 2026-10-19. Every figure was measured or read live
+ # that day: timings from four cold + eleven warm runs of xerj v1.0.0-rc.97
+ # in an isolated HOME (lz4 pack 4,623,814 B, pack-lz4-0774d055); exit codes
+ # from engine/crates/xerj-hub/src/ask.rs and PR #1905; counts from the
+ # hub.xerj.org header (513 live), GitHub Releases (251 distinct slugs with
+ # a published *.hubpack.tar.zst) and the signed catalogue (14 entries,
+ # generated 2026-10-18T02:13Z); feedback/traffic JSON from /api/corpus-
+ # feedback and /api/hub-traffic for act; field-report loop #1838 -> #1848.
+ # 2026-10-20 refresh before publishing: repo stars/forks/contributors, hub
+ # stars (/api/hub-stars) and the Releases pack count (245 -> 251) re-read;
+ # contributor totals and the top-ten table re-checked, unchanged.
+ "blog/corpus-hub-v2.html": dict(
+ label="Corpus Hub v2", kind="article",
+ title="Corpus Hub v2: ask a question, get the one pack that answers",
+ description="Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.",
+ published="2026-10-19", updated="2026-10-20",
+ og_image="og/blog-corpus-hub-v2.png",
+ og_image_alt="Cover: “Corpus Hub v2” in display type beside the post’s square-matrix art, labelled with its figures. The art: a faint wall of 251 small tiles above 14 larger square-matrix tiles; a yellow route runs from the top into one yellow tile and down to a framed node",
+ ),
"blog/index.html": dict(
label="Blog", kind="collection",
title="XERJ.ai — Blog: the engineering log",
- description="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
- updated="2026-10-08",
+ description="Measured results with the losses left in: Corpus Hub v2 and xerj ask, the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
+ updated="2026-10-19",
),
"demo/index.html": dict(
label="Real-data demo", kind="software",
diff --git a/tools/packs/xerj-blogposts/posts/corpus-hub-v2.json b/tools/packs/xerj-blogposts/posts/corpus-hub-v2.json
new file mode 100644
index 000000000..32f1785a4
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/corpus-hub-v2.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-corpus-hub-v2",
+ "title": "Corpus Hub v2: ask a question, get the one pack that answers",
+ "description": "Hub v2 routes a plain question to one signed corpus, pulls only that pack (lz4: 4.4 MB) and answers locally: 1.7 to 2.3 s cold, under 60 ms warm.",
+ "published": "2026-10-19",
+ "url": "https://xerj.org/blog/corpus-hub-v2",
+ "body": "← ALL POSTS · /BLOG \nCORPUS HUB V2 · 3,663 CONTRIBUTORS · ROUTED · SIGNED · AS OF 2026-10-19 # CORPUS HUB V2: ASK THE QUESTION, # GET THE ONE PACK THAT ANSWERS IT \nXERJ ENGINEERING · PUBLISHED 2026-10-19 \nAs of 2026-10-19, 3,663 developers have said yes. Each of them agreed to let AI agents learn from a piece of their own work: a CUDA kernel fix in llama.cpp, a Turkish translation for cc-switch, a compiler fix in rust-lang/rust, a streaming fix in Fabric. Their repositories now wait in licence review as 3,659 corpora, next to the 513 corpora already live on hub.xerj.org . Hub v2 is how that shared memory reaches an agent. You type xerj \"how does lz4 decompress a block\" , the CLI picks the right corpus from a signed catalogue, pulls one pre-indexed 4.4 MB pack and answers on your own machine: 1.7 to 2.3 seconds the first time, 37 to 57 ms after that. Every number below was fetched or measured on 2026-10-19, and each one comes with a URL or a command you can run yourself. \n01 · COMMUNITY ## The community so far \nA corpus is only as good as the people who wrote the code in it. So before the CLI, here is who showed up. These figures come from hub.xerj.org/contributors/ , the hub's own APIs and the GitHub API, all read on the evening of 2026-10-19 (Pacific time). \n3,663 developers agreed 3,663 repositories, each included with its author's permission, under its own licence, with attribution 3,659 corpora from their work all in licence review; 70 people appear in more than one 3,861,407 lines of selected commits summed over the 3,653 contributor cards that list a line count 513 corpora live today 11 domains, 78.6 GB of pinned text, per the hub.xerj.org header The contributor wall is sorted by the GitHub stars of the repository each person's work landed in, so the top of the list doubles as a map of the projects developers care about most. Here are the first ten, as listed tonight. The stars belong to the repository, not to the person, and every one of these corpora is still in licence review: \n# \ncontributor \nselected work in \ncorpora \nlines \nGitHub ★ on repo \nhub ★ \n\n1 \n@NianJiuZst \nopenclaw/openclaw \n1 \n308 \n392,443 \n0 \n\n2 \n@abhay-2108 \nmorluto/rea \n1 \n882 \n330,245 \n0 \n\n3 \n@wellkilo \naffaan-m/ECC \n1 \n2,822 \n283,635 \n0 \n\n4 \n@alkank \nfarion1231/cc-switch \n1 \n174 \n146,199 \n0 \n\n5 \n@edenfunf \nggml-org/llama.cpp \n1 \n399 \n131,685 \n0 \n\n6 \n@SrijanSriv \nGraphify-Labs/graphify \n1 \n236 \n128,746 \n0 \n\n7 \n@fufesou \nrustdesk/rustdesk \n1 \n1,357 \n126,303 \n0 \n\n8 \n@paradoxicalguy \nrust-lang/rust \n1 \n291 \n120,578 \n0 \n\n9 \n@bilashcse \naxios/axios \n1 \n342 \n109,298 \n0 \n\n10 \n@MeAkib \nangular/angular \n1 \n265 \n101,110 \n0 \n\nHub stars are the ones visitors give on the hub itself, and that count is brand new. Across the whole hub there are 3 as of 2026-10-20: one on @ksylvan 's profile, one on @hosseinkarami-dev 's, and the first one on a corpus, vuln-fix-commits. If someone's fix saved you an afternoon, their page has a star button. The project repository, xerj-org/xerj , stood at 10,671 GitHub stars and 637 forks on 2026-10-20, with 60 accounts credited as code contributors. \nThree different numbers describe \"how many corpora\", and each one answers a different question: \nwhat lives where, checked 2026-10-19 (Releases re-counted 2026-10-20) \ncount \nsource \n\ncorpora listed as live in the registry \n513 \nhub.xerj.org header (11 domains, 550 registry rows, 78.6 GB pinned text) \n\ncorpora with a signed v2 pack on GitHub Releases \n251 \ndistinct slugs among published *.hubpack.tar.zst assets; builds are still landing, so this keeps climbing \n\ncorpora in the signed catalogue xerj ask routes over \n14 \ncatalogue generated 2026-10-18 02:13 UTC, 1.3 MB \n\ncorpora built from contributors' repositories \n3,659 \nhub.xerj.org/contributors/, all in licence review \n\nThe catalogue row is the one that limits xerj ask today. Pack builds have run ahead of it, so a corpus can have a signed pack on Releases and stay invisible to the router until the catalogue is regenerated. That gap, 14 against 251, is the one to close. \n02 · ASK ## Ask without naming a corpus \nThe launch post ended on a promise: \"the pre-indexed half — a corpus you mount instead of indexing\". This is it. CI builds each pack, indexes it, signs it and attaches it to a GitHub Release. Your machine restores those indices as they are. No clone, no indexer. Here is a fresh install with an empty cache and no node running: \n$ xerj \"how does lz4 decompress a block\" xerj hub: no node answers at http://localhost:9200; starting a local node on port 9300 (data: ~/.xerj/hub/node, log: ~/.xerj/hub/node.log) xerj hub: node ready on port 9300 (pid 1626207) xerj hub: pulling 'lz4' (4.4 MB) — one-time download, later questions answer locally xerj hub: pulled lz4 0774d055 4623814 → 4 indices, 1702 definitions lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/doc/lz4_Block_format.md:0 ... lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4frame.h:572 LZ4F_decompress_usingDict(LZ4F_dctx* dctxPtr, ... answered from: local pack warning: approach-only licence (mixed: BSD-2 (lib) / GPL-2.0+ (rest)): read, do not copy \nEvery hit names its corpus, pin date, licence and file path. lz4 is GPL-2.0+ outside lib/ , so the CLI marks it approach-only and says \"read, do not copy\". For an exact symbol, --def skips ranking and reads the definition table built with the pack: \n$ xerj ask --def LZ4_compress_fast lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4.c:1462 int LZ4_compress_fast(const char* src, char* dest, int srcSize, int dstCapacity, int acceleration) lz4 pin 2026-10-02 (18 days old) mixed: BSD-2 (lib) / GPL-2.0+ (rest) lz4/lib/lz4.h:236 LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); answered from: local pack \nOne flaw is right there in the first transcript: the top hit is cited at line 0 . Prose files in rc.97 lose their line numbers. The fix for the same bug in xerj code (#1892, fixed by #1908) reached main on 2026-10-19, after rc.97 shipped, and we have not re-run these transcripts against it. \n03 · EXAMPLES ## Four more questions, four more corpora \nSame rc.97 binary, same fresh scratch HOME, run on 2026-10-19. Each question named no corpus; the router picked one and the CLI pulled it on first use. Output is real and trimmed with ... . \nAlertmanager. A how-question about grouping lands on the dispatcher function that does the grouping: \n$ xerj \"how does alertmanager group alerts before sending notifications\" xerj hub: pulling 'alertmanager' (13.3 MB) — one-time download, later questions answer locally xerj hub: pulled alertmanager 55b27cfb 13937896 → 3 indices, 4725 definitions alertmanager pin 2026-10-13 (7 days old) Apache-2.0 alertmanager/docs/alertmanager.md:1 ... It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. ... alertmanager pin 2026-10-13 (7 days old) Apache-2.0 alertmanager/dispatch/dispatch.go:440 func (d *Dispatcher) groupAlert(ctx context.Context, alrt *alert.Alert, route *Route) { ... groupLabels := getGroupLabels(alrt, route) fp := groupLabels.Fingerprint() ... answered from: local pack \nAvro. Schema evolution, answered from two language bindings at once: \n$ xerj \"how does avro resolve schema evolution between writer and reader\" xerj hub: pulling 'avro' (21.8 MB) — one-time download, later questions answer locally xerj hub: pulled avro 28cb08c1 22902146 → 21 indices, 22064 definitions avro pin 2026-10-13 (7 days old) Apache-2.0 avro/lang/c/src/avro/resolver.h:64 avro_resolved_writer_new(avro_schema_t writer_schema, avro_schema_t reader_schema); ... avro pin 2026-10-13 (7 days old) Apache-2.0 avro/lang/java/avro/src/main/java/org/apache/avro/Resolver.java:36 public class Resolver { /** * Returns a {@link Resolver.Action} tree for resolving the writer schema * <tt>writer</tt> and the reader schema <tt>reader</tt>. ... answered from: local pack \nSnappy. \"How does it find matches\" goes straight to the compression loop and the unit test that pins it down: \n$ xerj \"how does snappy find matches\" xerj hub: pulling 'snappy' (10.8 MB) — one-time download, later questions answer locally xerj hub: pulled snappy 9c28114a 11338487 → 4 indices, 382 definitions snappy pin 2026-10-02 (18 days old) BSD-3-Clause snappy/snappy.cc:812 char* CompressFragment(const char* input, size_t input_size, char* op, uint16_t* table, const int table_size) { ... snappy pin 2026-10-02 (18 days old) BSD-3-Clause snappy/snappy_unittest.cc:1025 TEST(Snappy, FindMatchLength) { // Exercise all different code paths through the function. ... answered from: local pack \nzstd, then a symbol. The question finds the level API; a --def lookup then pins the definition: \n$ xerj \"how does zstd choose a compression level\" xerj hub: pulling 'zstd' (20.1 MB) — one-time download, later questions answer locally xerj hub: pulled zstd 01b7154f 21038204 → 8 indices, 7874 definitions zstd pin 2026-10-02 (18 days old) mixed: BSD-3 (lib) / GPL-2.0 (cli) zstd/lib/zstd.h:264 ZSTDLIB_API int ZSTD_defaultCLevel(void); /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT, requires v1.5.0+ */ ... $ xerj ask --def ZSTD_defaultCLevel zstd pin 2026-10-02 (18 days old) mixed: BSD-3 (lib) / GPL-2.0 (cli) zstd/lib/compress/zstd_compress.c:8207 int ZSTD_defaultCLevel(void) ... answered from: local pack warning: approach-only licence (mixed: BSD-3 (lib) / GPL-2.0 (cli)): read, do not copy \nstep (xerj v1.0.0-rc.97, Linux, isolated HOME, 2026-10-19) \nwall clock \nruns \n\nlz4, first question, cold: node start, catalogue, 4.4 MB pull, answer \n1.72–2.27 s \n4 \n\nlz4, the same question again, pack cached \n37–57 ms \n11 \n\n--def LZ4_compress_fast → lz4.c:1462 \n21–25 ms \n4 \n\nalertmanager question, pack cached \n54–122 ms \n3 \n\navro question, pack cached \n62–65 ms \n3 \n\n--def ZSTD_defaultCLevel and --def groupAlert \n27–39 ms \n6 \n\nNot every answer is this sharp. \"How does astro render islands\" pulled the astro pack and came back with an error definition, the config types and three test files cited at line 0, not the island renderer itself. Ranking a prose question against framework code still needs work. \n04 · ROUTING ## Ambiguous questions come back as a choice \nThe router does not guess between two plausible corpora. Ask about two compressors at once and it hands the decision back: \n$ xerj \"lz4 or snappy decompression speed\" more than one corpus matches; re-run with --corpus <slug> lz4 — an agent needing fast block compression queries this for the block format and decoder loop snappy — an agent needing cheap compression queries this for the format and the reference encoder decisions $ echo $? 4 \nExit 4 already means \"needs a decision\" in xerj autoindex , so a wrapper can turn it into a question for the user. When nothing clears the bar, the CLI exits 1 and names the nearest corpora: \n$ xerj \"how do I run a github actions workflow locally\" no hub corpus matches; see xerj.org/llms.txt closest corpora: act, astro, agentops; re-run with --corpus <slug> to ask one of them \nThat one is a miss, and we left it in on purpose. act exists for exactly this question; the router ranked it first but not confidently enough to answer. The threshold is ours to fix. \nExit 1 used to hide a third case: hub unreachable, an HTML page where the signed catalogue should be, or --offline with nothing cached. An agent reading exit codes took that as \"the hub has no answer\" and fell back to memory. A fresh-user run hit it on 2026-10-19 ( #1904 ), and PR #1905 , merged to main the same day, gives it its own code. rc.97 still exits 1. \nexit \nmeaning \n\n0 \nanswered, at least one hit \n\n1 \nno match, or nothing to answer from (closest corpora are named) \n\n2 \nusage error or unknown --corpus \n\n3 \na pulled pack failed SHA-256, signature or format verification \n\n4 \nambiguous: candidates printed, re-run with --corpus <slug> \n\n5 \nthis build has no hub public key, so nothing is downloaded \n\n6 \nthe hub catalogue cannot be loaded (on main since #1905; rc.97 still exits 1) \n\n05 · CONTRIBUTORS ## A page for every contributor \nEvery corpus is somebody's work, so every contributor gets a page that shows exactly what was selected and where it goes. Here is the text of @edenfunf 's page as it rendered on 2026-10-19, trimmed: \n@edenfunf Corpus Hub contributor since 2026-10-10 1 corpus · 1 selected commit · 3 files · 399 lines ★ 131,685 GitHub stars on repo · ★ 0 hub stars Selected work ggml-org/llama.cpp fda1866613 CUDA: fix norm family kernels when ne[2]/ne[3] exceed grid dim limits… 3 files · 399 lines · CUDA, C++ · ggml, tests selected · in licence review · corpus ggml-org--llama-cpp · MIT · agreed 2026-10-10 Not installable yet ... It becomes installable when this card says live in the hub. \nThe page is upfront about what you cannot do yet: until licence review passes, xerj corpus add and xerj ask cannot fetch that corpus. One commit can feed several corpora. @ksylvan 's single Fabric commit ( aa3e1727b7 , 29 files, 1,055 lines of Go) appears in 2, and the totals count it once. Each profile carries a README badge at /contributors/<login>/badge.svg and prints how to leave: reply to the permission email or open an issue. \n06 · SIGNALS ## Human stars and agent scores, kept apart \nA corpus page carries two signals and never blends them. Hub stars are people clicking a star. The agent score comes from structured reviews agents send after using a corpus, through xerj hub pull , MCP queries or the xerj_corpus_feedback tool. A review rates usefulness from 1 to 5, says whether the answer was found (yes, partial or no) and how fresh the corpus felt, and can name a coverage gap or flag a problem: error, slow, stale or wrong. The rules are printed on every corpus page: \nThe score is a Bayesian mean of usefulness with a prior of 3.0 at weight 5, so a handful of glowing reviews cannot lift a corpus far. \nOne voice per installation, per corpus, per week. Reviewers with abnormal volume are dropped. \nA coverage gap is shown only once 3 or more agents report the same one. \nHere is the score for zstd tonight, and the hub-wide list: \n$ curl -s \"https://hub.xerj.org/api/corpus-feedback?corpus=zstd\" {\"ok\":true,\"enabled\":true,\"corpus\":\"zstd\",\"reviews\":0,\"score\":null,\"raw_mean\":null, \"confidence\":\"none\",\"prior\":{\"mean\":3,\"weight\":5},\"found\":{\"yes\":0,\"partial\":0,\"no\":0,\"rate\":null}, \"freshness_median\":null,\"families\":[],\"coverage_gaps\":[], \"problems\":{\"error\":0,\"slow\":0,\"stale\":0,\"wrong\":0},\"agent_reviews\":0,\"pull_reports\":0, \"dropped_outliers\":0,\"k_min\":3,\"window_weeks\":26} $ curl -s \"https://hub.xerj.org/api/corpus-feedback\" {\"ok\":true,\"enabled\":true,\"prior\":{\"mean\":3,\"weight\":5},\"scores\":{}} \nNo corpus has an agent score yet. The page shows that as empty instead of inventing a starting rating, and the first agent review will be the first real data point. \n07 · TRAFFIC ## Traffic and usage on every corpus page \nEach corpus page has a traffic panel modelled on GitHub's, covering the last 14 days in UTC: views and unique views (crawlers excluded, uniques by a hash salted with the day), pulls, hosted-hub searches, requests per agent family, and referring sites once a site has sent 3 views. Pulls are the growth in the GitHub Release download count for that corpus's pack, our own verification downloads included. It is one JSON call: \n$ curl -s \"https://hub.xerj.org/api/hub-traffic?corpus=act\" {...\"totals\":{\"views\":9,\"unique_views\":8,\"pulls\":1,\"pulls_unique\":null,\"searches\":0}, \"pulls_since\":\"2026-10-20\",\"recording_since\":\"2026-10-19\", \"agents\":[{\"family\":\"curl\",\"count\":9}],\"referrers\":[]} \nNine views, all from curl, and most of them were us writing this post. Recording began on 2026-10-19, so every corpus starts near zero. \nBelow that sits agent usage: requests over 7 and 30 days, agent families, top topics and the most common query templates. A template swaps identifiers, versions, paths, numbers and quoted text for placeholders, appears only after 3 sightings in 30 days, and raw queries are never published. Only requests to the hosted hub API ( hub.xerj.org/api/v1/code and /def ) count. A question answered on your own node never leaves your machine, so xerj ask with a cached pack never shows up here. \n08 · SIGN IN ## Sign in with GitHub or Hugging Face \nEverything above is public. Signing in through /auth/github/login or /auth/hf/login (standard OAuth, PKCE on both) opens the detail behind it: a corpus page adds its pack builds, pin history, source pins, review records and signing; a contributor page adds every selected commit in full, with commit date, folders, review state and pin. Usage detail needs a session too; without one the usage API answers \"detail_requires_signin\":true . \n09 · FIELD REPORTS ## Field reports that turn into fixes \nAfter an agent installs or uses XERJ, the CLI sends a short field report: what the agent pointed XERJ at, what it used it for, and its verdict. It arrives as a GitHub pull request adding one Markdown file under user-feedback/16-agent-field-reports/ , forking first when the account cannot push. Only when GitHub is unavailable does it fall back to POST https://xerj.org/api/field-report , which files an issue. --disable-feedback or XERJ_DISABLE_FEEDBACK=true turns it off. Whether an agent should send one without asking its user first is open in #1896 ; the opt-out works either way. \nAs of 2026-10-19, main holds 40 reports in that folder, and 12 more came in through the API fallback as issues titled \"Agent field report (API)\". One full loop: several reports flagged a stray backslash in the MCP registration text that xerj init prints. Issue #1838 was opened from them on 2026-10-19, and PR #1848 fixed the three format strings and closed it at 23:34 UTC the same day. A small bug, reported by agents who had no other way to tell us, and fixed before the day was out. \n10 · HOW IT WORKS ## How it works \nThe catalogue. hub.xerj.org/api/v1/catalogue.json is one JSON file with a detached ed25519 signature beside it in catalogue.json.sig . The CLI fetches it with If-None-Match and verifies the signature before new bytes may replace its cache; on any network or verification failure it keeps the last good copy. Each entry holds the slug, domain, topics, a one-sentence ask_for , dependency_names , the licence (SPDX plus class), the pin SHA and date, the pack URL, size, SHA-256 and signature URL, and a term_sketch . \nRouting. The router reads only that metadata plus two things on your disk: the dependency names in your Cargo.lock , package.json or go.mod , and the packs you already have cached. The term sketch is a Bloom filter over the corpus's terms, built with 7 hashes. A Bloom filter never gives a false negative, so when the sketch rules out a word in your question, that corpus drops out without a download. A declared dependency is the strongest evidence a corpus can earn. Corpora whose licence class is excluded are removed before routing starts: never picked, never offered, never named as closest. \nThe pack. A confident pick downloads that one pack from GitHub Releases, checks its SHA-256 and signature (a failure is exit 3) and restores its pre-built indices into a node. If nothing answers on localhost:9200 , the CLI starts its own on port 9300, and xerj hub stop stops that process and no other. The hub serves the catalogue, the web pages and a few small JSON APIs; the search runs on your node. A hosted switch exists ( xerj hub config hosted on|off|auto ), but no hosted client ships in the CLI yet (checked in rc.97 and on main, 2026-10-19), so every xerj ask answer today is computed on your machine. \n11 · GETTING STARTED ## Getting started \nInstall the CLI, then ask. The first question starts the node and pulls the pack; later ones answer from the cache: \n$ curl -fsSL https://xerj.org/get | sh $ export PATH=\"$HOME/.local/bin:$PATH\" $ xerj \"how does lz4 decompress a block\" $ xerj \"how does alertmanager group alerts before sending notifications\" $ xerj ask --def LZ4_compress_fast $ xerj ask --corpus snappy \"how does snappy find matches\" $ xerj hub status $ xerj hub stop \nxerj hub status lists cached packs with age and size, plus the node, the hosted setting and the catalogue age. Add --offline to stay on cached packs, --no-fetch to forbid downloads and --json when an agent parses the answer. \n12 · NEXT STEPS ## Next steps \nAdd your own work next to the 3,663 who already did: hub.xerj.org/contribute . \nBrowse the corpora, contributor pages and agent scores at hub.xerj.org , and star the people whose code you learn from. \nRead the Corpus Hub docs and the implementation plan, CORPUS_HUB_V2_IMPLEMENTATION.md . \nPropose a corpus by pull request against the corpus-hub branch on GitHub . \nTell us where routing picked wrong on Discord , or follow releases on X ."
+}