For builders
Architecture
A native Go kernel does the work; React views draw it; a loopback contract keeps them apart.
Layers
| Layer | What it does |
|---|---|
| Shell | apps/desktop-go: Wails v3 window, tray, auto-update and packaging |
| Kernel | apps/desktop-go/internal: agent orchestration, models, memory, knowledge, gateway, usage |
| Views | packages/ai-chat: React 19 with Vite, embedded in the Go binary |
| Contract | packages/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.