r/coolgithubprojects • u/ielfeqi • 14d ago
Omni Engine: Datacenters & billions in GPUs are masking bad agent architecture. We proved an in-process Rust runtime beats Python agent loops on an 8GB laptop (Benchmarks + Reproducible Code)
GitHub Repository: https://github.com/omni-engine-ai/omni_engine Live Showcase & Benchmarks: https://omni-engine-ai.github.io/omni_engine/
Most multi-agent coding frameworks (Aider, CrewAI, AutoGen) tell developers they need high-end datacenter GPUs or massive cloud API budgets to run autonomous software engineering loops.
We believe that requirement isn't about AI intelligence—it's a band-aid over architectural bloat: 1. The IPC Tax: Wrapping local models in HTTP daemons (Ollama/vLLM) burns 25ms to 120ms per tool hop in JSON serialization. 2. Process Duplication: Python runtimes + virtual environments + workers easily push peak RSS past 6GB–10GB before token generation even begins. 3. Dirty File State: Coding agents hallucinating diffs overwrite files without atomic rollback verification.
What We Built: Omni Engine To solve this from the systems level up, we built Omni Engine in pure Rust: - Direct In-Process C-FFI: Instead of querying localhost HTTP APIs, Omni links llama.cpp directly in-process via C-FFI. Tokens write straight to native memory buffers. - Sub-6ms Context Swapping: Token arenas are reused in RAM with O(1) KV slicing (llama_kv_cache_seq_rm), eliminating prompt re-evaluations. - Hermetic Bubblewrap Cleanrooms: Agent tool execution runs inside isolated Linux kernel namespaces with a strict Zero-Wipe Invariant (W = ∅). Writes stay in ephemeral RAM until 100% of unit tests pass.
The 50-Thread ATLR Concurrency Benchmark (8GB RAM Dev Machine) We benchmarked Omni Engine against standard local Python agent loops running identical refactoring tasks: - Inference Call Latency: 38.4ms (HTTP loopback) vs < 5.8ms (Omni C-FFI) -> -84.9% latency - Peak Runtime Memory (RSS): 6,840 MB vs 2,180 MB -> -68.1% RAM footprint - Inference Throughput: 24.2 tok/s vs 41.6 tok/s -> +71.9% speed - Wall-Clock Completion Time: 2h 14m vs 37m 12s -> 3.6x faster - Deterministic Pass Rate: 76% vs 100% (Zero wipes)
Try It Yourself in Under 60 Seconds: You can verify the benchmark on any Linux/macOS machine or a free Google Colab: curl -fsSL https://omni-engine-ai.github.io/omni_engine/install.sh | bash
- Canonical Repo: https://github.com/omni-engine-ai/omni_engine
- Web Architecture & Data: https://omni-engine-ai.github.io/omni_engine/
Feedback, architectural critique, and independent hardware benchmarks are welcome!
2
u/lowercase00 14d ago
I’m kinda confused. I think you are saying that this harness can make smaller agents performer better? The sensationalist title and the confusing table makes it kinda hard to understand what’s the point. Tool loop, throughput, quality - those things are so different and affected by completely different aspects, not sure I follow the logic.
1
u/ielfeqi 13d ago
Fair questions! Let me clear up the exact setup and what the benchmark actually measured:
Here is what actually happened when we ran head-to-head tests:
In short: Omni doesn't make a 3B model reason like Claude 3.5 Sonnet, but its in-process C-FFI runtime and cleanroom isolation prevent the fatal workspace corruption and latency loops that kill local models in Python/HTTP harnesses.
Hope that clarifies the benchmark architecture!