XLaya
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
XLaya (/xlaya) - 5-Profile Hardware-Adaptive System 1 → System 1.5 Semantic Triage, AST Code-Graph Sieve & Conformal Decision Sidecar
Gemma 4 Developer Agent Paper Track: Official Research Writeup on Kaggle (
Overall Best Paper/Best New Resource/Best New Application) • Repository:iscvlab/xlaya(v2.3.1, coreMIT License+NOTICE;benchmarks/data/ple_dev_29_metadata.json& generated ADK exportsApache-2.0).
XLaya (iscvlab/xlaya, slash command /xlaya, legacy alias /laya) is a 100% pure-local, non-autoregressive 5-Profile System 1 → System 1.5 Semantic Decision, Regime-Invariant AST Code-Graph Sieve, 2-Stage Tool-Schema Gate, Joint NLI Contradiction Triad, Thorough Scan & Conformal Triage Sidecar (v2.3.0) engineered by ISCV | Isocurve Research Lab (@iscvlab). Powered by laya 0.4.31+ (ModernBERT-large en, subfolder="typed-decisions", calibrated 0.45*en + 0.55*typed ensemble & mmBERT, output_tokens: 0), vega-U (vegaml 0.16.1+, 0.8b / 4b / gemma-1b / 27b), and a 100% repo-disjoint CUDA-evolved 8-feature AST + call-graph + Corpus-IDF simplex sieve (policies/sieve_genomes.json, 5,679 B LF / 6,020 B CRLF), it runs across --profile auto|nano|edge|workstation|max and --agent-tier auto|e4b-sniper|31b-deep as a warm resident JSON-RPC 2.0 stdio MCP server (xlaya_mcp_server.py, 6 tools, ~30 ms warm inference), a standalone Python CLI (laya_triage.py), and a portable AI Agent Skill (skills/xlaya/SKILL.md) across any AI coding agent — cloud, IDE, CLI, or local LLM (Claude, Grok, Gemini / Antigravity, Cursor, Codex, Ollama, OpenHands, Cline, Google ADK, etc.).
⚡ TL;DR - Performance & Accuracy at a Glance (v2.3.0)
New in
v2.3.0— Regime-Invariant 8D Code-Graph Sieve, Zero-Cheat Disjoint Evolution & 2-Stage Tool Gate (1.28MGenomes in74.87 s):Zero-Torch / Zero-NumPy
--profile nano(ΔRSS = 10.41 MB,3.99 mswarm /255.33 ms/repocold,"torch" not in sys.modules): Partitioning repositories via a 2-Tier Source-First Lexical Pre-Ranker (Tier-1core package beforeTier-2docs_src/andtests/), attaching compact AST Class/Import Skeleton Headers (100%split-method coverage), and scoring an 8D AST + NetworkXnode_link_data+ All-but-the-Mean Top-4 PC Whitened.npz/ Corpus-IDF simplex (policies/sieve_genomes.json,5,679 BLF /6,020 BCRLF) with Smooth Realized Channel Availability (M_avail,gamma_max = 1.45).100% Zero-Shot Blind SWE & Tool-Gate Verification: Evolved strictly on
125repo-disjoint@base_committasks (21repos,80.00%E4B/85.71%31Bval task hit rate,Top-1 ECE = 0.0654), XLaya v2.3 achieves65.12%E4B Recall@3and78.29%31B Recall@8(94.59%named/traceback,71.74%symptom-only,80.60%fastapi,Top-1 ECE = 0.0568,|ΔS| = 0.0041acrossR1/R2) on the official129-task Kaggle suite,64.89%R@3/79.79%R@8(Top-1 ECE = 0.0155) on blindSWE-bench_Verified(n = 94), and81.37%Val /71.69%Test MCQ binary conformal accuracy (Top-1 ECE = 0.0279 / 0.0777,1.11 ms/row) onnvidia/When2Call(triage_tool_call).Fitted
xerj#1108&PLE 29Cross-Domain Verification: Achieves100.0%blind accuracy (48/48) and0.00%Wrong_Confident(p ≥ 0.80)onxerj#1108(120adversarial boundary emails) and86.21%(25/29) zero-shot cross-domain triage on Google'sPhysical Engineering's Last Exam (PLE)dev metadata.
Zero-Token System 1 → System 1.5 Cascade (
output_tokens: 0): Prunes99.35%(152.7×) of low-signal repository tokens before expensive System 2 LLM reading (173,666→1,137tokens in170.3 ms), cutting cold 32-chunk CLI sweeps by7.92×(74.51 s→9.41 s) and reaching29.99 mssingle-state /662.5 ms32-chunk (96-decision) warm latency via the resident MCP server.Batched Cross-Lingual Determinism (
859.1 q/s,0 / 432Flips): Length-sortedpredict_batchaccelerates mixed50% EN / 50% HIrouting by8.9×(837.9 q/s) andmmBERTmultilingual batches to859.1 q/s(1.16 ms/question,5.9×atB = 8; up to6.5×atB = 16) with0discrete label flips across432paired comparisons and5 / 5(100%) routing acrossEN,DE,HI,JA, andTH.Calibrated Contradiction, Ensemble Watcher Gate & Persistent Conformal Policies: Combines a 3-Question Joint NLI Contradiction Triad (
8 / 8 = 100%counter-anchor accuracy,16.6×OOD conflict separation,0false positives), a calibrated0.45*en + 0.55*typedStage 1 ensemble withdisagreement ≥ 0.15gate (0.00%wrong-and-confident fires vs24.49%baseline FAIL on XERJ#1108),views=1|2|3multi-view debiasing,--thorough4-facet decomposed rubric scans, local multimodal (image/audio/video) evaluation, andxlaya_fitpersistentTTTHead+ split-conformal policies (90.0%held-outfolds=5accuracy /85.0%folds=4evolution gate acrossrouting_labels.csvafter a7.58 s40-row fit).Which
/xlayaExecution Tier Should You Choose?Stage 0 — Pure-Python Structural & Lexical Sieve (
0.15 ms/chunk,6,841 chunks/s): Best for zero-dependency CI environments,--lexical-prefiltercandidate pruning across1,000+chunks, and exact 4-backtick fence-safe#L<start>-L<end>breadcrumb chunking across.md,.html,.txt,.json,.jsonl, and.csv.Stage 1 — Resident MCP
Laya(en,typed,ensemble,multi,~30 mswarm /859 q/s): Default daily driver forshortlist,contradiction(Joint NLI Triad),rubric(0..4or--thorough4-facetspecificity/completeness/consistency/actionability+file_summaries),classify(includingpredict_tournamenton>20labels), and bilingual Thai/CJK/multilingual triage.Stage 2 —
vega-U(auto/0.8B/4B/gemma-1b/27B) Conformal Verifier & Multimodal Engine (up to73,728tokens &90.0%5-fold/85.0%4-foldfitted accuracy): Opt-in--vega/vega: trueescalation withviews=1|2|3multi-view debiasing, persistentpolicy_path(TTTHead+ split-conformal + OODoutboundguard), whole-file long-document audits (--whole-file), and localimage/audio/videodecisions.
One-Prompt Universal Agent Install — Copy and paste into any AI coding agent — cloud, IDE, CLI, or local LLM (
Claude,Grok,Gemini,Cursor,Codex,Ollama,OpenHands,Cline, etc.):Clone https://github.com/iscvlab/xlaya and install skills/xlaya into my active agent skills directory (Windows: ./scripts/install.ps1 -All; macOS/Linux: ./scripts/install.sh --all; or copy skills/xlaya into ~/.gemini/config/skills/xlaya, ~/.claude/skills/xlaya, ~/.codex/skills/xlaya, or ~/.agents/skills/xlaya), then run python benchmarks/run_xlaya_benchmark.py --mode quick to verify /xlaya is ready.
Horizontal Bar Comparison (RTX 5060 Ti 16 GB VRAM • Laya v0.4.31 × VegaML v0.16.1)
Evaluation Dimension | Configuration / Engine | Visual Comparison Bar | Measured Result & Delta vs. Baseline |
1. Cold CLI Boot Speed ↑(32-Chunk Contradiction Sweep) |
|
|
|
2. Mixed-Language Batch Speed ↑(50% EN / 50% HI, |
|
|
|
3. Peak Encoder Throughput ↑( |
|
|
|
4. Few-Shot Conformal Accuracy ↑( |
|
|
|
5. Contradiction & Watcher Gate ↑(NLI Triad + |
|
|
|
6. Pass-B Token Compression ↑( |
|
|
|
Related MCP server: snapdec
1. Architecture & 5-Profile System 1 → System 1.5 Ecosystem (v2.3.0)
A. 3-Stage Cascade (Stage 0 Sieve → Stage 1 Laya Ensemble → Stage 2 Vega-U Conformal Verifier)
%%{init: {'theme': 'neutral'}}%%
flowchart LR
subgraph Canvas [" "]
In["Input Corpus or Media (.md .html .txt .json .jsonl .csv .png .wav .mp4)"] --> S0["Stage 0: Fence-Safe Sieve + BM25 and Thai 3-Gram"]
subgraph Stage1 ["Stage 1: Laya v0.4.31 System 1 (output_tokens: 0)"]
Guard{"Head-Language Guard"}
EN["ModernBERT-large (en / typed / ensemble, 512 tok)"]
ML["mmBERT Multilingual (up to 8192 tok)"]
Triad["Joint NLI Triad + 4-Facet Rubric + Disagreement Gate (>= 0.15)"]
end
S0 --> Guard
Guard -->|"EN State and EN Head"| EN
Guard -->|"Non-EN State or Head"| ML
EN --> Triad
ML --> Triad
Triad -->|"Borderline, Disagreement >= 0.15, or Thorough"| S2["Stage 2: vega-U (auto / 0.8b / 4b / 27b) + Views 1..3 + Policy TTTHead"]
Triad -->|"Calibrated Spans + file_summaries"| Out["Exact file#Lstart-Lend + Conformal Route"]
S2 -->|"prediction_set + abstain + outbound + route"| Out
end
classDef default fill:#ffffff,stroke:#475569,color:#0f172a,stroke-width:1px
style Canvas fill:#ffffff,stroke:#cbd5e1,stroke-width:1.5px,color:#0f172a
style Stage1 fill:#f8fafc,stroke:#94a3b8,color:#0f172aB. Dual Execution Path (Resident MCP Server vs. Standalone CLI + Persistent xlaya_fit Policy)
%%{init: {'theme': 'neutral'}}%%
flowchart LR
subgraph Canvas [" "]
subgraph Hosts ["1. Entry Points and Chained /x* Skills"]
Chain["Chained Skills (/xsync /xbrief /xdeep-research /xpublish)"]
Direct["Standalone Agent (/xlaya) or CI Pipeline"]
end
subgraph Paths ["2. Dual Execution Engine + Policy Fit"]
MCP["Tier 1: xlaya_mcp_server.py (6 Tools, ~30 ms Warm + Idle Unload)"]
CLI["Tier 2: laya_triage.py (7.92x Faster Batch CLI + --thorough)"]
Fit["Tier 3: xlaya_fit / --fit-rows Persistent TTTHead + Conformal Policy"]
end
subgraph Actions ["3. System 2 Surgical Action"]
Skip["Skip Clean Chunks (Zero Token Bloat)"]
Edit["Surgical read_file and edit_file on Flagged Spans"]
end
Chain --> MCP
Direct --> MCP
Direct --> CLI
Direct --> Fit
Fit --> MCP
Fit --> CLI
MCP --> Skip
MCP --> Edit
CLI --> Edit
end
classDef default fill:#ffffff,stroke:#475569,color:#0f172a,stroke-width:1px
style Canvas fill:#ffffff,stroke:#cbd5e1,stroke-width:1.5px,color:#0f172a
style Hosts fill:#f8fafc,stroke:#94a3b8,color:#0f172a
style Paths fill:#f8fafc,stroke:#94a3b8,color:#0f172a
style Actions fill:#f8fafc,stroke:#94a3b8,color:#0f172aC. Regime-Invariant Code-Graph Sieve (R1 ↔ R2) & Zero-Cheat Evolution Workflows
Core Engineering Innovations in v2.3.0
Adaptive 5-Profile Hardware Cascade (
--profile nano|edge|workstation|max|auto) & Regime-Invariant 8D Code-Graph Simplex (sieve_genomes.json,5,679 BLF /6,020 BCRLF):In
--profile nano, runs zero PyTorch and zero NumPy imports (10.414 MBΔRSS,3.99 mswarm /255.33 ms/repocold), partitioning.pyrepositories via a 2-Tier Source-First Pre-Ranker, attaching compact ASTskeleton_headers on split methods, and scoring an 8-feature AST + call-graph + Corpus-IDF / whitened.npzsimplex with Smooth Channel Availability (M_avail,gamma_max = 1.45) across dual SWE tiers (e4b-sniperK=3/≤ 800tok and31b-deep3Anchor +5Conditional Residual slots /≤ 4,096tok), achieving65.12%E4B Recall@3and78.29%31B Recall@8(Top-1 ECE = 0.0568) on blindKaggle 129,79.79%Recall@8(Top-1 ECE = 0.0155) on blindSWE-bench_Verified, and81.37%Val /71.69%MCQ binary conformal accuracy onnvidia/When2Call(triage_tool_call).
Stage 1
typed(subfolder="typed-decisions") & Calibratedensemble+ Inter-Model Disagreement Gate:Exposes
lang="typed"(ECE = 0.188) andlang="ensemble"(0.45 × P_en + 0.55 × P_typed), achieving0.00%false-confident fires (80.0%accuracy) on the XERJ#1108Watcher Gate while computing inter-modeldisagreement = max_k |P_en(k) − P_typed(k)|and automatically flagging uncertain chunks (disagreement ≥ 0.15) for Stage 2 escalation.
Stage 2 Hardware-Aware
vega_modelAuto-Tiering (auto/0.8b/4b/gemma-1b/27b) +views=1|2|3Multi-View Debiasing:vega_model="auto"selects the largest localvega-Ucheckpoint that fits comfortably in free GPU VRAM (4bon≥ 10 GBfree VRAM,0.8botherwise, up to27bfor high-VRAM hosts and73,728tokens). Multi-view debiasing (views=2option-order reversal;views=3reversal + prose template paraphrase) cancels positional and phrasing bias, returningview_agreementand forcingroute = "review"on view disagreement.
--thoroughFull-Document Scan & 4-Facet Decomposed Rubric Scoring (file_summaries):Evaluates chunks across 4 orthogonal rubric facets (
specificity,completeness,consistency,actionability) with domain presets (--rubric-preset default|architecture|code_audit|doc_sync|research), emits file-level sliding-windowfile_summaries(mean_score,min_score,weakest_section,contradiction_hotspots,facet_breakdown), runs Stage 1ensemble+disagreement ≥ 0.15gating, and auto-escalates top/uncertain candidates to Stage 2 (views=3).
xlaya_fit/--fit-rowsPersistentTTTHead+ Split-Conformal Policy Calibration (policy_path&outboundOOD Guard):Fits ridge-regression
TTTHeadweights (heads.npz), out-of-fold split-conformal thresholds (calibration.json), OOD feature centroids (outboundguard), and question schemas (questions.json) in< 8 s(60.0%→90.0%held-out accuracy onrouting_labels.csv), reloadable across CLI and MCP invocations viapolicy_path.
Local Multimodal Decision Support (
image,audio,video) inxlaya_predict:Evaluates local images via
VegaVision, audio via local ASR + decision heads, and video via speech/contact-sheet inspection without requiring textstate/states.
4-Backtick Fence-Safe Chunker, Head-Language Guard, 3-Question Joint NLI Triad (
P_eff) & Tournament Elimination (>20Labels):Preserves 6-level CommonMark breadcrumbs across
.md,.html,.txt,.json,.jsonl, and.csv; enforces the Head-Language Guard so non-English queries/heads route100%tommBERT; evaluatesP_eff = P(is_relevant) × P(contradicts_ssot) × (1 − P(is_consistent))(8 / 8 = 100%counter-anchor accuracy); and auto-runslaya.predict_tournament(..., group_size=16)on>20choice labels.
2. Empirical 4-Axis Benchmarks (RTX 5060 Ti 16 GB VRAM)
Full methodology and extended telemetry are documented in benchmarks/XLAYA_V2_BENCHMARK_REPORT.md and benchmarks/xlaya_v2_benchmark_results.json (reproducible via benchmarks/run_xlaya_benchmark.py).
Axis 1: Cold vs. Resident Warm MCP & Official predict_batch Throughput
Execution Path / Model ( | Batch / Workload | Batched / v2 Latency ↓ | Baseline / Loop ↓ | Speedup ↑ | Throughput ↑ |
Cold CLI Sweep ( |
|
|
|
|
|
Resident Warm MCP ( |
|
|
|
|
|
Stage 0 Pure-Python Sieve |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{table}[t]
\centering
\caption{Empirical latency and batched throughput of \textsc{XLaya v2.1.0} (\texttt{laya 0.4.31}, \texttt{vegaml 0.16.1}) on an NVIDIA GeForce RTX 5060 Ti (16\,GB VRAM, \texttt{PyTorch 2.13.0+cu130}). All forward passes emit zero autoregressive tokens (\texttt{output\_tokens = 0}).}
\label{tab:xlaya_axis1_throughput}
\begin{tabular}{llrrrr}
\toprule
\textbf{Engine / Backbone} & \textbf{Workload} & \textbf{Batched (ms)} $\downarrow$ & \textbf{Baseline / Loop (ms)} $\downarrow$ & \textbf{Speedup} $\uparrow$ & \textbf{Throughput} $\uparrow$ \\
\midrule
Cold CLI (\texttt{laya\_triage.py}) & 32 chunks & \textbf{9,410.0} & 74,510.0 (\texttt{v1.0}) & \textbf{7.92$\times$} & 3.4 chunks/s \\
Warm Resident MCP (\texttt{xlaya\_predict}) & 1 state / 32-chunk Triad & \textbf{29.99 / 662.49} & 74,510.0 (\texttt{v1.0}) & \textbf{112.5$\times$} & 144.9 q/s \\
Stage 0 Pure-Python Sieve & 27 specs (1,165 chunks) & \textbf{170.29} & --- & 152.7$\times$ tok & \textbf{6,841.3 chunks/s} \\
\texttt{ModernBERT-large} (\texttt{english}) & $B=8 \times 4$ questions & \textbf{97.0} & 263.8 (loop) & 2.7$\times$ & 329.8 q/s \\
\texttt{mmBERT-base} (\texttt{multilingual}) & $B=8 \times 4$ questions & \textbf{37.2} & 218.5 (loop) & 5.9$\times$ (6.5$\times$ at $B=16$) & \textbf{859.1 q/s} \\
\texttt{Router.predict\_batch} (50\% EN / 50\% HI) & $B=32 \times 3$ questions & \textbf{114.6} & 1,016.2 (loop) & \textbf{8.9$\times$} & \textbf{837.9 q/s} \\
\bottomrule
\end{tabular}
\end{table}Axis 2: Batch-vs-Single Numerical Determinism (0 / 432 Flips), Cross-Lingual Router & Presets
Zero Discrete Label Flips (
0 / 432): Across144english(max_abs_dp = 0.00580),144multilingual(max_abs_dp = 0.00260), and144Router.predict_batch(max_abs_dp = 0.00650) paired evaluations, dynamic length-sorted batching produced0label or routing flips.5 / 5 (100%)Cross-Lingual Routing & 5 Built-In Presets: Verified100%language routing accuracy acrossEN,DE,HI,JA, andTH, plus sub-50 ms multi-question preset execution:
Preset / Check | Latency ↓ | Questions / Scope | Verified Telemetry Receipt |
Cross-Lingual Router ( |
|
|
|
|
|
|
|
|
|
|
|
Axis 3: Conformal Calibration, Joint NLI Contradiction Triad & XERJ #1108 Watcher Gate
Benchmark Suite & Evaluation Target | Baseline / Cold Reference |
| Empirical Gain & Safety Receipt |
1. | Cold |
|
|
2. 3-Question Joint NLI Triad ( | 1-question |
|
|
3. | Uncalibrated Baseline: | Standalone Gate: |
|
\begin{table}[t]
\centering
\caption{Conformal calibration on \texttt{routing\_labels.csv} ($N_{\text{fit}}=40$, $N_{\text{test}}=20$) and boundary-gate verification on \texttt{xerj-org/xerj\#1108} ($N=120$ emails, confident threshold $p \ge 0.80$).}
\label{tab:xlaya_axis3_calibration}
\begin{tabular}{llrrrr}
\toprule
\textbf{Suite} & \textbf{Configuration} & \textbf{Accuracy} $\uparrow$ & \textbf{ECE / Rate} $\downarrow$ & \textbf{Urg.\ MAE} $\downarrow$ & \textbf{Median (ms)} $\downarrow$ \\
\midrule
\texttt{routing\_labels} & \texttt{laya-typed-decisions} (0-shot) & 75.0\% (15/20) & \textbf{0.188} & 0.671 & \textbf{25.75} \\
\texttt{routing\_labels} & \texttt{laya} \texttt{english} (0-shot) & 80.0\% (16/20) & 0.283 & 0.780 & 31.73 \\
\texttt{routing\_labels} & \texttt{vega-U 0.8B} (Cold 0-shot) & 60.0\% (12/20) & 0.222 & \textbf{0.650} & 64.36 \\
\texttt{routing\_labels} & \textbf{\texttt{vega-U 0.8B} (Fitted 40 rows, 7.58\,s)} & \textbf{90.0\% (18/20)} & 0.214 & \textbf{0.650} & 103.36 \\
\midrule
XERJ \texttt{\#1108} & Uncalibrated Baseline (FAIL) & --- & 24.49\% (24/98) & --- & --- \\
XERJ \texttt{\#1108} & \textbf{\textsc{XLaya} Standalone / Ensemble (PASS)} & \textbf{80.0\% (96/120)} & \textbf{0.00\% (0/30, 0/36)} & --- & \textbf{29.99} \\
\bottomrule
\end{tabular}
\end{table}Axis 4: Zero-Shot Blind SWE (Kaggle 129, SWE-bench_Verified), nvidia/When2Call, PLE 29 & Container-A ADK
Zero-Cheat Disjoint Evolution (
125Tasks /21Repos): StartupAssertionError(FORBIDDEN_BLIND_EVAL_REPOS) blocks all15unique blind evaluation repos (4Kaggle +12SWE-bench_Verified,psf/requestsshared). Running5,000gens ×256pop (1.28Mevaluations in74.87 son RTX 5060 Ti) lifts7-repo unseen validation task hit rate from45.71%(BM25 K=3) to80.00%(e4b_sniper_distilled, fileR@3 = 75.95%,MRR = 0.6476) and85.71%(31b_deep, fileR@8 = 83.10%,MRR = 0.6512,Top-1 ECE = 0.0654).Official Blind
Kaggle 129(R1Sidecars vs.R2Pure Stdlib):
Benchmark / Regime ( | E4B R@3 ↑ | 31B R@8 ↑ | Pos MRR (E4B / 31B) ↑ | Test-Echo (E4B / 31B) ↓ | Top-1 ECE ↓ |
|
|
|
|
| — |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Strata, Latency & Invariance (
R1):Named/Symbol/Traceback(n = 37) reaches89.19%E4BR@3/94.59%31BR@8;Symptom-Only(n = 92) reaches55.43%E4BR@3/71.74%31BR@8(vs 29.35% / 43.48% BM25); per-repo:fastapi/fastapi(n = 67)61.19% / 80.60%,Textualize/rich(n = 48)62.50% / 70.83%,psf/requests(n = 13)92.31% / 92.31%,encode/httpx(n = 1)100.0%. Mean Stage-A E4B payload is699.9tokens (max = 800,-98.49%/66.1×vs Top-3.py46,231.4tok); uncontended cold sieve latency is255.33 ms/repo(0/129core gold files truncated);4-PC.npzwhitening shifts127/127archives from median cos0.8518to-0.0158([-0.1136, +0.0959]) with cross-regime drift|ΔS| = 0.0041(|ΔECE| = 0.0073); OOD negative SWE probes (n = 25) abstain at80.0%(0.0%wrong-confident atp ≥ 0.80).
External Blind
SWE-bench_Verified,nvidia/When2Call,PLE 29& Container-A ADK:
Suite / Artifact Target | Split / Metric | Baseline / v2.2.0 | XLaya v2.3.0 Verified | Safety, ECE & Container Proof |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Dual ZIPs / Subprocess Parity | Raw |
|
|
3. Resident MCP Server (6 Tools) & Standalone CLI Usage
A. Optional Neural Dependencies (Stage 0 Runs on Python 3.9+ Stdlib Alone)
# Stage 1 (Laya ModernBERT-large en/typed/ensemble + mmBERT) & Stage 2 (VegaML conformal vega-U / VegaVision):
pip install "laya>=0.4.31" "vegaml>=0.16.1" torchB. Register the Resident MCP Server (xlaya_mcp_server.py — 6 Tools, MCP 2025-03-26, ~30 ms Warm)
Add xlaya to your MCP client configuration (mcp_config.json, Claude Desktop, Cursor, Antigravity, Windsurf, or Cline). All 6 tools expose explicit MCP 2025-03-26 ToolAnnotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) with 2024-11-05 fallback negotiation:
{
"mcpServers": {
"xlaya": {
"command": "python",
"args": ["/path/to/xlaya/xlaya_mcp_server.py"],
"env": {
"LAYA_IDLE_TTL_SEC": "1800"
}
}
}
}PyPI & Official MCP Registry Packaging (
PREPARED (pending tag release)): Package metadata (pyproject.toml, PyPI distributionxlaya-mcpexposing console scriptsxlaya-mcpandxlaya), Official MCP Registry manifest (server.jsonforio.github.iscvlab/xlaya), and OIDC Trusted Publishing + Sigstore Cosign release workflow (.github/workflows/publish-mcp.yml) are PREPARED (pending tag release). Once the tagged release is live on PyPI, clients can launch the MCP server directly viauvx xlaya-mcp(or install locally viapip install xlaya-mcp/pip install "xlaya-mcp[neural]").
Resident MCP Tool | Core Parameters | Primary Use Case |
|
| End-to-end Stage 0 → Stage 1 → Stage 2 directory/file/Python-AST sweep returning |
|
| In-memory, zero-torch |
|
| Fits and persists a |
|
| Inspects warm-loaded models ( |
|
| Pre-warms checkpoints in RAM/VRAM ahead of latency-critical sweeps |
| (none) | Immediately evicts cached models and reclaims CPU RAM and CUDA VRAM |
C. Run as a Standalone Python CLI (laya_triage.py)
# 0. Zero-Torch (< 25 MB RAM) AST + 2-Hop Code-Graph Localization for Gemma E4B Sniper vs 31B Deep:
python laya_triage.py ./src --mode shortlist --query "OAuth2PasswordBearer Depends SecurityScopes bug" --profile nano --agent-tier e4b-sniper
python laya_triage.py ./src --mode shortlist --query "AsyncClient transport redirect leak" --profile workstation --agent-tier 31b-deep
# 1. Thorough 4-Facet Decomposed Rubric Scan (ensemble + disagreement >= 0.15 + file_summaries + views=3):
python laya_triage.py ./docs --mode rubric --thorough --rubric-preset architecture --top-k 10
# 2. 3-Question Joint NLI Contradiction Sweep with Calibrated Stage 1 Ensemble (0.45*en + 0.55*typed):
python laya_triage.py . --mode contradiction --ssot "ModernBERT-large uses a 512-token context window and outputs 0 LLM tokens." --lang ensemble --threshold 0.60
# 3. Multi-View Debiased Stage 2 vega-U Conformal Escalation (views=3 cancels position & phrasing bias):
python laya_triage.py ./skills --mode rubric --ssot "Production specification with CLI and MCP schemas" --vega --vega-model auto --views 3 --vega-top-k 10
# 4. Fit a Persistent TTTHead + Split-Conformal Policy & Evaluate with OOD Outbound Guard (supply your questions JSON):
python laya_triage.py --fit-rows benchmarks/data/routing_labels.csv --questions-file /path/to/questions.json --policy-path ./policies/routing_v1
python laya_triage.py ./docs --mode classify --policy-path ./policies/routing_v1
# 5. Local Multimodal Evaluation, 3-Phase CUDA Sieve Evolution (requires local disjoint snapshot manifest) & Self-Tests:
python laya_triage.py --image docs/figures/xlaya_v23_cover_1120x560.png --questions-file /path/to/vision_questions.json --vega-model 4b
python laya_triage.py README.md --mode contradiction --ssot "XLaya v2.3.0 runs with zero output tokens." --whole-file --vega
python laya_triage.py --self-test
python benchmarks/colab_kaggle_l4x4_runner.py --self-test --build-submissions --out-dir dist_adk
# python benchmarks/run_xlaya_evolution.py --verify-zero-leakage --manifest <path/to/disjoint_swe_v23_manifest.json>
python benchmarks/run_xlaya_benchmark.py --mode quick4. Universal Installation & Repository Layout
Install /xlaya into all detected agent skill directories on Windows, macOS, or Linux (automatically removing legacy /layax or /laya folders if present):
# Windows PowerShell (installs into ~/.gemini/config/skills, ~/.claude/skills, ~/.codex/skills, ~/.agents/skills):
.\scripts\install.ps1 -All# macOS / Linux (copy or --symlink into all detected agent skill roots, or --target <custom_dir>):
chmod +x scripts/install.sh
./scripts/install.sh --allAgent Class / Host | Target Skill Directory | Activation Command | Compatibility |
Any AI Agent ( |
|
|
|
Google Gemini / Antigravity ( |
|
|
|
Claude Code / Desktop |
|
|
|
Grok / Cursor / Codex / Windsurf / Cline / OpenHands |
|
|
|
Repository Layout
xlaya/
├── README.md # Flagship architecture, 5-profile & 4-axis benchmarks
├── LICENSE # Pure OSI MIT License
├── NOTICE # ConvAI Innovations upstream attribution & Apache-2.0 notices
├── pyproject.toml # Hatchling PyPI packaging (xlaya-mcp / xlaya; runtime allowlist)
├── server.json # Official MCP Registry manifest (io.github.iscvlab/xlaya)
├── llms.txt # Concise machine-readable entrypoint index for LLMs
├── laya_triage.py # Standalone 3-stage CLI, AST chunker & code-sieve engine
├── xlaya_mcp_server.py # Zero-extra-dependency JSON-RPC 2.0 stdio MCP server (2025-03-26)
├── .github/
│ └── workflows/
│ └── publish-mcp.yml # Tag-triggered PyPI OIDC + Official MCP Registry Cosign workflow
├── docs/
│ └── figures/ # Academic White-Theme cover & Figures 1-4 (PNG)
│ ├── xlaya_v23_cover_1120x560.png
│ ├── fig1_system_architecture_flowchart.png
│ ├── fig2_zero_cheat_evolution_workflow.png
│ ├── fig3_blind_evaluation_scorecard.png
│ └── fig4_pareto_and_codegraph_topology.png
├── policies/
│ └── sieve_genomes.json # CUDA-evolved L1 simplex genomes + Platt & tool_gate (5,679 B LF / 6,020 B CRLF)
├── scripts/
│ ├── install.ps1 # Windows PowerShell multi-agent installer
│ └── install.sh # macOS / Linux POSIX bash installer (LF normalized)
├── skills/
│ └── xlaya/
│ ├── SKILL.md # Portable /xlaya agent skill specification
│ ├── resources/
│ │ └── sieve_genomes.json # Co-located evolved genome policy for standalone skill copy
│ └── scripts/ # SHA-256 mirrored CLI & MCP server for standalone skill copy
│ ├── laya_triage.py
│ └── xlaya_mcp_server.py
├── tests/
│ ├── test_mcp_annotations.py # MCP 2025-03-26 protocol negotiation & 6-tool ToolAnnotations tests
│ └── test_v23_sieve_and_adk.py # Deterministic pytest suite (G-01 through G-08, Container-A & ADK parity)
└── benchmarks/
├── data/ # Clean Apache-2.0 fixtures (routing_labels, xerj#1108, PLE 29)
├── XLAYA_V2_BENCHMARK_REPORT.md # Full RTX 5060 Ti technical benchmark report
├── xlaya_v2_benchmark_results.json # Self-documented Stage 0/1/2 JSON telemetry receipts
├── xlaya_v22_evolution_results.json # Legacy v2.2 evolution receipts
├── xlaya_v23_evolution_results.json # Zero-Cheat repo-disjoint v2.3 evolution & calibration receipts
├── run_xlaya_evolution.py # Vectorized 5,000-gen CUDA evolution & Funnel 2 verifier
├── colab_kaggle_l4x4_runner.py # Colab/Kaggle L4x4 verifier & dual ADK submission builder
└── run_xlaya_benchmark.py # Reproducible --mode {quick,full} verification harness5. Related Toolkits & Author
iscvlab/xboost: Composable 15-skill/x*AI agent engineering ecosystem, 7 Compound Learning Playbooks (4-Tier Cascade), and 10 Python CLI & MCP verification engines (13,200+LOC).iscvlab/xocr: High-speed Hybrid Document AI, Two-Stage LaTeXbooktabs& HTML Table Surgery, Thai PUA/Sara-Am normalizer, and localTyphoon-OCR v1.5×Baidu Unlimited-OCR-2engine.iscvlab/mcp-bridges: Model Context Protocol (MCP) automation bridges for QGIS, Rhino 3D, Grasshopper, Adobe Illustrator, Figma, and Ghost Mouse.iscvlab/sse-space-syntax: High-performance C++/Rust/Python Space Syntax, Axial/Segment Angular Choice, VGA, and Isovist simulation engine.
Engineered and maintained by Napat (Tan) Phasundhiae (@napattan) at ISCV | Isocurve Research Lab (@iscvlab). Released under the MIT License (benchmarks/data/ple_dev_29_metadata.json and ADK templates are Apache-2.0); Stage 1 and Stage 2 neural backends interoperate with ConvAI Innovations' open-source laya and vegaml libraries.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI coding agents to interrogate a local repository deterministically for symbols, dependencies, call paths, routes, tests, and Git impact, returning verified structured evidence with exact line citations instead of requiring the whole codebase to be read.4-
- AlicenseNot gradedqualityBmaintenanceGives any coding agent a shared local decision layer for classifying, checking, scoring, and ranking items with calibrated probabilities, plus deterministic project fact discovery, all through one install. Every answer is advisory and marked auto or review, so the host agent can abstain or escalate instead of guessing.45 PyPI2Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI coding agents to query a fully local SQLite FTS5 memory index of a codebase, returning high-density identity cards with exact line references, AST symbol contracts, phase maps, and colloquial intent search so agents can work without scanning raw files. It also supports incrementally syncing code changes and enriching knowledge under a six-pillar quality gate, keeping everything on-device with no cloud leakage.5MIT
- AlicenseNot gradedqualityBmaintenanceGives coding agents local software intelligence: it surfaces the files, tests, and helpers relevant to a task before edits, flags missed callers and uncovered code during review, and returns a single SHIP / NOT PROVEN / NO-SHIP verdict when the agent stops. Everything runs on the local index with no network calls, so repository code stays on the machine.10MIT