I Let AI Agents Build My Strategy Game in Five Days

An Ironfront battle in a browser: a blue army of tanks and riflemen clashes with red troops and vehicles beside two ore fields, with a river cutting across green ground, fog of war at the edges, a minimap at the top left, a build menu for the Refinery, Barracks, Vehicle Factory, Turret and Hospital, sound controls, a Unit trained alert, and 1500 credits at the top right.
Ironfront mid-battle: harvest ore, build a base, train an army and take on a computer opponent that plays by the same rules.

I miss the old Command & Conquer games. Harvest, build a base, mass an army, flatten the other side: I have wanted to go back to that style of game for a long time. This year I decided that, with the help of AI, I could build something like it for myself.

I had a second reason. I wanted a fun project for learning how to run a software factory well: a setup where AI agents plan, build, review and ship the software, and a person steers. I figured a hobby game was a safe place to find out the good, the bad and the pain points first-hand, so I could do it better in my professional life.

The result is Ironfront, an original real-time strategy game that runs in a browser tab. You can play it here, and the code is on GitHub. I wrote almost none of that code.

AI agents did. Over five days in November 2026, Claude agents planned, built, reviewed and shipped 22 pull requests: about 14,000 lines of TypeScript and 983 tests. My job was to say what I wanted, approve the plans, and merge the handful of changes that were risky. This is how the factory worked, and what I learned from running it.

The game

A match starts with a headquarters, a harvester and a patch of ore. From there you add a Refinery, a Barracks, a Vehicle Factory, Turrets and a Hospital, and train Riflemen, Raiders, Medics, Mechanics and Troop Carriers. There is fog of war, a minimap, control groups, attack-move, three zoom levels, and a computer opponent that plays by exactly the same rules you do.

Under the hood it is deliberately plain: TypeScript, Vite, Vitest and the browser’s Canvas 2D API. There is no game engine, and the only three dependencies are build tools. Two early decisions shaped everything after them.

The workflow

I did not sit in an editor prompting for code. I set up a Claude project connected to the repository and used the agent workflow from aihero.dev, built on Matt Pocock’s open-source skills. Every change went through the same steps.

  1. Plan. I describe what I want in plain language. An agent interviews me until the open questions are settled.
  2. Spec and tickets. The agent writes a spec as a GitHub issue, then splits it into small tickets that say which ones block which.
  3. Approve. Nothing gets built until I approve the tickets. For the biggest round that was one word from me for twelve tickets.
  4. Build. An agent works through the tickets, up to four in parallel, writing tests first. Then it reviews its own branch against the spec and the project’s coding standards.
  5. Fresh review. A second agent that never saw the build reviews the pull request cold. It plays the built game in a headless browser, not just reads the diff.
  6. Merge. Agents never merge. Safe changes merge themselves once every check passes. Risky ones wait for me.

The fresh review turned out to be the most valuable step. In the very first round it found three real bugs after the builder’s own review had passed the branch. One of them let a player learn what was hidden in the fog from the wording of a rejected command.

One-way and two-way doors

The rule that made this safe enough to leave running is borrowed from a familiar idea: some decisions are doors you can walk back through, and some are not.

A script in CI classifies every pull request by the files and lines it touches, and the strictest verdict wins. A two-way change merges only with green checks and a passing fresh review newer than its last commit. Most of the 22 pull requests merged on their own, sometimes within minutes of being opened. The ones I merged by hand were the setup, the project skeleton, the retros and the deploy.

Five days, four rounds

The game grew in rounds, each one a spec with its own tickets. The first commit landed on November 13 and the game was live on GitHub Pages on November 17.

Round What it added Tickets Build time Tests after
First playable Moving, harvesting, combat, building, training, fog of war, minimap, computer opponent 10 About 2 hours 234
Look and feel Pixel art, animation, sound effects, music, spoken alerts, a better menu 9 About 2.5 hours 537
Army controls Control groups, attack-move, double-click select, camera zoom 7 One afternoon 625
Support and transport Hospital, Medic, Mechanic, Troop Carrier, and an opponent that uses them 12 Under 3 hours 953

After the fourth round, a few small pull requests cleaned up findings the reviewers had set aside, and one more published the game to GitHub Pages on every merge. That brought the total to 983 tests.

The last round was my favorite. I asked for a hospital with a medic who heals troops, a mechanic who repairs vehicles, and a troop carrier that unloads when attacked and picks up nearby soldiers when empty. I approved the tickets at 5:47 one morning, and all of it was merged and playable by 8:29.

A process that fixes itself

When the last pull request of a round merges, an agent runs a retro without being asked. It reads the build and review conversations, writes up what went wrong, and opens one pull request with the fixes it is sure of. Changes that are my call are listed as candidates. Retro pull requests are always one-way, so the process never rewrites its own rules without me.

The retros earned their keep. Three examples:

What I learned

My job became deciding, not typing. I answered planning questions, approved tickets, picked options when an agent asked, and played the game. The most useful thing I contributed was a clear description of what I wanted and a quick yes or no.

Vague specs cost the most. The one area that got rebuilt several times was units that act on their own, like a medic deciding whom to follow. The spec gave that rule a single sentence, and each review found a new hole in it. Where the spec was precise, the build was fast.

Agents cannot check everything. Nobody on the build could hear the sound. The agents measured that it was not silent and not clipping, and then I had to put on headphones. A few repository settings were also mine alone to change.

Automation has a bill. I started with scheduled agents picking up work every hour and watching pull requests every two. That opened about 36 conversations a day, most of which found nothing to do. I cut it back to a single nightly run.

Start with low stakes. The workflow has a trial mode where nothing merges by itself. I turned that off on day one because this is a hobby game and nothing in it is critical. I would not make the same call for production software.

What’s next

The roadmap has a bigger arsenal and base next, including aircraft, with online play at the far end. Today it is single-player on one map, and every visitor gets their own match.

If you want to try it, Ironfront runs in your browser with nothing to install. And if you are curious about the workflow, every spec, review and retro is public in the repository.