Kevin Ruschman
I build local-first agent infrastructure so coding agents and company knowledge systems can plan and test without writing your disk until you approve — state in Postgres, models interchangeable.
Language models are probabilistic samplers; modifying your codebase or managing confidential client knowledge requires a deterministic transaction manager. My open-source architectures replace hallucination-prone prompt chains with hard transactional invariants, sandboxed test verification, and atomic two-phase commit disk updates.
Creator of krusch (coding harness), kd-Code (developer workbench with center-stage diff review), krusch-context-mcp (a 71★ sovereign 16-tool Model Context Protocol server), and krusch-cascade-router (sub-15µs CPU syntactic gates with neural centroid escalation).
The Invariant Lifecycle: Stage → Verify → Commit
How krusch and kd-Code prevent coding agents from corrupting git repositories or applying broken refactors.
The model plans and generates diffs directly into relational tables (staged_diffs). Zero unvetted file writes ever touch your physical working tree.
A shadow workspace runs automated test suites, typechecks, and linters in isolation. If a test fails, the staged turn aborts instantly without repo pollution.
Inspect side-by-side color-coded diffs via @pierre/diffs, symbol graph dependencies, and AST impact analysis before authorizing disk modification.
Only on verified tests AND explicit human approval does the two-phase commit manager fsync changes to disk. Instant 1-click rollback preserves sanity.
Explore by Need: Three Doors
Select your entry point across developer harnesses, persistent memory, and sovereign enterprise pilots.
Coding Harness & Workbench
Stop coding agents from hallucinating broken repositories. Models plan in Postgres, test in sandboxes, and apply changes strictly via atomic 2PC commits.
Memory & Cascade Routing
Eliminate agent amnesia and slash routing costs. Unified 16-tool Model Context Protocol server featuring temporal decay and AST graphs, paired with sub-15µs CPU routing.
Sovereign On-Prem Systems
Air-gapped document intelligence and high-throughput data engineering for regulated practices and high-stakes operations. Deterministic page-and-line evidence grounding, messy OCR pipeline confidence, and de-risked 30-day pilots.
Core Architectural Invariants
The design rules governing every system in the KruschDev ecosystem.
Invariants Over Prompts
Never trust language models to police their own file writes or follow conversational rules. Enforce constraints in PostgreSQL ACID tables, AST parsers, and atomic two-phase commit journals.
Multi-Tier Routing Cascades
Don't burn a 500ms LLM call just to choose an LLM. Intercept code fences and SQL on CPU in <15µs for $0.00, escalate to sub-50ms neural centroids, and only query frontier models when necessary.
Local-First Sovereignty
Run compute, vector indexes, and episodic memory on self-hosted bare-metal clusters. Privileged files, client discovery, and organizational memory never leak to third-party cloud APIs without explicit consent.
Technical Insights & Publications
Architectural breakdowns on memory substrates, agent steering, and sovereign infrastructure.
⚡ Postgres as the State Plane: Side Effects Require a Transaction Manager
A language model is a probabilistic sampler; side effects require a transaction manager. How krusch (coding harness), krusch-pre-router (sub-15µs CPU gate), krusch-cascade-router, and krusch-context-mcp unify into an invariant-gated developer harness.
Read Full Architecture Article →🧠 Beyond Simple RAG: What Makes krusch-context-mcp Special
Exploring the core capabilities of krusch-context-mcp: mathematical temporal recency decay, declarative steering facts, company brain consensus, lakebase SQLite sync, and research engines.
Read Architecture Deep Dive →⚡ Architecting Code-Agent Retrieval & Memory: Beyond Naive Vector Search
Why sliding-window RAG fails on codebases. Systems deep dive into krusch-context-mcp: single-store PostgreSQL 16 + pgvector, structural symbol extraction, SQL Reciprocal Rank Fusion (RRF), dependency graph walks, and deterministic server token budget packing.
Read Retrieval Architecture Article →🚀 Local-First Core, Hybrid Cloud Elasticity: Decoupling Agent Memory
Decoupling AI coding agent working memory into managed PostgreSQL (pgGraph + HNSW) and optional cloud embeddings for zero VRAM load and global context while keeping file writes strictly sovereign.
Read Full Article →