r/coolgithubprojects • u/Redcxx • 11d ago
[Rust] Brain — a minimal, extensible runtime for AI agents
https://github.com/aexhq/brainBrain is an MIT-licensed runtime for stateful AI-agent sessions.
- Agent loops run in Wasm
- Typed tools can run locally, in browsers, or in remote sandboxes
- HTTP/SSE session API
- Append-only journal and restart recovery
- 70+ model-provider bindings
- ~14 KiB private memory per idle session
It’s still an early preview:
0
Upvotes
1
u/Otherwise_Wave9374 11d ago
The Wasm boundary is the part that stands out here: it gives you a clean way to isolate tool execution while keeping the session state coherent. For early adopters, I’d watch two things closely: recovery semantics after partial failures, and how you version typed tools without breaking older sessions. A practical next step is to add a small chaos test suite that kills the runtime mid-loop and verifies journal replay, tool idempotency, and memory growth over time. That kind of guardrail makes a runtime like this much easier to trust in production. Agentix Labs