Why I rebuilt cmux's agent-first terminal workspace in pure Rust on Zed's GPUI engine: framework selection, the alacritty integration, dev-server detection via /proc/net/tcp, the N-ary layout tree, JSON-RPC IPC for agent orchestration, and four things I got wrong.