Case study · Trivsquad
How one engineering lead and a team of AI coding agents shipped a production team-engagement platform: anyone at a company describes a party game in plain English, and the whole office plays it minutes later on their phones and a shared TV.
Round 2 · Team survey
Name something everyone keeps on their desk
Who said it? “I once ran a 10K dressed as a banana.”
Priya Marcus Elena Sam01 · The problem
Remote and hybrid work spread people across buildings, time zones and departments. Sales rarely meets engineering, new hires meet their own team and nobody else, and the usual team-building fixes are either a mandatory meeting nobody enjoys or an event that takes weeks to plan.
We wanted something a company could run on a Tuesday afternoon with no prep: a game everyone joins from their own phone, that mixes people across teams, and that feels made for this group, not pulled off a shelf.
02 · The product
Trivsquad has no catalog of games. It has a Game Factory: you type what you want, and AI designs a game from building blocks the engine already supports. Eleven question styles (multiple choice, surveys, closest number, put-in-order, emoji puzzles, typing races, spot-the-bug for engineers, "who said it?" and more), eight ways to play (everyone at once, buzz-in, team turns, king of the hill, category boards, team huddles, relays, head-to-head duels), plus lives, wagers, streaks and power-ups.
“A last-one-standing quiz about our industry. Three lives each, getting harder every round.”
The rules appear in plain English before anyone plays. Want changes? Just say so: “play in teams”, “add a buzzer round”.
Share a five-letter code. Everyone joins on their phone; the TV runs the questions, reveals and podium.
03 · AI building AI, part one: the product
Letting a model generate code for every game would mean every game is a new, untested program. Instead the AI writes a declarative game spec: data, not code, composed only from blocks the deployed engine already implements and tests. New games ship without a deploy, and none of them can break game night.
Claude Haiku reads the raw prompt, rejects anything unsafe, notes what isn't possible yet, and passes on a clean brief. The raw prompt never reaches the designer.
Claude Opus composes a spec with structured output: rounds, question styles, scoring, teams, twists. Only blocks that exist.
Code normalizes the spec, fixes what it can and explains every fix. One repair round, then a safe preset fallback.
The rules summary is rendered by code from the spec, so what the creator approves is exactly what runs.
A generic, server-driven engine runs any valid spec. Phones and TV render whatever state it sends.
A fuzz simulator generates 60 random valid specs across every question style, mode and twist, and plays each to game over with bots. It's the guarantee that no spec the AI can produce wedges a live game.
A quick round plan gives each round its own slice of the subject; rounds are written in parallel, repeats are detected and refilled, and a replay avoids the last three games' questions.
Coworker facts are rewritten work-safe, typed answers are judged by a fast model only after local matching fails, and brand names are scrubbed from every string the AI writes.
04 · AI building AI, part two: how it was built
Trivsquad was built by Ryan Buzzanca directing Claude Code agents: Ryan owned the product, the architecture and every decision about what shipped; AI agents did the building, from the code to the tests to the documentation. The result runs in production for real companies, and it keeps growing the same way: players ask for ideas, agents build them, and a person signs off before anything goes live.
When a player asks for something the Game Factory can't build yet, it doesn't disappear into a backlog.
"Not possible yet" requests become a public wishlist, rewritten work-safe by AI and upvoted by everyone.
An AI coding agent builds the most-wanted ideas as new building blocks, with tests, from the project spec.
Nothing ships on an agent's say-so. A person reviews the change and the screenshots, and the full suite has to pass.
The new block is live for every company, and the AI designer starts putting it into games.
Typing races, spot-the-bug code rounds and one-person teams all shipped this way, straight from the production wishlist.
The load test found a real bug before users did: under a 50-player buzz storm at production latency, a losing buzz could deadlock the connection pool. It was fixed, pinned with a regression test, and turned into a rule every service now follows.
05 · Leadership
AI agents write code fast. The leadership job moves to deciding what to build, setting the guardrails, and refusing to ship what hasn't been proven. Five practices carried the project.
A living project spec records every rule, contract and decision, so each agent starts from the same ground truth. Hard rules, like never holding a database lock across an AI call, are written down once and followed everywhere.
Nothing ships on an agent's say-so. Every release passes the full automated suite and plays complete games end to end before it deploys, a person reviews every change, and known bugs are pinned as failing tests before they're fixed.
A 50-player harness plays complete games in every way to play through the public API, with production latency simulated. It found a buzzer deadlock before any user did.
Google Workspace sign-in, each company's data visible only to that company, hashed session tokens, single-use socket tickets, per-user rate limits on AI generation, and a test that proves it route by route.
When the AI can't build something a player asked for, the request becomes a public wish others can upvote, and the most-wanted wishes are what the agents build next.
06 · Your company
Trivsquad is a party game, but its architecture is a general recipe for putting AI to work safely inside a business.
Let people describe a report, an approval workflow, an onboarding checklist or an internal tool. AI turns it into a structured spec; tested code you already trust runs it.
Small, fast models screen requests and judge answers in a second or two; a frontier model does the creative design. Cost and latency stay predictable.
Validation, explained fixes, safe fallbacks and a human confirm step mean a bad model output becomes a clear message, not an outage.
Agents multiply a small team's output when they work from a shared spec and every change is verified. We can set that process up for your team, too.
Run a game with your team today, or talk to us about bringing this pattern into your company.