2026-11-27 16:21 UTC

Rui pursues low-memory local coding-agent sessions; 100-agent RAM claims differ

state: expiredheat: mediumuncertainty: mediumrelevance: mediumagent-runtime memory-efficiency multi-agentDivyansh Golyan

What is this?

Rui is a local coding-agent runtime by developer Divyansh Golyan, written in Zig with SQLite. Its design shares a host and event loop across conversations, storing agent state durably rather than running each session as a separate process. In the supplied GitHub text, Rui is in development: it supports Codex sign-in, interactive conversations, scripts, optional Bash approval and saved-result recovery; file editing and structured answers are not yet available. It is listed as supporting Apple Silicon macOS and x86-64 Linux, with other platforms experimental. The Show HN headline claims 100 agents in 2.5 MB of RAM, but that figure is not substantiated in the supplied project text. Web results show later-looking project material describing 100 waiting agents in 7.4 MB, and release pages including v0.51.4; those snippets do not establish the measurement conditions or how they relate to the 2.5 MB claim. The evidence therefore supports the runtime’s design and some functionality more strongly than any specific memory benchmark or qualification status.

Why it matters

If Rui’s shared-host approach can reliably run many idle or waiting agent sessions with little overhead, it could make persistent, multi-agent coding workflows more practical on ordinary developer machines. Its durable sessions and recovery aim to keep work available across terminal exits and some crashes. The memory headline needs qualification: the supplied evidence gives competing figures, and the project documents limited platform and workload testing. Rui also executes Bash with the user’s access by default, so local convenience comes with security trade-offs.

Current assessment

New evidence: Golyan introduced Rui on Hacker News as a memory-efficient runtime, explaining that conversations share a host and event loop while agent state lives in a database. The linked project description says sessions persist in SQLite, work can continue after the terminal closes, and saved work can be recovered after a Rui crash; it explicitly does not promise recovery from OS crashes or power loss, and avoids rerunning commands whose outcome is unknown. It documents successful checks for a live gpt-6-luna conversation, approved Bash and restart recovery on supported platforms, while saying other models, live credential refresh and full mixed-workload qualification have not passed. Commands run with the user's full access; the project directory is not a sandbox. The 2.5 MB figure appears in the Show HN title, not in the supplied project description. Search results surface a HasGeek submission claiming 7.4 MB for 100 waiting agents (about 7.5 KB each), with a comparison to Codex app-server, and GitHub release pages including v0.51.4. These are useful signs of newer activity and a conflicting memory figure, but the snippets alone do not verify the benchmark, its methodology, or whether it measures the same build and workload. Track the project’s release status and qualification details before treating the headline performance as established. The potential implication is lower runtime overhead for persistent local agent teams, not evidence that the models themselves are more capable or that 100 agents are useful for every task.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p6momentum: steady2 platformsage 695h
points/hour across evidence · reading as of 2026-11-21 23:22:43.618826+11:00 · deterministic, not a model opinion

How the heat travelled

10-23 13:00⭐ origin echo-reconstructedThis is the original primary source: Divyansh Golyan’s post “Rui: a hundred agents in 2.5 MB,” published on his own site. It says: “In Rui,
Divyansh Golyan on blog (echo) · attributed from hn.story.50403797
—
11-07 12:02first on hacker news · published · +359.0hShow HN: Rui, orchestrating 100 agents in 2.5 MB of RAM
divyanshgolyan
—
11-07 12:02amplified on hacker news 👑hn.story.50403797
divyanshgolyan
peak 1 · 0 comments · 104% of case engagement
11-07 12:20our radar first saw it · +359.3hdiscovery anchor: hn.story.50403797—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Rui, orchestrating 100 agents in 2.5 MB of RAM
Retrieved article excerpt

Open article · Retrieved 2026-11-07T12:21:26.386972+00:00

# Rui

Rui (रुई, Hindi for cotton) runs coding-agent conversations on your machine.
Ask it to investigate a project or run Bash commands, and it saves every message, decision and result in SQLite.
Close the terminal and the work keeps running in the background.
Come back later to the same conversation.

If Rui crashes, it recovers the saved work.
It never reruns a command whose outcome it cannot confirm.

## Status

Rui is in development.
It supports Codex sign-in, interactive conversations, scripts, optional Bash approval and saved-result recovery.
A file-editing tool and structured answers are not available yet.

