Reference app — company brain in a box
examples/company-brain-in-a-box is the single load-bearing tutorial. If a senior platform engineer cannot reach minute 60 with this app + this README alone, v0 doesn’t ship.
The first hour
Section titled “The first hour”0:00 $ pnpm create ahamie my-brain # < 90 s0:02 $ ahamie connect slack # OAuth dance through proxy0:05 $ ahamie ingest slack --channel '#engineering' --since '7d'0:08 $ ahamie run daily-eng-leadership-summary --shadow ✓ Shadow run completed in 12s, $0.040:12 $ ahamie eval summarizer.suite ✓ 10/10 scenarios pass; hidden golden 5/50:16 $ ahamie factory run summarizer.spec --models claude-sonnet-4.6,gpt-5 ...iter 0 fail; iter 1 fail; iter 2 pass; PR #142 opened0:30 open http://localhost:3000/runs # @ahamie/ui mounted0:45 $ ahamie connect linear && ahamie deploy outcome linear-issue-closed0:55 # close a Linear issue; observe RunOutcome row land in `outcomes` table1:00 ✓ Closed loop. Setpoint, plant, sensor, controller, actuator, eval all wired.What’s in the box
Section titled “What’s in the box”src/├─ agents/engineering-summarizer.ts # defineAgent├─ automations/daily-eng-leadership-summary.ts # defineAutomation + on.cron├─ connectors/{slack,linear}.ts # adapter re-exports├─ evals/summarizer.suite.ts # defineSuite + hidden-golden├─ outcomes/linear-issue-closed.ts # defineProvider + recordOutcome└─ app/page.tsx # @ahamie/ui mountedWhy this shape
Section titled “Why this shape”agents/holds typed agent definitions. Theoutputschema is the contract.automations/holdsTrigger → Event → Run → Action → Deliveryshapes — the wire format. The trigger uses the typedon.*proxy from@ahamie/automation.outcomes/holds the providers that attribute outcomes back to runs. The Linearissue.closedprovider rejects self-closes (sensor isolation, T13).evals/holds suites — every controller has one.