r/AgentsOfAI • u/Am1nadav • 2h ago
Discussion Infimum: an open-source language + AI IDE where LLM-generated code is checked by Z3 before it runs (with 7 LLM providers & browser sandbox)
When AI agents and LLMs write application logic, reviewing the output with another LLM prompt is still probabilistic, and running untrusted AI-generated code directly on your machine is risky.
I've been building an open-source project in Rust called Infimum to test a different approach: give LLMs a small language with built-in math verification and a strict sandbox.
What's inside (all open source):
- Automatic Z3 checks at compile time: rules like "no division by zero", "no overflow", or "the split payments always add up to the exact total" are verified automatically before the code can run. If a rule can fail, the compiler shows a concrete counterexample.
- Compact AI spec (428 lines): the entire language guide fits into a single short prompt so models can write valid code without fighting a huge ecosystem.
- Tiny sandboxed capsules (20-55 KB): every build outputs a single WebAssembly capsule with an inspectable permission passport (files and network denied unless explicitly declared), runnable in the browser or from Python and Node.
- Infimum Code IDE (Desktop & Browser): an AI coding workspace supporting 7 providers (Gemini, OpenAI, DeepSeek, OpenRouter, Groq, Zhipu, Mistral) with live build, Z3 verification, instant preview, and passport viewer.
Links to the GitHub repo and live browser demos (Z3 Playground, Online IDE, interactive capsules) are in the first comment below.
Curious what other builders here think: is a dedicated verified language + sandbox worth it for AI-generated agent logic, or do you prefer keeping everything in Python/TypeScript with tests?