Rui supports Apple Silicon macOS and x86-64 Linux.
Builds for ARM64 Linux and Intel macOS are experimental.
On both supported platforms, a live `gpt-6-luna` conversation, approved Bash and restart recovery have passed.
Other models, live credential refresh and the full mixed-workload qualification have not.
See [test results and limitations](https://github.com/DivyanshGolyan/rui/blob/main/tests/qualification/README.md#current-checks-and-qualification).

Before you use Rui on a project, know its limits:

- Commands run with your user's full access.
  The project directory is not a sandbox, and a detached subprocess or blocked I/O can outlast a stop request.
- If a crash leaves a command's outcome unknown, Rui reports it as indeterminate and does not rerun it.
  Rui does not promise recovery from an OS crash or power loss.
- Full tool output is temporary.
  Saved results and excerpts remain after Rui drops it.

## Install

You need an Apple Silicon Mac with macOS 15 or newer, or x86-64 Linux with glibc 2.34 or newer, such as Ubuntu 22.04, Debian 12 or RHEL 9.

```
curl -fsSL https://github.com/DivyanshGolyan/rui/releases/latest/download/install.sh | sh
```

The installer puts `rui` in `~/.local/bin` and checks the download's SHA-256 digest.
If `~/.local/bin` is not on your `PATH`, it prints the line to add to your shell profile.

Run `rui upgrade --check` to inspect the latest published stable release without installing it or starting a Host.
Run `rui upgrade` to update an eligible released installation under `~/.local` and, only if the selected Store already has a running supported Host, restart that Host.
A selected source build or managed build with unknown release identity is not upgraded automatically; run the standalone release installer above to deliberately switch it to a release.
Package-provided and custom binaries remain their application's responsibility.
The restart affects every Session in that Store and can interrupt work.
For an eligible installation with no running Host, Upgrade only installs.
The terminal's `/upgrade` panel offers Install and Cancel in both the overview and conversation.
Installation and activation are separate: an unsupported or application-owned Host launch is not blindly stopped and is reported as installed but not activated.
The manual release installer above and source installation remain install-only.

Updates keep saved work and sign-in; retained earlier builds are not an unconditional rollback after a Store migration.
The target build's schema determines compatibility, not version punctuation: supported SQLite formats are backed up and migrated at Host startup, while MySQL schema changes are operator-owned.
If target compatibility facts are unavailable, compatibility is unknown until startup validates it.
Run `rui --version` to see what you have.

## Start a conversation

1. Sign in once with your ChatGPT account.
   Rui uses OpenAI's device code login, which you must enable first.
   Turn on device code authorization for Codex in your ChatGPT security settings.
   On a workspace account, an admin allows it in the workspace permissions instead.
   Then run:

   ```
   rui auth login codex     # or: rui auth login openai, to use an OpenAI API key
   ```

   Open the link it prints, sign in and enter the code.
   Never share the code.
   See [OpenAI's Codex sign-in guide](https://learn.chatgpt.com/docs/auth) if the setting is missing.
2. Go to your project and start Rui:

   ```
   cd /path/to/your/project
   rui
   ```
3. Type a request at the `›` prompt, such as `Investigate the failing test`.

Bash runs in your terminal's environment, so the agent finds the tools your shell finds.
A tool you install or a venv you activate reaches the agent with your next message.
The environment stays in memory and is never saved.

By default, Bash runs without asking.
To approve each command, enter `/configure --permission-mode ask` before your first request.
Rui then shows each command above an Allow once / Deny choice: ← and → pick one, and Enter confirms it.

To leave, type `/exit` or press Ctrl+C.
Work continues in the background.
Run `rui` again to see your unarchived conversations and press Enter on one to return to it.

## Archive a conversation

In the overview, select a Session and enter `/archive`.
If it has work, confirm **Stop and archive**.
Rui waits for the stop to complete before it hides the Session.

Use `/sessions archived` to find archived Sessions, or `/sessions all` to show both views.
Enter `/unarchive` to restore a Session without starting work.
Sending a new Message to an archived Session also restores it.
Archive keeps the conversation history and files.

## Skills

Rui discovers `SKILL.md` skills in your repository's `.agents/skills` and the Host user's `~/.agents/skills`; repository names win collisions.
Use `/skill NAME` to read one into the conversation and `/reload-skills` to refresh the advertised catalog without starting a model turn.
Skills are ordinary conversation content, grant no permissions and execute nothing on load.
See [terminal commands](https://github.com/DivyanshGolyan/rui/blob/main/docs/using-rui.md#skills) or [scripted invocation](https://github.com/DivyanshGolyan/rui/blob/main/docs/scripting.md#invoke-and-reload-skills).

## Build from source

See [Developing Rui](https://github.com/DivyanshGolyan/rui/blob/main/docs/development.md) to build and install from source, run tests, or try Rui without a provider account.

## Learn more

- [Using the terminal conversation](https://github.com/DivyanshGolyan/rui/blob/main/docs/using-rui.md): commands, scrolling, Sessions, models and context compaction.
- [Using Rui from scripts and agents](https://github.com/DivyanshGolyan/rui/blob/main/docs/scripting.md): one-shot commands, results, approvals and recovery.
- [Running the Host](https://github.com/DivyanshGolyan/rui/blob/main/docs/host.md): the background process, its Store and failed-response diagnostics.
- [Start fresh after a Store format change](https://github.com/DivyanshGolyan/rui/blob/main/docs/store-reset.md).
- [Architecture](https://github.com/DivyanshGolyan/rui/blob/main/ARCHITECTURE.md): behavior, ownership and recovery, including the planned V1 contract.
- [Verification](https://github.com/DivyanshGolyan/rui/blob/main/VERIFICATION.md): required checks and what they prove.
- [Research](https://github.com/DivyanshGolyan/rui/blob/main/research/README.md), [contributing rules](https://github.com/DivyanshGolyan/rui/blob/main/AGENTS.md) and [third-party notices](https://github.com/DivyanshGolyan/rui/blob/main/THIRD_PARTY_NOTICES.md).
divyanshgolyan10
🟧 echo.blog ⭐This is the original primary source: Divyansh Golyan’s post “Rui: a hundred agents in 2.5 MB,” published on his own site. It says: “In Rui, Divyansh Golyan——

Interpretation history

Decision trace