I architect deterministic AI infrastructure, relational working-memory substrates, transactional coding harnesses, and bare-metal multi-GPU inference pipelines. Instead of wrapping fragile prompts around metered cloud APIs, I treat language models as stateless compute samplers governed by PostgreSQL ACID state, sandboxed verification, and empirical benchmarks.
- Stateful Agent Substrates & Long-Horizon Memory: Designing bounded Model Context Protocol (MCP) engines backed by
PostgreSQL 16 + pgvector HNSW, zero-Dockernode:sqliteWAL, and PorterFTS5—proven across 10M-token horizons where flat sliding-window RAG collapses. - Transactional Safety & Cross-Family Verification: Building fail-closed execution harnesses with Bubblewrap sandboxes,
<32mstwo-phase commit (2PC) diff journals, AST call-graph blast-radius gates, and Cross-Family Referee Consensus (Qwen3generators audited by orthogonalGemma 4&Hermes 3models). - Cost-Disciplined Bare-Metal LLMOps & Post-Training: Operating an 8-node
10GbELinux GPU cluster (57GB+pinned local VRAM, zero CPU spill) with on-demand 96GB Blackwell burst compute,<15µscascade routing (60–80% cost cut), and test-gated 120B / 30B / 8B QLoRA + DPO self-distillation. - Zero-Hallucination Evidentiary Retrieval: Engineering layout-true Poppler TSV document spines (
100%held-out citation accuracy) and two-pass proposition entailment pipelines enforcing a 0.00% False Support Rate on statutory and contract corpora. - Real-World Operational Ownership: Pairing high-velocity
Node.js 22 ESM,TypeScript, andPython 3.12systems engineering across 34+ CI-verified repos with prior hands-on leadership in commercial NEC electrical diagnostics and brick-and-mortar P&L operations—shipping systems that fail closed and hold up in production.
# Run the full 7-pillar, 39-tool MCP ecosystem locally in one command (Node.js 22+ SQLite WAL or PostgreSQL 16)
npx krusch-stack init --ide all --defer-tools && npx krusch-stack doctor| System | Focus | Verified Engineering Impact |
|---|---|---|
krusch-stack v1.0.0 |
Unified Agent Stack | 1-command installer (npx / Docker) bundling 39 annotated MCP tools across 7 pillars + Generalized 2PC Tool-Action Harness (10 → 0 duplicate MCP calls, +20 pp failure-slice recovery); UC Berkeley BFCL v3 Live (2,251 Qs): deferred 64-tool guard lifts accuracy 59.9% → 66.3% while cutting schema tokens -80.7% (Cross-Stack Benchmarks ↗). |
@krusch/toolkit & krusch_toolkit v1.7.0 |
Certified Code Substrate | 35 dual-runtime JS/TS & Python Lego bricks (60 .d.ts subpaths, 128/128 Node & 201/201 pytest suites) + 7 zero-LLM blueprints (krusch-lego); enforces 99/99 (100%) zero-boilerplate compliance across the entire homelab workspace & 8/8 (100%) Rule-of-3 coverage (Architecture Paper ↗). |
krusch-context-mcp v2.0.0 |
Agent Working Memory | 5-verb hierarchical memory & SHA-256 drift gate. #1 Overall on Official DolphinBench (600 tasks, 19 runs / 11,400 gpt-5.6-sol traces, 97.00% Oracle@19): 91.17% (547/600) @ $24.54 with Gemini 4 Argon (Low) (+20.50 pp above #1 GPT 5.6 Luna + Mem0 70.67% @ $96.21, Return on Memory Paper ↗), 81.33% (488/600) @ $1.35 on model-matched GPT 5.6 Luna (71x cheaper than Mem0), & 54.17% (325/600) #1 Open-Weights Gemma 4 31B @ $0.00 (42.67% local 30B, Local AI Study ↗); plus all 2,000 Official ICLR 2026 BEAM (100K–10M tok) probes. |
krusch-cascade-router |
Inference Routing | #1 on Martian RouterBench (36,497 Qs) (0.7488 0-shot & 0.7695 5-shot ID AIQ, -72.6% cost @ 98% GPT-4, & #1 OOD beating ZeroRouter), #1 on ACL 2026 LLMRouterBench (0.4269 Pareto, -83.95% cost across 12,566 Qs & unseen OOD ARC-AGI/HLE), & 0.7263 on RouterArena (PR #169 open · 74.44% @ $0.38/1K, 91.43% rob., beating Azure-Model-Router 70.37 & GPT-5 64.32 @ 26.4x lower cost); live SSE abort cuts 120B TTFT -48.0% & routes Polyglot 1,442x faster (Live Arena ↗). |
Jean SRE & @krush420 |
Autonomous SRE & QLoRA | 24/7 daemon sweeping 100 repos in hermetic sandboxes + Rule-of-3 scouting; published 18,131 Zero-Leak SFT + DPO rows (7 splits) to train 120B Teacher, 30B Student, & 8B Edge Wave-4 QLoRA + DPO adapters (25% → 100% brick adoption; 3/3 DolphinBench lifts incl. 15.7x on 8B). |
krusch-git · krusch-fs-mcp · krusch-coding-harness |
Code, Security & 2PC |
ACL 2025 CoIR (2.39M docs / 162,216 Qs): 56.40% #1 10-task NDCG@10 (> Voyage-Code-002 56.26%); RepoBench-R (47,998 Qs): beats CodeBERT & UniXcoder; AgentDojo (1,046 eps): 0.00% ASR (0/949 attacks); Aider Polyglot (225): 19.6% → 51.6% Pass@2; BIRD-SQL (500): 26.0% → 40.2% EX (1.55x). |
krusch-law & krusch-nexus |
Evidentiary RAG | 0.00% False Support Rate statutory DAGs & citation spines; LegalBench-RAG (6,889 Qs / 714 docs): 26.74% Macro F1 (k=1) & 25.81% F1 / 44.72% Recall (k=2) (33.95% MAUD R@2 > OpenAI 3-large + Cohere R@64 28.28%). |
- Languages & Runtimes:
JavaScript / TypeScript(Node.js 22+ ESM,React,Vite,Express,Cloudflare Workers,oxlint) ·Python 3.12(FastAPI,SQLAlchemy 2.0,Pydantic v2,PyTorch,asyncio) ·SQL - State, Graph & Search:
PostgreSQL 16(pgvectorHNSW,tsvectorGIN, Hybrid RRF) ·node:sqliteWAL + external-content PorterFTS5·snowflake-arctic-embed2(8,192-ctx,1,024-dim, asymmetricquery:calibration) - Infrastructure & LLMOps: Multi-Node Bare-Metal Linux (
10GbE,Tailscale,systemd,Docker,Bubblewrap) ·Ollama/vLLM(q8_0KV) ·96GB RTX PRO 6000 BlackwellMXFP4 QLoRA ·GitHub Actions CI
📖 Selected Architecture Writing (All 26 Papers on krusch.dev →)
- Return on Memory: Why Test-Time Reasoning Unlocks Zero-Distillation Agentic Retrieval on Official DolphinBench (
91.17%,#1Overall) — Holding13,539episodic sessions byte-for-byte constant inside frozen0o444SQLite checkpoints ($0.00Raw-RAG + 4-Way RRF) across19full600-task Officialgpt-5.6-solruns (11,400traces across6model families), model-matchedGPT 5.6 Luna (High)reaches81.33%(488/600@$1.35) (+10.67 ppabove#1Luna + Mem070.67%@$96.21,71.0xlower cost),Gemini 4 Argon (Low)hits91.17%(547/600@$24.54,97.00%Oracle@19,4.19x4+-fact lift), and Apache-2.0Google Gemma 4 31Bhits54.17%(325/600@$0.00)—beating8commercial cloud stacks up to$1,830.57. - What 5,535 DolphinBench Runs Taught Us About Local AI Memory — Controlled multi-family study across
600workspace tasks +15counterfactuals (13,539sessions /1.50Mtokens,0o444frozen SQLite WAL): general-domainGemma 4 31B(54.17%@$0.00) outperforms matched-scaleQwen2.5-Coder-32B(35.33%) by+18.83 pp, Wave-4 QLoRA+DPO lifts local30Bto42.67%&8B Q4_015.7x, andkrusch-stack's2PCAction Harness cuts duplicate MCP calls-95.2%(42 → 2) across all600local30Btasks (10 → 0on the diagnostic slice,50.33%Oracle@2). - Why Coding Agents Need Certified Lego Bricks, Not Prompted Boilerplate: Inside a 35-Brick, Self-Evolving Code Substrate — Eliminating LLM-regenerated HTTP
413TCPRSTraces, DNS-rebinding SSRF, FTS5 injection, and YAML alias bombs across99/99(100%) homelab repositories using@krusch/toolkitv1.7&krusch_toolkitv1.6, pre-commit MCP diff guards, Rule-of-3 scouting, and 2-stage QLoRA + DPO calibration (25%→100%). - The 15 Production Agentic Systems: Reference Architecture, State-Machine Invariants & Benchmark Proofs — Three architectural teardowns covering
100+async orchestration, typed Pydantic v2 swarms,72hSlack HMAC HITL leases,100-trajectory Golden DAG CI gates,$0.50cost kill-switches, and5%shadow diffing. - How an Open-Weights Sovereign Stack Stacks Up Across 317,000+ Benchmark Queries (Including Where Cloud Still Wins) — Empirical cross-stack comparison against wrapper and commercial cloud stacks across 11 external benchmarks (
36raw Hugging Face JSON audit logs & SHA-256 gates), with honest gaps and reproduction commands. - The 2026 Sovereign AI Tech Stack — Multi-family GPUs, 3-Tier MCP substrates, zero-bloat runtimes, and closed-loop QLoRA distillation.
- Multi-Tier Cascade Routing Architecture —
#1on MartianRouterBench(0-shot/5-shotID & OOD),#1on ACL 2026LLMRouterBench(-83.95%cost),RouterArena(0.7263across8,400live queries,74.44%@$0.38/1K,91.43%rob., PR #169 open), live SSE logprob aborts (-48.0%TTFT), and1,442xfaster agenticPolyglotrouting. - Beyond Flat Vector RAG: What Makes
krusch-context-mcpSpecial — 5-verb hierarchical working memory, temporal lineage, and SHA-256 span-drift checks across100K–10Mtokens. - The Krusch Coding Harness — Why autonomous code agents require a PostgreSQL
2PCtransaction manager rather than a prompt.


