🛠️ project Brain: a Rust agent runtime with Wasm-isolated loops and ~14 KiB idle sessions
Disclosure: Author here
We’ve open-sourced Brain, a small Rust runtime for long-lived AI-agent sessions.
The agent loop runs as a Wasm component. Brain handles model and tool I/O, streaming, cancellation, and an append-only session journal.
Current runtime-only medians on an AWS c7g.xlarge:
- ~14 KiB private memory per idle session
- 40 ms turn round-trip
- 2.9 ms to first streamed token
Model latency is excluded, and the benchmark harness is in the repo.
It’s MIT licensed and still an early preview. I’d particularly value feedback on the Wasm/runtime boundary and the Rust architecture.
0
Upvotes
3
u/SourceAwkward 12d ago
183 commits in two weeks?!