Skip to content

For builders

Architecture

A native Go kernel does the work; React views draw it; a loopback contract keeps them apart.

Layers

LayerWhat it does
Shellapps/desktop-go: Wails v3 window, tray, auto-update and packaging
Kernelapps/desktop-go/internal: agent orchestration, models, memory, knowledge, gateway, usage
Viewspackages/ai-chat: React 19 with Vite, embedded in the Go binary
Contractpackages/contract: typed procedures and events between views and kernel

How views reach the kernel

Each window connects to a loopback WebSocket with a one-time token and asks for procedures declared in the contract. Dangerous procedures are marked as such, and the kernel decides what each window may call.

Agents

Agent support is a plugin per CLI (internal/cliplugins) plus a session driver in internal/clisdk. The catalog in packages/cli-catalog describes capabilities, permission modes and install instructions, and generates the same data for Go.

Model traffic

Model calls go through the RouterOne gateway with the account’s keys. A network guard refuses private and loopback destinations except where explicitly allowed.