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.
More from coding & agent
- Meta's Muse Agent Tricked Into Saving a Page, Then Escaped to Its Cloud VM — ccerrato147 · 2026-11-22
- Dev's analogy for AI PRs: fixes the bug, doubles the SLOC, zero abstractions — MilesCranmer · 2026-11-22
- Tens of thousands of compute nodes power this multi-agent swarm architecture — hwchase17 · 2026-11-22
- Statechart-based actor runtime simulates 1 million foraging and fighting ants in-process — sull · 2026-11-22
- Agent ran for hours playing Smash Ultimate but botched the replay-saving task — anpaure · 2026-11-22
- Teknium shares Hermes telemetry: 92.4% of tokens are cache reads — Teknium · 2026-11-22