REX targets sub-5 ms remote commands for AI agents, skipping SSH overhead

anomalyxlogic · reddit · 2026-07-28

REX is an open-source remote execution protocol built in Go and Python for AI agents that manage servers and infrastructure. The author says SSH was too slow for agent workflows, with each simple command costing 800–1500 ms because of handshakes, PTY setup, and terminal parsing.

REX aims to cut that overhead with a persistent WebSocket connection and direct subprocess execution, claiming sub-5 ms command latency. It also adds three security modes—autonomous, review, and allowlist—and exposes system metrics directly from /proc without spawning extra tools. The post includes a one-line install, a Python client example, and the GitHub repo.

Original post →

More from coding & agent

coding & agent channel →