REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
MOmorluto/rea486k8,943 new stars in the last 7 days
Zero-output-token Decision, Judge, Moderation, Rerank & 4-way ActionGate MCP server ($0 GPU).
v1.2.0)Zero-output-token Decision, Judge, Drop-In & 4-way ActionGate API (COMMIT / FALLBACK / ABSTAIN / BLOCK) — built for both $0 local GPUs and air-gapped regulated enterprise AI agents (Sixi Assure).
Try Live on HF Space · PyPI (pip install laya-as-judge) · Closed-Loop Write-Up · RAIL Guard Study · Full Benchmarks & Math (docs/benchmarks.md)
$0 cloud egress; EU AI Act, FINMA, DORA & GDPR auditability), deterministic anti-spoofing & sixi-scanner regression rules (0.29 ms guard overhead, 1.00 ms MCP rug-pull block), calibrated uncertainty (ECE 0.029, explicit ABSTAIN instead of guessing), and full JSON audit_trace.6.7 ms Drop-In, Zero Lock-In): Swap URLs without rewriting your stack — drop-in OpenAI /v1/moderations, Cohere/vLLM /v1/rerank, batched /v1/decisions/batch (7.97× faster), Prometheus /metrics, 0 output tokens, 0% JSON parse errors, Apache-2.0.LayaToolGateMiddleware) and LangGraph (LayaJudgedGateNode) middleware, stdio MCP server (uvx laya-as-judge mcp), A2A v1.0 Agent Card, GitHub Action, and a zero-setup browser playground on Hugging Face Space.# 1. Try immediately with 0 GB VRAM (heuristic emulator for local dev & CI)
pip install "laya-as-judge[server]"
laya-judge serve --profile emulator --port 8000
# 2. Or deploy 100% air-gapped on 1x 16 GB GPU ($0 cloud, 11.75 GB VRAM)
llama-server -hf ggml-org/Kev-4B-GGUF:Q4_K_M --port 8080 --ctx-size 8192 --parallel 2
llama-server -hf ggml-org/Clef-Flash-GGUF:Q4_K_M --port 8081 --ctx-size 8192 --parallel 2
laya-judge serve --profile rtx-16gb --tier1-url http://127.0.0.1:8080 --tier2-url http://127.0.0.1:8081 --port 8000
from laya_as_judge import LayaJudgedGateNode, LayaToolGateMiddleware, get_engine, laya_gate_router, make_decision_router
engine = get_engine("systemone", base_url="http://127.0.0.1:8080")
mcp.add_middleware(LayaToolGateMiddleware(engine, high_stakes_tools=["issue_refund", "delete_account"]))
graph.add_conditional_edges("triage", make_decision_router(engine, routes=["billing", "shipping", "security"]))
graph.add_node("governance_gate", LayaJudgedGateNode(engine))
graph.add_conditional_edges("governance_gate", laya_gate_router) # commit / fallback / abstain / block
Attack → Guard → Prove Loop with sixi-scanner# Attack -> confirm with 0-output-token RedTeamVerdictJudge -> export deterministic guard rules
sixi-scanner scan --url http://agent/v1/chat/completions --stateful \
--confirm-url http://127.0.0.1:8000/v1/judge --out baseline.json --export-laya guard-rules.json
# Verify 100% regression closure in CI & enforce in runtime
laya-judge verify-sixi guard-rules.json
laya-judge serve --profile rtx-16gb --rules-file guard-rules.json --port 8000

