Agent-composed native UI in GPUI via NSH: one TSX codebase, 8 platforms, ~1ms first frame

YouJiacheng · x · 2026-11-22

A developer showed agents can skip A2UI/json-render skills entirely and just write code they already know to compose UI on the fly: using Native Shell (NSH), rendered natively in GPUI with no webview, running in a sandbox and interactive right in the chat, following native app themes. NSH's author @huacnlee confirmed this is one of the framework's design goals.

NSH is a cross-platform Rust UI framework: app code is written in TSX (JS), while the reactive graph, renderer, and layout are all Rust. One codebase targets 8 platforms including macOS, Linux, Windows, Web, iOS, Android, and TUI. Reported numbers: 120 FPS, 1ms first frame, 0.1ms engine startup, 0.12ms tap-to-commit, with binary sizes far smaller than Electron-style stacks.

Original post →

More from coding & agent

coding & agent channel →