Apps are artifacts in a shared VM
In most systems, apps are compiled binaries or isolated processes. You automate them from outside via WebDriver protocols. The AI is a client; the app is a server.
In FunctionServer, apps are the JavaScript. They're functions and objects living in the same VM that AI can access directly. When AI calls getBoundingClientRect(), it touches the same DOM element you see. When it patches window.openSubmenu, that's the real running function.
The AI doesn't automate the OS—it inhabits it.
Studio + Lens: AI-first development
Studio is a full IDE built for FunctionServer. Unlike traditional IDEs, it's designed for AI first—every feature optimized for token efficiency and rapid navigation.
Surgical editing
Lens.setLine(42, 'code') edits one line. No reading 1000-line files. No full rewrites. 60x fewer tokens.
Visual feedback
AI Eyes shows what AI is looking at and editing. Watch purple highlights saccade across the screen as AI works.
Error awareness
Guardian monitors for errors and offers AI help. When something breaks, AI knows immediately—no user intervention needed.
Batch operations
Lens.batch([['save'], ['run']]) chains multiple operations in a single call. Minimal round-trips.
One-command GitHub projects
Sign in with GitHub OAuth (Device Flow—no PATs to copy), then create a new project with one command:
From idea to GitHub repository, fully configured, ready to edit. The AI doesn't just generate code—it ships.
What this enables
Some things that emerge from apps and AI sharing the same address space:
AI with eyes
Query element positions, check computed styles, inject test fixes, and verify they worked—before touching source files.
Instant GitHub
One-command project creation. OAuth sign-in. Auto repo creation. Push and pull without configuration.
Collapsed debug loop
Write → run → see error → fix → verify. All in the same context. The browser becomes a REPL you can poke from anywhere.
Proactive help
Guardian watches for errors. When something breaks, a toast appears offering AI assistance. The AI can wake up and help.