r/coolgithubprojects • • 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)

Post image

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

Feedback, architectural critique, and independent hardware benchmarks are welcome!

7 Upvotes

2 comments sorted by

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:

  1. What "50 Threads" Means: It’s not 50 concurrent agent instances. The task given to the coding models was the Atomic Transaction Ledger in Rust (ATLR) specification: write a concurrent financial ledger and build an integration test suite that subjects it to a 50-thread concurrent simulation (thundering herd pattern) with atomic balance rollbacks and canonical lock ordering.
  2. Does Omni Engine make smaller models "smarter"? No, it doesn't alter model weights. What it fixes is the runtime execution harness and context integrity, where standard agent loops break down:

Here is what actually happened when we ran head-to-head tests:

  • Aider + Gemini Flash (Cloud API): Completed quickly but suffered an unhandled panic and failed to complete the task.
  • Aider + Ollama (Local on CPU): Trapped in an infinite token retry loop for over 5 hours (5h 24m) because destructive partial diffs polluted the workspace and broke compilation.
  • Omni Engine + Qwen 3B (Pure CPU): Ran completely offline on CPU. Because Omni enforces a Zero-Wipe Invariant (W = ∅) in RAM cleanrooms, the repo stayed pristine. The 3B model had a minor syntax slip, but instead of wiping files, Omni isolated it and the run actually documented the exact error and maintenance fix in the README. This proved sovereign CPU viability.
  • Omni Engine + Qwen 7B (Scaled on GPU/CUDA): Stepping up to 7B completed 100% of the ATLR multi-file ledger with zero errors and a 100% test pass rate in 37 minutes. This proved seamless scalability.

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!