Code Mirror is a remote control plane for Pi. A Go Cloud service runs on a VPS, and a Go/Wails Agent runs on the productivity device. The Agent connects outbound to Cloud and proxies an allowlisted subset of local Pi SDK operations.
Browser / Mobile PWA
-> HTTPS Cloud
-> WebSocket tunnel
-> Wails Agent
-> local Pi SDK bridgeSelected chats consume bounded content snapshots; Recent views use metadata-only account hints and authorized history revalidation. See ADR-0067 for the live-update and cache-ordering decision. OpenCode support was removed in ADR-0153.
Devices can run Google Antigravity CLI (agy) beside Pi. Projects are shared
between backends and a session chooses its backend when it is created; the
choice is immutable. See ADR-0163
and ADR-0164.
The Pi bridge omits invalid individual model records while preserving catalog size and identity checks. The model picker shows loading, failure, unsupported, and empty states separately. Failed loads offer a retry; failed refreshes keep the last loaded list. See ADR-0162.
apps/cloud: Go Cloud server for auth, devices, WebSocket tunnels, and API routing.apps/agent: Go/Wails Agent for desktop devices.apps/web: React/Vite Web UI and mobile PWA.packages/protocol: Shared Go protocol types for Cloud-Agent RPC.deploy: VPS deployment examples.docs: Project design and operating notes.
See docs/development.md for local commands and docs/deployment.md for the initial VPS shape.
scripts/build-all.shBuild outputs are written to dist/.
Build the Wails Agent release metadata with:
ansible-playbook deploy/agent-release.ymlSee docs/production-playbook.md for the Ansible VPS playbook.
Third-party Pi bridge license notices are documented in
docs/third-party-notices.md.