How it’s built · Agentic game builder

Game Forge

Ask a model for “a game in one file” and you learn very little about whether it can manage a real project. Game Forge gives the model file tools and a budget and lets it build a complete multi-file game. Then the app runs what was built, checks it and keeps it, so builds can be compared rather than taken on trust.

Open Game Forge Play builds on the showcase
The Game Forge library: game briefs as cards, each with a Watch for list of the ways a build usually goes wrong, and a Build button.
The brief library. Each brief carries a “Watch for” list: the specific ways models tend to get that game wrong.

How a build runs

  1. BriefA curated prompt plus its target stack and pinned libraries.
  2. Agentic loopThe model lists, reads, writes and edits files, then calls report_done.
  3. Live previewEach turn’s files are assembled and the game boots in a sandbox while it is still being built.
  4. ChecksDiagnostics capture errors, failed loads and a screenshot from the running game.
  5. CompareEvery run is kept with its trace, rated, and laid side by side with other models’ runs.

Design decisions

A previewer that runs real projects

Generated games are folders, not single files. The previewer turns every file into a blob URL, rewrites script, stylesheet, image and CSS url() references and import maps to match, and boots the entry page in a sandboxed frame.

Nothing is overwritten

Runs are append-only: the project, a forge.json record and the full tool-call trace are saved per run. Re-running a brief adds a contender instead of replacing one.

Pinned, hash-checked libraries

When a brief allows an engine such as Phaser, Babylon or three.js, the exact file is copied into the project and checked by SHA-256, so a build plays the same way months later.

One kernel, several forges

The build loop, tools, budgets, run store and previewer live in a shared kernel. VR Forge and Application Forge reuse it, and the Game Forge services are thin adapters over it.

Problems worth solving

An early bake-off on the same Pac-Man brief showed how differently agents work: one took 19 minutes over 18 turns, another finished in four and a half minutes in a single turn, and a third in under a minute. All three games ran.

More write-ups

VR Forge Understory Studio Code Morph Lab