Case study · Trivsquad

AI that builds games,
built with AI.

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.

Role
Ryan Buzzanca, founder & engineering lead
Timeline
October 2025 to today
Stack
Rust · PostgreSQL · Angular · Claude
Live
trivsquad.com
Q4 All-Hands Showdown Product 1,240 Sales 1,180

Round 2 · Team survey

Name something everyone keeps on their desk

1 Coffee mug 34 2 Sticky notes 27 3 4
×××Bank: 61
Round 3820 pts

Who said it? “I once ran a 10K dressed as a banana.”

Priya Marcus Elena Sam
0deploys needed to add a new game: the AI composes it from blocks that already run
0server errors with 50 players in one game, on a single CPU core
~0.2sfor a new question to reach all 50 phones and the TV at once
100%of releases approved by a person before they go live

01 · The problem

Teams that work together rarely get to play together

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

Describe a game. Your squad plays it.

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.

1

Describe it

“A last-one-standing quiz about our industry. Three lives each, getting harder every round.”

2

Review the rules

The rules appear in plain English before anyone plays. Want changes? Just say so: “play in teams”, “add a buzzer round”.

3

Play together

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

The AI never writes code. It writes a plan.

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.

  1. Fast model

    Safety screen

    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.

  2. Frontier model

    Game designer

    Claude Opus composes a spec with structured output: rounds, question styles, scoring, teams, twists. Only blocks that exist.

  3. Code

    Validate & repair

    Code normalizes the spec, fixes what it can and explains every fix. One repair round, then a safe preset fallback.

  4. Human

    Creator confirms

    The rules summary is rendered by code from the spec, so what the creator approves is exactly what runs.

  5. Engine

    Live game

    A generic, server-driven engine runs any valid spec. Phones and TV render whatever state it sends.

Proven against AI-shaped input

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.

Questions that don't repeat

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.

Work-safe by construction

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

One lead, a team of AI agents, production standards

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.

100%tested: every release passes the full automated suite before it ships
100%end-to-end tested: every release plays complete games in a real browser first
100%load-tested: every way to play, with 50 players at once and production database latency simulated
100%of routes and sockets attacked as another company by a test, to prove each company's data stays its own
5AI agents built the company-isolation release in parallel, each checked by an adversarial review
Livegames pick up where they left off, even across a server restart

How a new idea ships

When a player asks for something the Game Factory can't build yet, it doesn't disappear into a backlog.

  1. Players

    Ideas are requested

    "Not possible yet" requests become a public wishlist, rewritten work-safe by AI and upvoted by everyone.

  2. AI agent

    The agent builds it

    An AI coding agent builds the most-wanted ideas as new building blocks, with tests, from the project spec.

  3. Human

    A person reviews it

    Nothing ships on an agent's say-so. A person reviews the change and the screenshots, and the full suite has to pass.

  4. Live

    Everyone can use it

    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

What leading an AI-native build looks like

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.

Specs and guardrails first

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.

Verification over trust

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.

Load test before you scale

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.

Security as a feature

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.

Let users drive the roadmap

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

The same pattern works far beyond games

Trivsquad is a party game, but its architecture is a general recipe for putting AI to work safely inside a business.

Plain English in, validated plan out

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.

The right model for each job

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.

Everything the AI makes is checked in code

Validation, explained fixes, safe fallbacks and a human confirm step mean a bad model output becomes a clear message, not an outage.

An AI-assisted engineering process

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.

See it, then let's build yours

Run a game with your team today, or talk to us about bringing this pattern into your company.