Can a better terminal collapse an AI org chart?
I accidentally built five nested layers of AI agents in three weeks. Then Superlogical released Rex 1.0.1 with a native program status protocol (OSC 7501). I installed Rex and Antigravity CLI on my Mac Mini to measure which layers actually disappear and which ones refuse to die.
I did not plan to build middle management out of AI threads. It just happened organically over three weeks of living inside real coding agents. Coding sessions on my Mac Mini filled up with diffs, failing tests, and branch noise. So I added Pip to bridge Slack and the outside world. Then I started using threads on my laptop to watch the Mini from off the machine. Then one calm HQ thread on my laptop started coordinating the other laptop threads, while I sat outside sipping coffee.
It felt like a set of Russian dolls. Every time a thread got deep into real execution, asking it to zoom out made it sloppy, so a quieter observer naturally formed one ring outside it.
When Mitchell Hashimoto's team shipped Rex (a persistent terminal server with a JSON CLI, a Lua event bus, and OSC 7501 structured status reporting), I wanted to test a real engineering hypothesis instead of just joking about the org chart: how much of that 5-layer stack was just missing terminal plumbing, and how much of it is a hard law of context isolation?
Toggle the stack: before and after Rex
Flip between the original five Russian dolls and the Rex-backed stack, or click any shell to inspect its context boundary and what survived the experiment.
The 99× context wall between status and capture
We ran a live 3-pane workspace inside Rex 1.0.1 on the Mac Mini: a 48-spec test runner, a permission-gated database migration that paused for supervisor approval via rex send, and an agent verification pane. Then we measured the exact byte size of reading each pane through OSC 7501 program_status versus raw rex capture.
Wiring Antigravity CLI into Rex's status bus
Here was the genuine surprise from testing Rex 1.0.1 hands-on: running rex skill setup only wires a SessionStart hook for Claude Code and does not auto-wire Antigravity CLI or emit OSC 7501 status updates yet. Without a status emitter, any supervisor trying to watch coding agents falls right back into rex capture scraping.
Because Antigravity CLI exposes full lifecycle hooks (SessionStart, PreInvocation, PreToolUse, PostToolUse, and Stop), we built a 150-line bridge that writes OSC 7501 escape sequences directly to the Rex block's PTY device while keeping hook stdout clean JSON. Step through the actual 5-event trace captured live on rb-1 below.
Four honest takeaways from the experiment
Polling glue dies immediately
With OSC 7501 plus a 12-line Lua observer, a supervisor wakes up only on blocked, error, or done (~100 bytes each) instead of polling panes or scraping scrollback.
Cognitive isolation stays
Structured status tells you a pane failed in 193 bytes, not why. The moment a supervisor pulls rex capture to debug a flaky test, its context fills with noise and you still need an outer ring.
Agents still need a status hook
Rex 1.0.1's built-in setup only hooks SessionStart today. Writing OSC 7501 directly to the pane's PTY from lifecycle hooks closes the gap cleanly for Antigravity CLI right now.
Rex sits under Pip, not instead of it
Rex is the execution plane on the Mac Mini (Unix socket + SSH). Pip stays the calm Slack and memory bridge one layer outside it, reading tiny event summaries rather than raw terminals.
The working bridge you can drop onto your Mac
The subtle trick: Antigravity CLI captures hook stdout as JSON, so printing OSC 7501 to stdout never reaches the terminal. Exporting REX_TTY=$(tty) inside Rex lets any detached hook write the escape sequence straight to the block's PTY while keeping hook JSON spotless.
Better infrastructure always deletes the boring layers of an org chart. Rex kills session-juggling, polling scripts, and blind screen scraping in one stroke. Yet the outer rings keep reappearing for a much simpler reason: once you are deep enough inside a problem to fix it, you are too close to see the whole board. Org charts were context isolation all along.