Brain Open-Sourced: Wasm Agent Loops, Stateful Sessions and Typed Tools
Redcxx · reddit · 2026-09-02
The author (a project member) open-sourced Brain, an MIT-licensed agent runtime in early preview.
Core design: strict separation between the agent loop (deciding what happens next) and the runtime (all model/tool I/O), with loops compiling to Wasm. Brain handles session state, streaming, cancellation, restart recovery, and journaling. Typed tools run in your app process, a browser, a microVM, or a remote backend without changing the session API. Ships a TypeScript SDK and supports 70+ model providers.
Repo: github.com/aexhq/brain. The author also asks whether the loop/runtime split matches how others structure agents or is an unnecessary abstraction.
More from coding & agent
- Submitting a PR Isn't a Flex Anymore in the AI Coding Era — pjausovec · 2026-09-02
- Open-source 7-layer production agentic AI system hits 937 GitHub stars — mdancho84 · 2026-09-02
- Jest creator Nakazawa: six engineering values that matter more as coding agents speed up — bibryam · 2026-09-02
- ODS turns your PC into a private AI server with Ollama, n8n and ComfyUI pre-wired — tom_doerr · 2026-09-02
- Reverse-engineering ChatGPT's memory: 4 layers, no vector DB, no RAG — HowDevelop · 2026-09-02
- Google's $300 credit broke Gemini nodes in ComfyUI, so one dev built a Vertex AI workaround — Cute-Appointment6874 · 2026-09-02