Lessons from wrapping grok-build — the architecture, the traps, and why we picked Tauri over Electron.

TL;DR

grok-build is xAI's open-source Rust coding agent. It ships as a TUI. We

wrote a native desktop client for it — Tauri 2 (~8 MB binary), React

frontend, Rust runtime that spawns the CLI as a child process and talks