Architecture
One Hono service and its worker on a Sprite with SQLite, a sandboxed workshop Sprite, an Expo app for web, iPhone and Android, and a static site, all in one repo.


The agent (apps/agent)
| Piece | Built with |
|---|---|
| HTTP | Hono on Node 24, one process, port 8080: /api (device token), /pair, /public, /hooks/tick, /s/<token>, /health |
| Data | SQLite on the Sprite's disk (better-sqlite3, WAL, a 5-second busy timeout), Drizzle migrations run at boot |
| Work | an in-process worker that only runs while something woke the Sprite: due timers, the outbox, model runs, sorting, meeting prep, money evidence, visitor drafts |
| Brain | Vercel AI SDK 7 ToolLoopAgent, provider chosen from the gateway list (Models) |
| Live updates | an append-only events table, replayed and streamed over Server-Sent Events with a ping every 15 seconds; events kept 7 days |
| Push | Expo push for iPhone and Android, web push with VAPID keys made on the Sprite |
| Deploy | an esbuild bundle with dependencies installed on the Sprite (npm ci, Linux builds), then a checkpoint |
Handlers only write rows; the worker does the work. A tick answers 202 and then drains. Every outward effect goes through the outbox, which claims, re-checks and runs each send once.
The workshop (apps/workshop)
A second Hono service on its own Sprite. Every route but /health checks an HMAC signature from the agent (method, path, time, body hash; five minutes either way; each request once). One job at a time: unpack the repo, install dependencies with scripts off, run Codex or Claude Code in a sandbox with capabilities dropped and a minimal environment, return the changed files and steps. Code tasks.
The app (apps/app)
| Piece | Built with |
|---|---|
| Framework | Expo SDK 58, Expo Router, React Native 0.88, one code base for web, iOS and Android |
| Web | a single-page export (web.output: "single") served as static files |
| Navigation | native tabs on phones; a sidebar and slide-over panels on the web; native sheets for details |
| Data | TanStack Query for every resource, one live event stream patching the cache, Home, Approvals and the list of chats kept on the device for 24 hours |
| Chat | AI SDK useChat streaming from the agent, resumed when you come back |
| Look | NativeWind (Tailwind) on Rusuban's design tokens, Figtree, real service logos |
The site (apps/site)
Next.js 16 static export with Fumadocs for these docs, Tailwind 4 and Motion. The live feed is fetched in the browser from the agent's public endpoint every 20 seconds while it's on screen. The site also serves install.sh, the release tarballs, and latest.json with each tarball's SHA-256.
The repo
packages/shared holds every constant (undo windows, cadences, limits) and the shared types; packages/sprites the gateway client, Tasks leases, checkpoints and request signing; packages/brand the design tokens and service logos.