Built for Fly.io Hacksgiving 2026. See how each judge's product is used
Skip to Content
Guide

Overview

Two kinds of Sprite, one connector gateway, and a website on each side.

2 min readUpdated

Visitors reach the Courthouse Sprite over HTTPS. The Courthouse drives generation Sprites through the Sprites API. Generations call TypeSafe Jev, Ollama Cloud, Box, Pinecone, AgentMail and Claude Haiku (the brain and judge in the recorded run) only through the connector gateway, which adds the keys. The landing page and docs are on Cloudflare.
Keys live only in the connector gateway. Neither the Courthouse nor any generation holds one. Click to zoom.

The Courthouse

One , probate-courthouse, that never dies. It runs a FastAPI app on port 8080 with:

  • The clock: every 15 seconds it charges the spending cap, applies the owner's emailed decisions, and moves the family one step (birth, death, ).
  • The court and distillation, which run right after each death.
  • The JSON API the live site reads (reference).
  • The live site itself: the React app from apps/web, served from the same origin.
  • SQLite at /home/sprite/data/probate.db, the index the site reads. Box is the durable archive.

Generations

One Sprite per life, named gen-007-grace. The drives it only through the Sprites REST API (exec, filesystem, services), never over HTTP, so a 's URL stays private. See How we use Sprites.

The connector gateway

Every call to an outside service goes to https://api.sprites.dev/v1/gateway/<provider>/<connection_id>/<path>. The Sprite sends no Authorization header; the gateway recognises the calling Sprite from Fly.io's request signature and attaches the stored key. See Connectors.

Two websites

SiteWhereJob
Live family (apps/web)Served by the Courthouse on SpritesThe real generations, trials, and evidence, updated as the family lives
This site (apps/site)CloudflareThe story, and these docs

Code map

PackageDoes
probate.commonModels, settings, names, prompts, the code bundle, court email helpers
probate.adaptersThe only code that talks to vendors. Each has a fake twin for PROBATE_FAKE=1
probate.court, layer 2, the policy, distillation
probate.generationThe agent: inbox loop, gate, body checks, CLI
probate.suiteFixtures and the per-life runner
probate.courthouseFamily lifecycle, scheduler, store, budget, API views, simulation
Edit on GitHub

Last updated on

On this page