atrium — docs
homearchitectureagent statusidentityfleetscontrol planetrust & securityreaping

Architecture

atrium is a multi-agent terminal, "tmux for coding agents," that hosts your own CLIs in switchable, splittable panes. It is small and faithful by design: a passthrough first, an emulator only when it has to tile, built entirely on the nativelite stack with zero third-party dependencies. See the project overview for usage and keys.

The zero-dependency stack

atrium is assembled from five nativelite crates, each doing exactly one thing. There are no third-party runtime dependencies, all the way down.

Passthrough first, emulator only when tiling

atrium is a passthrough first and an emulator only when it must tile.

In passthrough, the active pane's VT byte stream goes straight to your real terminal, and keystrokes flow back undecoded via rawterm's raw-bytes read. Nothing sits between the pane and the screen.

On Windows, ConPTY maintains every pane's screen itself and repaints it in full on resize. Because of that, switching to a passthrough pane is just a resize nudge, and background panes cost nothing to track.

A pinned scroll region protects the bar row: it pins the bar, so panes believe the terminal is one row shorter and cannot touch it.

Two host-level subtleties

atrium is the host for the consoles it spawns, so it has to handle two host-level details correctly. Each was found the hard way, by its own test suite.

Terminating the win32-input-mode request

A pane's console asks its host to switch to win32-input-mode (ESC[?9001h). atrium is that host, so the request is terminated at atrium. Tunneled through, it would flip atrium's own input encoding and every hotkey would go dark.

Running inside another ConPTY

Everything runs correctly even when atrium is itself hosted inside another ConPTY. The end-to-end tests rely on this: they run atrium inside a pty and drive it with keystrokes.

Correctness

atrium is verified with pure unit tests over its logic and end-to-end tests over the real thing.

Pure units

End-to-end

atrium runs inside a pty, driven with real keystrokes: