MATT HASTINGSHOMEFRONT END PHILOSOPHYPROJECTSTHREE HAMMERS
The kit · Nov 6, 2026

A Kit for the Next Game

Everything that made Three Hammers buildable by one person and a team of AI agents was pulled out into a standalone kit in a day. Clone it, name a game, build the engine, and a small playable RTS with a campaign, a versus mode, a map editor and a test suite is running.

Seven weeks in, the most valuable thing in the Three Hammers repository was no longer the game. It was the way the game gets made. So the question this week was simple. Could that be pulled out, cleaned of everything that belongs to this game only, and cloned to start the next one?

The last two chapters were about the game: eighteen missions, seven races, a versus mode. This one is about the machine around it.

Three Hammers is built by one person who does not write most of the code. An orchestrating AI session plans the work, dispatches developer agents with bounded briefs, reviews what comes back, and runs the integration. Over seven weeks that produced a lot more than a game: a patched engine, a task harness that keeps agents honest, content pipelines that turn a JSON record and a sprite sheet into a unit, a map editor, a way of proving behaviour with headless engine runs, sound tooling, a playtest packaging tool, and about eighty hard-won rules of working. All of it tangled through the game's own files, with the game's name in 453 Lua globals and a hundred and eighty thousand places in exported maps.

The job: extract it into a directory that stands on its own and can be cloned again and again. Not touching the game repository at all while doing it.

What a kit is

The rule for every file was: does a new, similar game need this unchanged? Four kinds of thing came out:

What stayed behind: the eighteen missions, the lore, the clans and their rosters, the briefings and voices, every per-task record, and the game's name. The kit's code uses a neutral prefix, and a new game changes its title in one file. Even the faction's internal race name, which was still the word "dwarf" after the first pass, was renamed before the day was out.

The starter game's home screen. The wordmark is drawn from the kit's own bitmap font, so a new game's title renders the same on any machine.
The starter game's home screen. The wordmark is drawn from the kit's own bitmap font, so a new game's title renders the same on any machine.

How it was done

The same way the game is done, compressed into one day.

Six agents first inventoried the repository by layer: engine and build, harness, runtime scripts, content pipeline, editor, probes and tests. Their reports classified every tool and script as generic, parameterisable, game-specific, inherited legacy, or history, and each proposed what the smallest bootable starter would need. One of them actually tried it, cutting eight records out and getting the generators to pass on the subset.

Then lanes, each with its own paths and its own brief, often four at a time: engine, harness, method documents, starter game; then editor, probe library, pipeline depth, sound and playtest tools; then the sample campaign and versus. A polish lane integrated everything and hardened the tests, including fixing a test that had been leaking background processes since September. Everything was imported through one tool that applied the rename, so no file was ever copied by hand.

A skirmish on the larger shipped map: the player's mixed force meets an enemy squad while workers head for the trees. The fight is scripted for the screenshot; the combat is real.
A skirmish on the larger shipped map: the player's mixed force meets an enemy squad while workers head for the trees. The fight is scripted for the screenshot; the combat is real.
The healer selected mid-fight, its heal landing on a wounded guard. Upgrades, abilities and effects each ship with one worked example, so the pipeline that makes them is proven, not described.
The healer selected mid-fight, its heal landing on a wounded guard. Upgrades, abilities and effects each ship with one worked example, so the pipeline that makes them is proven, not described.

Three audits

A kit that only its builders can use is not a kit. So three independent agents, given nothing but a clone, tried to break it.

The first followed the start-here document literally from git clone: build the engine, run the tests, run the probes, rename the game, push the first task through the harness. Verdict: yes, with about ten minutes of compute, and one failing test, which was fixed.

The second pretended it was the first day of a new game called Tidewatch. Rename, then add a unit, a building, an upgrade, an ability, an effect, a map, a mission, a faction and a probe, using only the kit's how-to documents. All of it got done in seventy-five minutes and ended green. But only two of the nine additions worked from the documents alone; the rest needed reading tool source, and fourteen tests pinned the starter's exact content so that adding anything meant editing tests. That report became the last round of work: clearer errors from every generator, how-tos that were then followed literally by another agent, tests that derive what they check from the data, and scaffolding commands that create a new unit, map, mission, faction or task with every required piece in place.

The third read the whole kit without running it, hunting for what was wrong or missing. It found three things that mattered. The art generation records still carried an account identifier in private storage links, which was then redacted and the repository history squashed. The old game's name survived in the engine's comments, where the leak check had not been looking. And the README claimed the engine tree was byte-identical to what had been verified, when the rename meant it was not. All three were fixed, and the README now has a table of what is proven, in the kit, on this machine, and what is not.

The sample campaign's briefing. The still is a generated placeholder and says so on screen.
The sample campaign's briefing. The still is a generated placeholder and says so on screen.
Mission one of the sample campaign: a dialogue box with a placeholder speaker portrait. Dialogue, reveals, waves, spawners and objectives all boot in probes now, so the editor stops refusing them.
Mission one of the sample campaign: a dialogue box with a placeholder speaker portrait. Dialogue, reveals, waves, spawners and objectives all boot in probes now, so the editor stops refusing them.

The numbers at the end of the day

The versus lobby with four slots, two example factions and an AI difficulty per seat.
The versus lobby with four slots, two example factions and an AI difficulty per seat.
The map editor on the sample mission, with the Events tab open: a timer trigger and a dialogue action with its speaker.
The map editor on the sample mission, with the Events tab open: a timer trigger and a dialogue action with its speaker.

What is not proven

The kit's own README says this, and so should this chapter. Nobody has opened a window yet: every run was headless or offscreen, so a human has not played the starter, and the windowed launch of the game and the editor is untested. The engine build is proven on an Apple Silicon Mac only; the Windows route is carried as written code. The sound tools never called a provider. Netplay was proven between two processes on one machine, not between two machines. And the placeholder art is this game's art: bearded workers and a hooded bowman, reused until the next game draws its own.

What it means for Three Hammers

Nothing changes here. The game repository was not touched by any of this, the campaign is still waiting to be played start to finish, and the sounds and narrator work from last chapter goes on. The kit lives in its own private repository, starting from a single commit.

But the next game, whatever it turns out to be, starts from a working RTS with a campaign, a versus mode, an editor and a test suite, and a written record of every mistake this one made first. That felt worth a day.