An AI-native operating system

Where AI inhabits
the interface

A cloud OS where apps are JavaScript artifacts in a shared VM. AI doesn't automate from outside—it lives in the same address space, sees the same pixels, edits the same DOM.

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.

// AI editing code via Lens - 3 calls, zero file reads Lens.grep('fetchData') // → "42:async function fetchData" Lens.setLine(42, 'async function fetchData(url) {') // → "✓ L42" Lens.save() // → "✓ saved"

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:

// Creates folder, git init, skeleton files, GitHub repo, push, opens in editor Lens.project("particle simulator") // → "✓ particle-simulator → github"

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.

The door is open

A browser OS where AI can see, edit, run, and push to GitHub—all from the same address space.

Or self-host:
git clone https://github.com/williamsharkey/functionserver && cd functionserver/go && go run .