AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
landing: rebuild the hero against 44 measured landing pages; fix 4 silent CSS bugs
xerj-org300e523ad2da
diff --git a/docs/research/writing-corpus-2026-09/scripts/analyze_hero.py b/docs/research/writing-corpus-2026-09/scripts/analyze_hero.pynew file mode 100644index 000000000..75320f787--- /dev/null+++ b/docs/research/writing-corpus-2026-09/scripts/analyze_hero.py@@ -0,0 +1,64 @@+#!/usr/bin/env python3+"""What does a real landing hero contain? Measured over the reference homepages."""+import glob, os, re, statistics, sys+from lxml import html as LH++CTA_WORDS = re.compile(r"^(get |start|try |sign |book |talk |contact|request|download|"+ r"install|deploy|create|build|read the docs|docs|see |view |learn |"+ r"explore|watch|join|buy|pricing|free)", re.I)++def analyse(path):+ try: doc = LH.parse(path).getroot()+ except Exception: return None+ for b in doc.xpath("//script|//style|//noscript|//svg"):+ p=b.getparent()+ if p is not None: p.remove(b)+ h1s = doc.xpath("//h1")+ if not h1s: return None+ h1 = " ".join(h1s[0].text_content().split())+ if not h1 or len(h1.split()) > 40: return None+ # everything structurally after the h1, within its section/parent chain+ par = h1s[0].getparent()+ for _ in range(3):+ if par is None: break+ txt = " ".join(par.text_content().split())+ if len(txt.split()) > len(h1.split()) + 8: break+ par = par.getparent()+ hero = " ".join(par.text_content().split()) if par is not None else h1+ sub = hero[len(h1):].strip() if hero.startswith(h1) else hero+ sub_words = len(sub.split())+ # calls to action anywhere in the top of the document+ links = doc.xpath("//a")[:60] + doc.xpath("//button")[:20]+ ctas = [" ".join(a.text_content().split()) for a in links]+ ctas = [c for c in ctas if c and len(c.split()) <= 5 and CTA_WORDS.match(c)]+ return {+ "site": os.path.basename(path)[:-5],+ "h1": h1,+ "h1_words": len(h1.split()),+ "h1_chars": len(h1),+ "h1_has_number": bool(re.search(r"\d", h1)),+ "h1_sentences": h1.count(".") + h1.count("!") or 1,+ "sub_words": min(sub_words, 200),+ "ctas": len(dict.fromkeys(ctas)),+ "cta_examples": list(dict.fromkeys(ctas))[:3],+ "h2s": len(doc.xpath("//h2")),+ "hero_has_code": bool(doc.xpath("//h1/following::pre[position()<3]|//h1/following::code[position()<3]")),+ }++rows=[r for r in (analyse(p) for p in sorted(glob.glob(os.path.expanduser("~/.xerj-write/landing/*.html")))) if r]+print(f"{len(rows)} homepages with a usable <h1>\n")+def q(k):+ v=sorted(r[k] for r in rows); g=lambda f: v[min(int(len(v)*f),len(v)-1)]+ return g(.25), g(.5), g(.75)+for k in ("h1_words","h1_chars","sub_words","ctas","h2s"):+ a,b,c=q(k); print(f" {k:<12} p25 {a:>5} median {b:>5} p75 {c:>5}")+print(f"\n h1 contains a number: {100*sum(r['h1_has_number'] for r in rows)/len(rows):.0f}%")+print(f" h1 is >1 sentence: {100*sum(r['h1_sentences']>1 for r in rows)/len(rows):.0f}%")+print(f" code/pre near the h1: {100*sum(r['hero_has_code'] for r in rows)/len(rows):.0f}%")+print("\n=== EVERY HEADLINE (the thing we are competing with)\n")+for r in sorted(rows, key=lambda r: r["h1_words"]):+ print(f" {r['h1_words']:>2}w [{r['site']:<14}] {r['h1'][:96]}")+print("\n=== CTA labels used")+import collections+c=collections.Counter(x.lower() for r in rows for x in r["cta_examples"])+print(" " + " · ".join(f"{k} ({n})" for k,n in c.most_common(14)))diff --git a/docs/research/writing-corpus-2026-09/scripts/fetch_landing.py b/docs/research/writing-corpus-2026-09/scripts/fetch_landing.pynew file mode 100644index 000000000..685ab1dfc--- /dev/null+++ b/docs/research/writing-corpus-2026-09/scripts/fetch_landing.py@@ -0,0 +1,74 @@+#!/usr/bin/env python3+"""Fetch the HOMEPAGE of each reference company, not their blog posts.++A landing page is a different artefact from an article: the question is not+"how long is a paragraph" but "how many words does the headline carry, what+sits directly under it, how many calls to action are above the fold, and how+many sections does the page have". Those are the numbers the hero rebuild needs.++REFERENCE ONLY, same rule as the article corpus: read the approach, write our+own words and our own markup.+"""+import hashlib, json, os, time, urllib.parse, urllib.request, urllib.robotparser++ROOT = os.path.expanduser("~/.xerj-write/landing")+UA = "XERJ-writing-corpus/1.0 (internal style reference, not republished; [email protected])"+DELAY = 1.0++HOMES = [+ "https://www.anthropic.com", "https://openai.com", "https://x.ai",+ "https://mistral.ai", "https://cohere.com", "https://www.typesafe.ai",+ "https://clickhouse.com", "https://www.elastic.co", "https://qdrant.tech",+ "https://weaviate.io", "https://www.meilisearch.com", "https://typesense.org",+ "https://www.algolia.com", "https://www.pinecone.io",+ "https://fly.io", "https://stripe.com", "https://linear.app", "https://vercel.com",+ "https://supabase.com", "https://planetscale.com", "https://sentry.io",+ "https://www.honeycomb.io", "https://tailwindcss.com", "https://grafana.com",+ "https://neon.tech", "https://turso.tech", "https://modal.com", "https://railway.com",+ "https://www.cloudflare.com", "https://zed.dev", "https://www.warp.dev",+ "https://tigerbeetle.com", "https://www.cockroachlabs.com", "https://materialize.com",+ "https://incident.io", "https://www.figma.com", "https://www.notion.com",+ "https://resend.com", "https://clerk.com", "https://upstash.com",+ "https://www.docker.com", "https://redis.io", "https://duckdb.org",+ "https://www.sourcegraph.com", "https://sourcegraph.com",+]+++def fetch(url, timeout=30):+ req = urllib.request.Request(url, headers={"User-Agent": UA, "Accept": "text/html"})+ with urllib.request.urlopen(req, timeout=timeout) as r:+ return r.read()+++def allowed(home, url):+ rp = urllib.robotparser.RobotFileParser()+ try:+ raw = fetch(urllib.parse.urljoin(home, "/robots.txt")).decode("utf-8", "replace")+ rp.parse(raw.splitlines())+ return rp.can_fetch(UA, url)+ except Exception:+ return True+++if __name__ == "__main__":+ os.makedirs(ROOT, exist_ok=True)+ manifest = {}+ for home in HOMES:+ name = urllib.parse.urlparse(home).netloc.replace("www.", "").split(".")[0]+ out = os.path.join(ROOT, f"{name}.html")+ if os.path.exists(out):+ print(f" {name}: have it"); continue+ try:+ if not allowed(home, home):+ print(f" {name}: robots.txt says no"); continue+ time.sleep(DELAY)+ raw = fetch(home)+ open(out, "wb").write(raw)+ manifest[name] = {"home": home, "bytes": len(raw)}+ print(f" {name}: {len(raw)/1000:.0f} KB", flush=True)+ except Exception as e:+ print(f" {name}: {type(e).__name__} {e}")+ time.sleep(DELAY)+ json.dump({"usage": "REFERENCE ONLY — copyrighted; read the approach, never copy the words",+ "pages": manifest}, open(os.path.join(ROOT, "manifest.json"), "w"), indent=1)+ print(f"\n{len([f for f in os.listdir(ROOT) if f.endswith('.html')])} homepages in {ROOT}")diff --git a/landing/blog/does-xerj-beat-jev.html b/landing/blog/does-xerj-beat-jev.htmlindex 2d241f529..9e9ecdc61 100644--- a/landing/blog/does-xerj-beat-jev.html+++ b/landing/blog/does-xerj-beat-jev.html@@ -398,7 +398,7 @@</div></div>- <h3 class="scene" style="font-size:var(--fs-24); margin-top:var(--sp-8);">The gate: the pip client, unmodified, on a local node</h3>+ <h3 class="scene" style="font-size:var(--fs-20); margin-top:var(--sp-8);">The gate: the pip client, unmodified, on a local node</h3><p class="wide">No SDK of ours, no patches, no subclassing. <code class="inline">pip install jev-reranker</code> (0.1.2, MIT), its own listwise template, its own splitting, its own strict response validation, pointed at a XERJ node holding 4,000 labelled SMS messages. The gate ranks through both of the client's entry points — the constructor default, and the documented relevance preset, which since 0.1.2 ships its rubric as an <em>object</em> the vote must acknowledge without reading it as retrieval text. Two environment variables, and one of them is a trap:</p><pre class="code"><span class="prompt">$</span> pip install jev-reranker@@ -424,7 +424,7 @@ GATE PASSED: unmodified jev-reranker ranked from the XERJ node</span></pre><strong>The first gate attempt failed. It is the most useful thing on this page.</strong> The wire puts the query in <code class="inline">state</code>, and the vote text joined it, so query vocabulary took part in retrieval. With a spam-bearing query like "winner claim prize", <em>every</em> document's vote retrieved spam neighbours. The vote measured the query, not the documents: spam 1.000 against ham 0.785. No separation. We first called that "inherent to a retrieval vote". <strong>It was not. It was two defects, and we fixed them.</strong> The vote text used to concatenate the instruction's prose into the retrieval query — wording alone moved accuracy 32 points (0.9867 with an empty instruction, 0.6700 with a criteria-rich one, same 300 held-out messages) — and an object state contributed only its <code class="inline">query</code> field, so <code class="inline">{"message": …}</code> voted on prose at the spam base rate (0.1733 against 0.9667 for the same message as a string). The vote text is now exactly what the question points at: its backtick references, or the state's own string content — never instruction prose, never state the question never named. After the fix, all eight wording/shape arms of the same 300 messages score identically (0.9767). One part <em>is</em> by design, and it is the client's choice, not ours: since 0.1.2 the client's own question references the query in backticks, so the query is named payload — the question being asked is "does this document answer this query". <strong>Pick the query for the history you have</strong> still holds: under the deliberately spammy query the gap narrows from 0.8542 to 0.6087, and the gate asserts both.</div>- <h3 class="scene" style="font-size:var(--fs-24); margin-top:var(--sp-8);">Speed: the Rust side of the same wire</h3>+ <h3 class="scene" style="font-size:var(--fs-20); margin-top:var(--sp-8);">Speed: the Rust side of the same wire</h3><p class="wide">A full news item against 120,000 labelled AG News examples is a heavy query. About 40 terms, and the match set is most of the index. This is the workload that exposed the waste in our own search loop. The old path built a hit list per term, folded them through hash maps, and sorted the whole match set. All that to return a size-10 page. We replaced it with a WAND-style pruned walk for the one shape every <code class="inline">match</code> query becomes. A document is now scored only when it can still make the page even at its best possible score. The method is the classic one from Broder et al., and the same idea tantivy uses, adapted to our postings format.</p><div class="vt-wrap">@@ -463,7 +463,7 @@ GATE PASSED: unmodified jev-reranker ranked from the XERJ node</span></pre><p class="vc-note">The hosted bar is the Jev API's measured p50 on the FiQA rerank run in §02, 1.23 s per query. Its fastest of the three datasets, so the bar is generous to the hosted side; SciFact and NFCorpus measured 1.49 s and 1.48 s. The local bars are the same wire answered by the vote over 120k AG News history on this engine. Different tools: the hosted judge needs no history, the vote needs this index. This is a speed, cost and egress comparison, not a quality race. No Jev number exists for AG News and we claim none.</p></div>- <h3 class="scene" style="font-size:var(--fs-24); margin-top:var(--sp-8);">What the vote itself is worth</h3>+ <h3 class="scene" style="font-size:var(--fs-20); margin-top:var(--sp-8);">What the vote itself is worth</h3><p class="wide">Measured earlier on the same engine (<a href="/benchmarks/">the hub's ranking section</a>), on the vote's home ground: labelled history, in-domain classification. <strong>No judge model was run on these datasets by us, and none of these rows say anything about Jev.</strong></p><div class="vt-shell vt-shell--hist">@@ -537,7 +537,7 @@ GATE PASSED: unmodified jev-reranker ranked from the XERJ node</span></pre><strong>What we claim, and what we do not.</strong> Claimed: every number on this page, from the runs cited beside it, on our node, our shortlists, the pinned model. Not claimed: anything about how Jev scores on Banking77, SMS or AG News. TypeSafe has published no such numbers and we ran none, which is why those tables carry no judge row. Not claimed: any zero-shot ability for the local vote, or that the published hosted-reranker figures and ours compare beyond dataset and metric. TypeSafe AI granted the evaluation key that made §01 and §02 possible. The measurements are of their model, through their documented API, and this project thanks them for the access. The findings are ours, warts published.</div>- <h3 class="scene" style="font-size:var(--fs-24); margin-top:var(--sp-8);">Reproduce the gate</h3>+ <h3 class="scene" style="font-size:var(--fs-20); margin-top:var(--sp-8);">Reproduce the gate</h3><pre class="code"><span class="prompt">$</span> git clone https://github.com/xerj-org/xerj && cd xerj/engine<span class="prompt">$</span> cargo build --release -p xerj-server<span class="prompt">$</span> cat > gate.toml <<'EOF'diff --git a/landing/index.html b/landing/index.htmlindex 3bd26f170..8a20d6e3b 100644--- a/landing/index.html+++ b/landing/index.html@@ -12,124 +12,6 @@<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%230b0b0d'/><text x='50' y='68' font-size='60' font-family='Big Shoulders Display,sans-serif' font-weight='900' fill='%23ffc400' text-anchor='middle'>X</text></svg>"><link rel="stylesheet" href="/style.css?v=if10"><style>- /* page-local — JEV verdict banner + install card (2026-09-21). All new CSS- lives here, not in style.css, so the shared sheet needs no cache-buster- bump. Brand rules hold: 1px lines, no icons, no shadows, no filled- shapes (the .prompt-card gradient border is the site's sole exception).- Figures are verbatim from /blog/does-xerj-beat-jev — the two must not- drift; nothing here may tell the broken-then-fixed pilot story (that- narrative lives in the post). */- .jev-banner {- max-width: 880px;- margin: var(--sp-8) auto var(--sp-8);- padding: var(--sp-5) var(--sp-6) var(--sp-6);- border: 1px solid var(--z-line);- text-align: left;- }- .jev-banner .jev-kicker {- margin: 0 0 var(--sp-3);- font-family: var(--font-data);- font-size: var(--fs-11);- font-weight: 600;- letter-spacing: var(--track-label);- text-transform: uppercase;- color: var(--z-mute);- }- .jev-banner h2 {- margin: 0 0 var(--sp-2);- font-family: var(--font-display);- font-weight: 800;- font-size: var(--fs-32);- line-height: 1.05;- color: var(--z-ink);- }- .jev-banner .jev-sub {- margin: 0 0 var(--sp-2);- font-family: var(--font-prose);- font-size: var(--fs-16);- line-height: 1.55;- color: var(--z-mute);- }- .jev-banner .jev-foot {- margin: var(--sp-3) 0 0;- font-family: var(--font-data);- font-size: var(--fs-11);- line-height: 1.7;- color: var(--z-mute);- }- .jev-banner .jev-link {- font-family: var(--font-data);- font-size: var(--fs-11);- font-weight: 700;- letter-spacing: var(--track-label);- text-transform: uppercase;- color: var(--z-accent);- text-decoration: none;- border-bottom: 1px solid var(--z-accent);- padding-bottom: 1px;- }- .jev-banner .jev-link:hover, .jev-banner .jev-link:focus-visible {- color: var(--z-ink);- border-color: var(--z-ink);- }- .jev-banner .jev-hub {- display: block;- margin-top: var(--sp-2);- font-family: var(--font-data);- font-size: var(--fs-11);- color: var(--z-mute);- }- .jev-banner .jev-hub a { color: var(--z-mute); border-bottom: 1px solid var(--z-line); padding-bottom: 1px; text-decoration: none; }- .jev-banner .jev-hub a:hover, .jev-banner .jev-hub a:focus-visible { color: var(--z-accent); border-color: var(--z-accent); }- .jev-banner .jev-link-row { margin: var(--sp-4) 0 0; }-- /* comparison series, page-local: XERJ is always .cmp-a (accent); the- Jev-in-the-loop series is always --z-cmp — accent never marks a Jev-side- win (same recolor rule as the wordpress-security-audit page). */- .jev-banner .cmp-b .cmp-bar { background: var(--z-cmp); opacity: 1; }- .jev-banner .cmp-bars-head .cmp-b { color: var(--z-cmp); font-weight: 700; }- .jev-banner .cmp-b .cmp-num { color: var(--z-cmp); }- .jev-banner .cmp-b .cmp-ratio { color: var(--z-cmp); }- .jev-banner .cmp-val i {- font-style: normal;- font-family: var(--font-data);- font-size: var(--fs-11);- color: var(--z-mute);- white-space: nowrap;- flex-shrink: 0;- }- .jev-banner .cmp-label .cmp-sub {- display: block;- white-space: normal;- font-family: var(--font-data);- font-size: var(--fs-11);- color: var(--z-mute);- }- .cmp-tag {- font-family: var(--font-data);- font-size: var(--fs-11);- font-weight: 700;- letter-spacing: var(--track-label);- text-transform: uppercase;- margin-left: 4px;- flex-shrink: 0;- white-space: nowrap;- }- .cmp-tag.x { color: var(--z-accent); }- .cmp-tag.j { color: var(--z-cmp); }-- /* Desktop chip line (2026-09-21 fix round): the FIQA verdict chip- ("JEV WINS · BIGGEST LIFT WE MEASURED") does not fit its ~337px value- cell beside bar + number + delta + arm label — the cell clipped- internally (scrollWidth > clientWidth, chip 96px past the cell edge)- and the blue bar crushed to its 2px minimum, which reads as a cut-off- loss marker. That one cell wraps its chip onto a second line; the bar- recovers its measured width. Wrap is NOT applied banner-wide on- desktop because wide bars (width:100% cells) would force every number- onto a second line — only the cells that carry a long chip need it.- The <=720px blocks below already wrap every cell, so this class is a- no-op there. */- .jev-banner .cmp-val.chip-line { flex-wrap: wrap; row-gap: 2px; }/* Fold recovery (2026-09-21 fix round): at 1440x900 the banner's title sat18px below the fold, 91px at 1280x800 — only the kicker broke it. The@@ -142,7 +24,7 @@@media (min-width: 721px) {.hero-center { padding-top: var(--sp-3); }.hero-center .hero { font-size: clamp(38px, 7.5vw, 140px); }- .hero-center .prompt-stage { margin-top: var(--sp-8); }+.hero-center .prompt-card { padding: var(--sp-5) var(--sp-6) var(--sp-3); }}@@ -160,35 +42,6 @@.hero-center .hero-install .hero-install-agent-line { margin-top: var(--sp-4); }@media (max-width: 720px) {- .jev-banner { margin: var(--sp-8) auto var(--sp-6); padding: var(--sp-4); }- .jev-banner h2 { font-size: var(--fs-20); }- /* Verdict chips must not clip off-screen: the value cell lets them wrap- onto their own full-width line (order 9 = after bar+number+arm), and- they may wrap internally — a clipped loss marker is an invisible loss- marker, which the honesty rules forbid. Numbers and arm labels wrap- at spaces only (dataset scores carry no spaces, so no mid-number- break is possible); the bill figure needs it at this width. */- .jev-banner .cmp-val { flex-wrap: wrap; row-gap: 2px; }- .jev-banner .cmp-tag { flex-basis: 100%; order: 9; margin-left: 0; white-space: normal; line-height: 1.5; }- .jev-banner .cmp-num, .jev-banner .cmp-val i { flex-shrink: 1; min-width: 0; white-space: normal; }- }-- /* Phone layout (≤560px), 2026-09-21 fix round: at 390px the shared- 3-column grid starves each value column to 62px — the FiQA loss chip- wrapped into a six-line sliver and its cell clipped internally- (scrollWidth > clientWidth), which reads as a cut-off loss marker.- Stack instead: dataset label on its own line, then each arm at full- column width (~326px at 390px) so bar, number, arm label and chip sit- on one readable line. The head row collapses to its two series names;- its empty first cell is hidden. Scoped to .jev-banner on this page —- the shared sheet and other pages are untouched. */- @media (max-width: 560px) {- .jev-banner .cmp-bars-head { grid-template-columns: 1fr; gap: 2px; }- .jev-banner .cmp-bars-head span:first-child { display: none; }- .jev-banner .cmp-bars-row { grid-template-columns: 1fr; gap: var(--sp-1) 0; padding: var(--sp-3) 0; }- .jev-banner .cmp-label { white-space: normal; }- .jev-banner .cmp-val { overflow: visible; }- .jev-banner .cmp-tag { flex-basis: auto; order: 0; }}@media (max-width: 720px) {.hero-center .hero-install { padding-left: var(--sp-4); }@@ -200,6 +53,39 @@padding: 6px 8px;}}++ /* One content column for the hero. The install card and the prompt card are+ alternatives — the same width and the same 1px rule, so they read as a pair+ rather than as two unrelated widths stacked on top of each other. */+ .hero-center .hero-col {+ max-width: 880px;+ margin: var(--sp-8) auto 0;+ display: flex;+ flex-direction: column;+ gap: var(--sp-5);+ text-align: left;+ }+ .hero-center .hero-col > * { margin-left: 0; margin-right: 0; max-width: none; }+ .hero-eyebrow {+ font-family: var(--font-data);+ font-size: var(--fs-11);+ font-weight: 600;+ letter-spacing: var(--track-label);+ text-transform: uppercase;+ color: var(--z-mute);+ /* auto, not 0: a max-width from the shared sheet plus margin-left:0 left+ this sitting at the page gutter while the rest of the hero centred. */+ margin: 0 auto var(--sp-5);+ max-width: none;+ }+ .hero-proof {+ font-family: var(--font-prose);+ font-size: var(--fs-16);+ line-height: 1.7;+ color: var(--z-mute);+ max-width: 880px;+ margin: var(--sp-6) auto 0;+ }</style><!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit --><link rel="canonical" href="https://xerj.org/">@@ -300,132 +186,49 @@<!-- HERO — one job: the prompt -----------------------------><main><section class="hero-center">- <h1 class="hero">ONE PROMPT.<br>WORKING PRODUCT.<br><span class="hero-report-tag">USERS REPORT</span><span class="accent">~5× FEWER TOKENS.</span></h1>-- <div class="prompt-stage" id="prompt">- <div class="prompt-card">- <span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>- <code>Install XERJ (docs: https://xerj.org/llms.txt), index this project's sources, and set up reference coding: clone and index the open-source repos closest to what we're building, and search how they solved a problem before writing code.</code>- <button type="button" class="prompt-copy" data-copy="Install XERJ (docs: https://xerj.org/llms.txt), index this project's sources, and set up reference coding: clone and index the open-source repos closest to what we're building, and search how they solved a problem before writing code.">COPY THE PROMPT</button>+ <p class="hero-eyebrow">AI-NATIVE SEARCH ENGINE · ONE RUST BINARY · APACHE-2.0</p>++ <h1 class="hero">SEARCH BUILT<br><span class="accent">FOR AI AGENTS.</span></h1>++ <p class="hero-sub">XERJ indexes your code, documents and data, then answers an agent's+ questions from the index instead of its context window. It speaks the Elasticsearch+ API, so the clients you already have connect unchanged.</p>++ <div class="hero-col">+ <!-- Install first: it is the step a human takes. Commands are VERBATIM from+ /docs/install (the two must not drift); buttons auto-wire via interact.js. -->+ <div class="hero-install" id="get">+ <p class="hero-install-label">INSTALL · ONE LINE · STATIC BINARY · SHA-256 VERIFIED, FAIL-CLOSED</p>+ <div class="hero-install-cmd">+ <code>curl -fsSL https://xerj.org/get | sh</code>+ <button type="button" class="hero-install-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY</button>+ </div>+ <p class="hero-install-agent-line">Linux, macOS and Windows, on x86_64 and arm64.+ Static musl by default, so any distro including Alpine.+ <a href="/docs/install">Windows, glibc and all eight targets →</a></p></div>- </div>- <!-- JEV verdict banner — results only. Every figure is a measured run,- verbatim from /blog/does-xerj-beat-jev (the verdict-first write-up).- The homepage states results; the broken-then-fixed pilot story lives- in the post, not here. nDCG bar widths share ONE global denominator,- 0.7410 (the max across all rows) — the same convention as the /blog- index preview and the og card, so the three visuals are mutually- comparable; the judge-bill row is dollars and scales to itself.- XERJ is always .cmp-a (accent); the Jev-in-the-loop series is always- --z-cmp — accent never marks a Jev-side win. -->- <aside class="jev-banner">- <p class="jev-kicker">MEASURED · TYPESAFE AI'S JEV JUDGE vs XERJ · 1,271 JUDGED QUERIES · 3 BEIR DATASETS · 3 SHUFFLED REPEATS</p>- <h2>DOES XERJ BEAT JEV?</h2>- <p class="jev-sub">On the bill, outright. On relevance, the hosted judge keeps two of three datasets — and the zero-API-token hybrid keeps NFCorpus.</p>- <div class="cmp-bars">- <div class="cmp-bars-head">- <span></span>- <span class="cmp-a">XERJ · LOCAL, ZERO API TOKENS</span>- <span class="cmp-b">OUR BM25 TOP-30 + JEV JUDGE</span>- </div>- <div class="cmp-bars-row">- <span class="cmp-label">SCIFACT · 300 QUERIES</span>- <span class="cmp-val cmp-a">- <span class="cmp-bar" style="width:94.4%;"></span>- <span class="cmp-num">0.6993</span> <i>hybrid RRF</i>- </span>- <span class="cmp-val cmp-b">- <span class="cmp-bar" style="width:100%;"></span>- <span class="cmp-num">0.7410</span> <i>BM25+Jev</i>- <span class="cmp-tag j">JEV WINS</span>- </span>+ <!-- The agent path. Same column, same width, same border weight as the+ install card: the two are alternatives, so they look like alternatives. -->+ <div class="prompt-stage" id="prompt">+ <div class="prompt-card">+ <span class="prompt-label">OR HAND THIS TO YOUR CODING AGENT</span>+ <code>Install XERJ (docs: https://xerj.org/llms.txt), index this project's sources, and set up reference coding: clone and index the open-source repos closest to what we're building, and search how they solved a problem before writing code.</code>+ <button type="button" class="prompt-copy" data-copy="Install XERJ (docs: https://xerj.org/llms.txt), index this project's sources, and set up reference coding: clone and index the open-source repos closest to what we're building, and search how they solved a problem before writing code.">COPY THE PROMPT</button></div>- <div class="cmp-bars-row">- <span class="cmp-label">NFCORPUS · 323 QUERIES</span>- <span class="cmp-val cmp-a">- <span class="cmp-bar" style="width:46.5%;"></span>- <span class="cmp-num">0.3448</span> <i>hybrid RRF</i>- <span class="cmp-tag x">XERJ WINS</span>- </span>- <span class="cmp-val cmp-b">- <span class="cmp-bar" style="width:44.7%;"></span>- <span class="cmp-num">0.3312</span> <i>BM25+Jev</i>- </span>- </div>- <div class="cmp-bars-row">- <span class="cmp-label">FIQA · 648 QUERIES</span>- <span class="cmp-val cmp-a">- <span class="cmp-bar" style="width:32.1%;"></span>- <span class="cmp-num">0.2382</span> <i>BM25 — hybrid not run</i>- </span>- <span class="cmp-val cmp-b chip-line">- <span class="cmp-bar" style="width:49.1%;"></span>- <span class="cmp-num">0.3638 <span class="cmp-ratio">+0.126</span></span> <i>BM25+Jev</i>- <span class="cmp-tag j">JEV WINS · BIGGEST LIFT WE MEASURED</span>- </span>- </div>- <div class="cmp-bars-row">- <span class="cmp-label">FIQA RUN · JUDGE BILL<span class="cmp-sub">at $0.042/Mtok, input only</span></span>- <span class="cmp-val cmp-a">- <span class="cmp-bar" style="width:0%;"></span>- <span class="cmp-num">$0 · 0 tokens</span>- <span class="cmp-tag x">XERJ WINS</span>- </span>- <span class="cmp-val cmp-b">- <span class="cmp-bar" style="width:100%;"></span>- <span class="cmp-num">$0.6375 · 15,178,758 tokens</span>- </span>- </div>- </div>- <p class="jev-foot">AG News, all 7,600 test items: 0.9182 accuracy with no model and no tokens — no JEV row exists there and none is claimed. Jev's FiQA probabilities order well but calibrate badly (ECE 0.3109). Provider non-determinism: gaps tighter than ±0.01 nDCG@10 are noise. Bars: one shared scale, 0.7410 = full width (the bill row is dollars, its own scale); the XERJ side is our best measured local arm per dataset — hybrid not run on FiQA.</p>- <p class="jev-link-row"><a class="jev-link" href="/blog/does-xerj-beat-jev">THE FULL VERDICT — WINS, LOSSES, AND THE BILL → /blog/does-xerj-beat-jev</a>- <span class="jev-hub">Benchmarks hub: <a href="/benchmarks/">/benchmarks</a></span></p>- </aside>-- <!-- Install card — the visible one-line install, plus the Windows and- glibc variants. Commands are VERBATIM from /docs/install (the two- must not drift); every button is auto-wired by interact.js- ([data-copy]; the " escaping restores the double quotes). -->- <div class="hero-install" id="get">- <p class="hero-install-label">GET XERJ · ONE LINE · STATIC MUSL BINARY · SHA-256 VERIFIED, FAIL-CLOSED</p>- <div class="hero-install-cmd">- <code>curl -fsSL https://xerj.org/get | sh</code>- <button type="button" class="hero-install-copy" data-copy="curl -fsSL https://xerj.org/get | sh">COPY</button>- </div>- <div class="hero-install-alt">- <span>Windows (PowerShell):</span>- <code>powershell -ExecutionPolicy Bypass -c "irm https://xerj.org/get.ps1 | iex"</code>- <button type="button" class="hero-install-copy" data-copy="powershell -ExecutionPolicy Bypass -c "irm https://xerj.org/get.ps1 | iex"">COPY</button></div>- <div class="hero-install-alt">- <span>glibc hosts:</span>- <code>curl -fsSL https://xerj.org/get | XERJ_LIBC=gnu sh</code>- <button type="button" class="hero-install-copy" data-copy="curl -fsSL https://xerj.org/get | XERJ_LIBC=gnu sh">COPY</button>- </div>- <p class="hero-install-agent-line">Linux/macOS x86_64 + arm64 · Windows x64 + ARM64. Static musl by default, so any distro including Alpine; glibc is the explicit opt-in. Eight release targets, each with a .sha256. Overrides: XERJ_VERSION · XERJ_INSTALL_DIR · XERJ_REPO. <a href="/docs/install">Full install guide →</a></p></div>- <p class="hero-sub">One paste. Your agent installs XERJ, indexes your project and- the open-source repos worth learning from, then looks implementations up- instead of re-deriving them.</p>-- <p class="hero-sub" style="font-size:var(--fs-16); max-width:760px;">- Two things the agent has to get right, both stated in- <a href="/llms.txt">llms.txt</a>: <strong>indexing needs a running node</strong>, so- <code class="inline">xerj --insecure --data-dir ./.xerj-data &</code> comes- first or <code class="inline">xerj autoindex</code> exits 1. And- <strong>cloning reference repos downloads real data onto your machine</strong>,- so have it name the repos and estimate the job before it starts. XERJ's own- doctrine is estimate first, ask before long jobs.</p>--+ <p class="hero-proof">Agents that query an index instead of re-reading files finished the+ same tasks on <a href="/case-studies/reference-coding">2.7× fewer output tokens</a>.+ Every number on this site names the run behind it, wins and losses alike, on the+ <a href="/benchmarks/">benchmarks page</a>.</p></section><!-- 01 — REFERENCE CODING -------------------------------------><section class="scene-section">- <div class="kicker"><span class="accent">01</span><span class="dash">·</span><span>REFERENCE CODING · THE CODING USE CASE</span></div>- <h2 class="scene">GREP RE-READS.<br><span class="accent">XERJ RETRIEVES.</span></h2>+ <div class="kicker"><span class="accent">01</span><span class="dash">·</span><span>REFERENCE CODING · INDEX THE REPOS YOU LEARN FROM</span></div>+ <h2 class="scene">CODE YOUR AGENT<br><span class="accent">HASN'T MEMORISED.</span></h2><p class="wide">A coding agent that hits an API it has not memorised invents method names,@@ -479,7 +282,7 @@ $ xerj def <span class="accent">"euler_to_rotationmatrix"</span>same commits.</p>- <p class="viz-caption"><a class="mono" href="/case-studies/reference-coding" style="color:var(--z-mute);">THE FULL CASE STUDY — EVERY NUMBER, EVERY TASK, THE EXACT PROMPT →</a><span class="dash" style="color:var(--z-mute);">·</span><a class="mono" href="https://github.com/xerj-org/xerj/blob/main/user-feedback/11-reference-coding-field-reports/2026-08-11-token-savings-reports.md" style="color:var(--z-mute);">WHERE THE USERS-REPORT ~5× FIGURE COMES FROM →</a></p>+ <p class="viz-caption"><a class="mono" href="/case-studies/reference-coding" style="color:var(--z-mute);">THE FULL CASE STUDY — EVERY NUMBER, EVERY TASK, THE EXACT PROMPT →</a><span class="dash" style="color:var(--z-mute);">·</span><a class="mono" href="https://github.com/xerj-org/xerj/blob/main/user-feedback/11-reference-coding-field-reports/2026-08-11-token-savings-reports.md" style="color:var(--z-mute);">THE FIELD REPORTS BEHIND THE TOKEN SAVINGS →</a></p></section><!-- 02 — POINT XERJ AT A FOLDER ------------------------------->@@ -560,8 +363,8 @@ next: `xerj autoindex map --url http://localhost:9280` for the data map; search<!-- 03 — BUILT FOR AGENTS -------------------------------------><section class="scene-section">- <div class="kicker"><span class="accent">03</span><span class="dash">·</span><span>BUILT FOR AGENTS · MEMORY · RECIPES</span></div>- <h2 class="scene">AGENTS ARE<br><span class="accent">THE CUSTOMER.</span></h2>+ <div class="kicker"><span class="accent">03</span><span class="dash">·</span><span>AGENTS ARE THE CUSTOMER · MEMORY · RECIPES</span></div>+ <h2 class="scene">ONE HTTP API.<br><span class="accent">NO SDK.</span></h2><p class="wide">Every operation an agent needs is a plain HTTP call on@@ -614,8 +417,8 @@ $ curl -sXPOST localhost:9200/_memory/agent-demo/_recall \<!-- BENCHMARKS — SUPPORTING EVIDENCE --------------------------><section class="scene-section" id="engine">- <div class="kicker"><span class="accent">04</span><span class="dash">·</span><span>WHY XERJ · THE COMPETITIVE ADVANTAGE</span></div>- <h2 class="scene">THE ADVANTAGE,<br><span class="accent">FEATURE BY FEATURE.</span></h2>+ <div class="kicker"><span class="accent">04</span><span class="dash">·</span><span>WHY XERJ · WHAT YOU ACTUALLY GET</span></div>+ <h2 class="scene">FEATURE<br><span class="accent">BY FEATURE.</span></h2><p class="wide">Every feature exists to cut the thing agents actually spend: context.diff --git a/landing/sitemap.xml b/landing/sitemap.xmlindex afb5a4060..3abb84036 100644--- a/landing/sitemap.xml+++ b/landing/sitemap.xml@@ -2,7 +2,7 @@<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://xerj.org/</loc>- <lastmod>2026-09-21</lastmod>+ <lastmod>2026-09-22</lastmod></url><url><loc>https://xerj.org/agent-search/</loc>@@ -334,11 +334,11 @@</url><url><loc>https://xerj.org/blog/</loc>- <lastmod>2026-09-21</lastmod>+ <lastmod>2026-09-22</lastmod></url><url><loc>https://xerj.org/blog/does-xerj-beat-jev</loc>- <lastmod>2026-09-21</lastmod>+ <lastmod>2026-09-22</lastmod></url><url><loc>https://xerj.org/blog/jev-vs-a-bm25-vote</loc>@@ -682,7 +682,7 @@</url><url><loc>https://xerj.org/use-cases/code-security-audit</loc>- <lastmod>2026-09-21</lastmod>+ <lastmod>2026-09-22</lastmod></url><url><loc>https://xerj.org/use-cases/elasticsearch-replacement</loc>diff --git a/landing/style.css b/landing/style.cssindex 51214f807..12832da44 100644--- a/landing/style.css+++ b/landing/style.css@@ -36,6 +36,9 @@--track-label: 0.08em;--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;+ /* --sp-5 was referenced in 6 places but never defined, so every declaration+ using it was silently dropped (the prompt card rendered with padding:0). */+ --sp-5: 20px;--sp-6: 24px; --sp-8: 32px; --sp-10: 48px; --sp-12: 64px;--sp-16: 96px; --sp-20: 128px;@@ -2617,7 +2620,11 @@ svg.chart.is-interactive .ser:focus-visible {.hero-marks { font-size: 12px; }.prompt-label { font-size: 12px; }.prompt-card code { font-size: 15px; }- .hero-marks {+ .hero-alt-install { font-size: 12px; }+}+/* .hero-marks was nested INSIDE the 720px media query by a stray brace, so it+ had no layout at all above 720px. Hoisted 2026-09-22. */+.hero-marks {font-family: var(--font-data);font-size: var(--fs-11);letter-spacing: var(--track-label);@@ -2639,8 +2646,6 @@ svg.chart.is-interactive .ser:focus-visible {color: var(--z-accent);border-color: var(--z-accent);}-.hero-alt-install { font-size: 12px; }-}@media (max-width: 330px) {.hero-center .hero { font-size: 36px; }}@@ -2655,33 +2660,11 @@ svg.chart.is-interactive .ser:focus-visible {.prompt-stage {position: relative;max-width: 880px;- margin: var(--sp-10) auto var(--sp-6);-}-.prompt-stage::before {- content: '';- position: absolute;- inset: -26px;- border-radius: 28px;- background: linear-gradient(115deg,- #ffc400, #ff8a2a, #ff3d81, #8a5cff, #21c6ff, #ffc400);- background-size: 320% 320%;- filter: blur(34px);- opacity: 0.7;- animation: prompt-glow 7s ease-in-out infinite;- /* -1: without it the ::before joins the root stacking context and- washes over .hero-sub/.hero-proof text at its blurred edges. */- z-index: -1;- pointer-events: none;-}-html[data-theme='night'] .prompt-stage::before { opacity: 0.5; }-@keyframes prompt-glow {- 0% { background-position: 0% 50%; }- 50% { background-position: 100% 50%; }- 100% { background-position: 0% 50%; }-}-@media (prefers-reduced-motion: reduce) {- .prompt-stage::before { animation: none; }+ margin: 0;}+/* The animated rainbow halo went against our own brand book, which asks for+ 1px rules, hairlines and negative space. Removed 2026-09-22; the card now+ carries a single accent rule, like the install card it sits beside. */.prompt-card {position: relative;z-index: 1;@@ -2689,21 +2672,11 @@ html[data-theme='night'] .prompt-stage::before { opacity: 0.5; }flex-direction: column;gap: var(--sp-3);text-align: left;- /* animated gradient border: paint the bg twice — flat card fill in the- padding-box, moving gradient in the border-box — sharing the halo's- keyframes so the two layers sweep together. */- border: 3px solid transparent;- background:- linear-gradient(var(--z-bg), var(--z-bg)) padding-box,- linear-gradient(115deg, #ffc400, #ff8a2a, #ff3d81, #8a5cff, #21c6ff, #ffc400) border-box;- background-size: 100% 100%, 320% 320%;- animation: prompt-glow 7s ease-in-out infinite;- border-radius: 14px;- padding: var(--sp-6) var(--sp-6) var(--sp-4);- box-shadow: 0 8px 40px rgba(0,0,0,0.10);-}-@media (prefers-reduced-motion: reduce) {- .prompt-card { animation: none; }+ background: var(--z-bg);+ border: 1px solid var(--z-line);+ border-left: 1px solid var(--z-accent);+ border-radius: 0;+ padding: var(--sp-5) var(--sp-6);}.prompt-label {font-family: var(--font-data);@@ -2822,7 +2795,7 @@ html[data-theme='day'] .hero-bench b.hb-bad { color: #a32b2e; }}/* nav download button — latest release tag, links to /releases/latest */-.nav .nav-dl{padding:.35rem .7rem;border:1px solid var(--accent,#ffc400);border-radius:4px;- color:var(--accent,#ffc400);font-weight:700;white-space:nowrap;text-decoration:none;+.nav .nav-dl{padding:.35rem .7rem;border:1px solid var(--z-accent);border-radius:4px;+ color:var(--z-accent);font-weight:700;white-space:nowrap;text-decoration:none;font-family:"JetBrains Mono",monospace;font-size:.8rem;}-.nav .nav-dl:hover{background:var(--accent,#ffc400);color:#0b0b0d;}+.nav .nav-dl:hover{background:var(--z-accent);color:#0b0b0d;}diff --git a/landing/use-cases/code-security-audit.html b/landing/use-cases/code-security-audit.htmlindex 3459cd180..ad2a971ac 100644--- a/landing/use-cases/code-security-audit.html+++ b/landing/use-cases/code-security-audit.html@@ -146,7 +146,7 @@</div><section class="scene-section">- <h2 class="scene" style="font-size:var(--fs-40);">TWO REAL <span class="accent">PROOF RUNS.</span></h2>+ <h2 class="scene" style="font-size:var(--fs-32);">TWO REAL <span class="accent">PROOF RUNS.</span></h2><p class="wide">The method has been run end to end on two real codebases, not a demo corpus. The WordPress proof (below) is the token-economics story. The second run turned the method on <strong>XERJ's own Rust engine</strong> — and it is the stronger proof, because it found and <em>fixed</em> real vulnerabilities: an unauthenticated <code class="inline">/_sql</code> stack-overflow that aborts the process, a search-template injection that drops a query's ACL filter and leaks private documents, and a snapshot path-traversal that writes outside the data directory. Each was proven by crashing (then, after the fix, not crashing) a live server. Against six known-fixed bugs the substrate recalled <strong>6/6 where grep managed 4/6</strong> — grep cannot find a missing check — and reached the <code class="inline">/_sql</code> finding for <strong>171× fewer tokens</strong> than reading the tree. Full methodology, all eight findings, and the honest in-sample caveat: <a href="https://github.com/xerj-org/xerj/tree/main/docs/case-studies/xerj-self-audit" rel="external">docs/case-studies/xerj-self-audit →</a>.</p></section>