Unix Isn't for Agents
7 hours ago
- #BEAM
- #AI Agents
- #Unix
- Unix has two modes for processes: interactive (attached to a terminal) and daemon (detached, running in background).
- AI agents need a hybrid mode: long-running, interactive, stateful, and reconnectable, which Unix doesn't natively support.
- Tools like tmux are hacks to simulate persistent interactive sessions by buffering terminal I/O in userspace.
- BEAM (Erlang VM) offers a better model: lightweight, isolated, addressable, persistent processes with message passing.
- BEAM processes don't depend on terminals; they run independently and can be interacted with via messages from any source.
- An agent shell on BEAM could treat agents as first-class citizens, allowing seamless detachment and reattachment without session loss.
- Phoenix LiveView demonstrates how BEAM's model can enable stateful, reconnectable interactions, applicable to agents.
- Current Unix-based solutions for agents are workarounds that add friction and complexity.
- The future of agent environments may lie in adopting BEAM-like models that inherently support persistent interactivity.