Spinning up containers for 20-line agent tools is backwards: Safescript compiles provable, 50ms-deploy apps
uriwa · reddit · 2026-11-12
Reddit user uriwa argues the default stack for AI-agent-built internal tools is backwards: provisioning a Docker container, running npm install, waiting a minute for a Next.js build, and paying idle cost 99% of the time — while handing an autonomous agent full Node/Python execution plus production keys means either reviewing 3,000 lines of boilerplate per change or hoping prompt injection never exfiltrates a Stripe key.
His proposal: instead of heavier VM sandboxes, restrict the runtime itself. A Turing-incomplete language compiling to a static data-flow graph lets the compiler prove every outbound host, secret read, and tenant boundary before anything runs. That's the idea behind Safescript (@uri/safescript), a statically verified TypeScript subset with JSX support.
- A full interactive CRM with SQLite and form submission is 12 lines of JSX, deployed via a single unauthenticated HTTP request in 50ms
- The compiler splits add to the server, keeps render on the client, generates the RPC bridge, and rejects deploys where secrets flow to the browser bundle or unapproved hosts
- Everything runs in-process on SQLite-backed Durable Objects, so idle apps cost zero
Core thesis: agents will generate disposable software per ticket, deal room, and workflow — only viable when deploying an app is closer to sending a message than provisioning a server.
More from coding & agent
- As models improve, writing good evals gets harder and more important — amankhan · 2026-11-12
- Omarchy 4.6 lets you share local AI models across your tailnet, says DHH — alexcovo_eth · 2026-11-12
- Coding harnesses hand shell access to inference providers — 4-step gateway mitigation — shensi · 2026-11-12
- Slack's David Hoang: agents beat people on coordination, proposes 'boundary agents' — davidhoang · 2026-11-12
- CS student mourns coding flow states he'll never experience in the AI era — chrissyykat · 2026-11-12
- AI Engineer Code Summit features its first all-female keynote lineup — altryne · 2026-11-12