| Interface | Endpoint / Entry | What It Replaces or Enforces | Output Contract |
|---|---|---|---|
| Decision API | POST /v1/decisionsPOST /v1/systemone | Drop-in local replacement for TypeSafe Jev, Google & Azure Decisions APIs | Typed noul, choice, score + calibrated simplex probabilities (0 output tokens) |
| Judge API | POST /v1/judgelaya-judge eval | 7 presets (faithfulness, safety, redteam, pairwise, trajectory, ...) + custom rubrics | passed, typed judgements, Shannon-entropy confidence & latency |
| Judged Decision | POST /v1/judged-decisionJudgedDecisionEngine | Decide → Cross-Family Verify → Judge → Deterministic Rules (--rules-file) | 4-way ActionGate (COMMIT / FALLBACK / ABSTAIN / BLOCK) + JSON audit_trace |
| Ecosystem Drop-Ins | POST /v1/moderationsPOST /v1/rerank · /v1/rankGET /metrics | OpenAI Moderation, Cohere/Jina/vLLM RAG Rerank, Best-of-N verifier & Prometheus metrics | Wire-compatible schemas (6.7 ms single decision, 7.97× batch speedup) |
| Agent Protocols & CI | uvx laya-as-judge mcpGET /.well-known/agent-card.jsonuses: radeksixi/[email protected] | Official MCP Registry stdio server (5 tools), A2A v1.0 endpoint & GitHub Action SARIF gate | JSON-RPC 2.0 / A2A v1.0 / SARIF 2.1.0 |
Every benchmark below is reproducible from scripts in this repository — see docs/benchmarks.md for full per-benchmark tables, calibration math, and methodology.
| Suite / Scenario | Hardware & Cloud Cost | Measured Result |
|---|---|---|
RAIL Guard Benchmark (512 real HF cases) | Local Kev-4B / GLiDE-9B ($0.00 cloud) | Pool A 95.0% F1 (0.0% benign FPR) · Full Pool B (392/392): 94.6% unsafe tool-call intercept |
Closed Security Loop (sixi-scanner ↔ laya) | Local Qwen3.8-27B + CUDA Laya ($0.00) | 2/2 findings closed in 0.29 ms (0/10 benign FPs) · DVMCP C04 rug-pull blocked in 1.00 ms |
Local 2-Tier GPU Cascade (240 HF questions) | 1× 16 GB RTX (11.1–11.8 GB VRAM, $0.00) | 78.0–78.7% accuracy (99.1% of Cloud Decision API), 12/12 red-team caught (0% FP), Q4 ECE 0.070 → 0.029 |
Hybrid Multimodal Cascade (Laya-Omega) | Local CUDA + selective Gemini (2,250 Qs) | 11 / 11 wins vs. Gemini Decision 1 (0.0234 10-fold OOF Top-1 ECE, $0.77 total run cost) |
| Drop-In Throughput & Latency | Local Laya-Q8_0 (+575 MiB VRAM, $0.00) | 6.7 ms /v1/decisions, 18.2 ms /v1/rank, 7.97× /v1/decisions/batch speedup (32 items) |
Note
Plain
pip install laya-as-judgeships with the zero-weightEmulatorBackend(< 1 ms) so CI pipelines, unit tests, and framework wiring work offline out of the box. Install[server]for HTTP/llama.cpp cascades,[laya]/[torch]for Linux/CUDA neural checkpoints, or[mlx]for Apple Silicon (7–14 mson M1–M4).
| Profile / Extra | Footprint | Command |
|---|---|---|
| Zero-VRAM CI / Dev | 0 GB | pip install "laya-as-judge[server]" → laya-judge serve --profile emulator |
| Edge / Laptop GPU | 5.88 GB VRAM | laya-judge serve --profile edge-6gb (Jetson Orin Nano / 8 GB GPU) |
| Single Workstation GPU | 11.1–11.8 GB VRAM | laya-judge serve --profile rtx-16gb (or rtx-16gb-glide) |
| Enterprise Node | 16.8–20.2 GB VRAM | laya-judge serve --profile workstation-24gb |
| Neural Checkpoints | ~0.7–1.0 GB | pip install "laya-as-judge[torch]" (CUDA/CPU) or pip install "laya-as-judge[mlx]" (macOS) |
docs/benchmarks.md) — Laya-Omega 9-benchmark table, 5 local-GPU experiments, RLCD & Temperature Scaling math, and 7 Python SDK recipes.examples/) — FastMCP & LangGraph gates, DecisionBench adapter, local Judged-Decision server, and closed sixi-scanner loop.CHANGELOG.md) & Contributing (CONTRIBUTING.md).sixi.ai).Apache License 2.0 — see LICENSE. Upstream Laya checkpoints by Convai Innovations; Apple Silicon MLX port by mizorewww/laya-mlx. Built by Radek Brus (@radeksixi · Sixi Lab R&D).
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
MOmorluto/rea486k8,943 new stars in the last 7 days
Read and write files, create and search directories, update access without restart.
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pentesting, vulnerability discovery, bug bounty automation, and security research. Seamlessly bridge LLMs with real-world offensive security capabilities.
0X0x4m4/hexstrike-ai14k192 new stars in the last 7 days
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
MRmrexodia/ida-pro-mcp14k97 new stars in the last 7 days
Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
BEbeenuar/AiSOC8.8k941 new stars in the last 7 days