Repository

DivyanshGolyan/rui

Rui

Open github.com

DivyanshGolyan/rui

Rui

A memory-efficient agent runtime that orchestrates hundreds of AI agents in a single shared process, using only 2.5 MB of RAM for 100 agents. Supports durable sessions, TypeScript client, MCP tools, and a terminal UI.

Visit project

Show me a random project

First shared
Nov 7, 2026
HN activity
10

Show HN@divyanshgolyanNov 7, 2026

Show HN: Rui, orchestrating 100 agents in 2.5 MB of RAM

Hi HN, I've built Rui (cotton in hindi), an agent runtime built for memory efficiency. The main design choice is that sessions share a host rather than each being a process. Agents are state in DB and the host handles the active work through a share event loop. LLMs are getting better at coordination and teams (swarms) of agents are coming. Memory is getting expensive and my machine is always using swap. We cannot be wasting hundreds of MBs of RAM for an orchestrator (AKA the harness) of LLMs and tools. More information on the architecture and measurement methodology is at https://divyanshgolyan.com/posts/hundred-agents/ I'd love feedback about this design boxing me into a corner and any large tradeoffs I'm not seeing!

Community

Hacker News discussion

Loading the thread…