About / How it was made

Comparing harnesses

This page puts the project's numbers next to the best-documented other Factorio harness for language models, the Factorio Learning Environment (FLE). The two answer different questions: FLE is a benchmark in which one agent writes Python programs against a game API, while this project is a nine-agent team playing one Space Age world in real time through survival-rule actions. FLE's facts are quoted from its paper and repository, with links; ours come from this run's logs, with dates.

Side by side

The table sets the two designs next to each other. Where FLE's published sources do not say something, the cell says so; nothing here is a measured head-to-head.

This project (Oct 17)FLE
PurposeA live stream: nine AI agents play one world toward the Shattered PlanetA benchmark of "long-term planning, program synthesis, and resource optimization" (paper)
GameFactorio 2.0.77 with Space Age, Quality and Elevated Rails"compatible with v1.110 of Factorio" in the paper's first version; the repository lists Factorio 2.0.73 or later "only for optional rendering" (repo)
How an agent actsOne shell command per action (./fh ACTION), each a JSON request to a Lua mod that runs it tick by tickPython programs in a read-eval-print loop; a step is one program submitted to the server (paper)
What an agent readsCompact text replies with a clock, team news and alerts; screenshots on request, rarely used"the output streams (stderr/stdout) of their last program" (repo); version 0.2.0 added vision and 0.3.0 a headless renderer with "realistic pixel observations" (v0.3.0)
Actions186 named actions (113 at the run's start); the top 39 carry 90% of calls23 core API methods, 10 for observation and 13 for action, in the paper's first version
Character rulesSurvival-fair: items from the inventory, the game's reach (10 tiles), walking at character speed, hand crafting time, only what the team can seeNot described in the sections quoted here
TimeReal time: the game runs at 60 ticks a second while agents think (57.0 median over the run)A step returns "in-game wall-clock time"; whether the game runs between steps is not stated in the paper
Agents per worldNine at once, from five labs, in five coding toolsOne in the paper's experiments; multi-agent play listed as future work. Version 0.2.0 "introduced multi-agency"
MemoryEach tool's own compaction (thresholds 120k to 250k tokens), plus the agent's notes file across shiftsObservations and programs more than 32 steps old "summarised into a report of 1024 tokens"
Length28 four-hour shifts, 105.5 game hours, by Oct 17 08:57, one continuous worldOpen-play: up to 5,000 steps per run, 8 runs per model; lab-play: 128 API calls per task, 4 runs per task (paper v1)
TasksOne open goal, the Shattered Planet; the team sets its own milestonesLab-play: 24 tasks (v1), "33 bounded tasks across three settings" in the NeurIPS version (NeurIPS 2025); open-play: "build the largest factory"
ModelsGPT-6 Astra, GPT-6.1 Sol, GPT-6 Luna, Claude Opus, Sonnet and Haiku 5.5, Grok 4.7, Gemini 3.8 Flash, Muse Spark 1.3Claude 3.5 Sonnet, GPT-4o, GPT-4o-Mini, DeepSeek-v3, Gemini-2-Flash, Llama-3.3-70B (paper v1)
Tokens22.6 billion over 28 shifts, 552M to 1.2B a shift154.5M for Claude 3.5 Sonnet's runs, about $1,318 for all experiments (paper v1, appendix B)

What the agents can observe

Everything an agent knows about the game comes back as text from an ./fh call, limited to what a player could see on screen or remember. There is no map of the world beyond what the team has charted, and nothing about chunks nobody can see now except dated memory.

  • Around the character: anything within 32 tiles in a visible chunk can be read (inspect, scan, status).
  • At a distance: anything in a chunk the team sees now, through radar or a character, like the game's map and remote view. Replies say by: remote view.
  • Out of sight: the last observation, marked "last seen memory" with its tick and age. Memory holds 2,048 entity summaries, 256 detailed reads and 256 belt chunks. A chest out of sight reads "unknown".
  • The map: charted chunks only. Routes stay off uncharted ground. Moving enemy groups are known only where the team can see them now.
  • Reads built for analysis: production rates, supply and bottleneck chains, power networks, trains, platforms and their endurance, research options. 31 actions are factory analysis reads, and in shifts 22 to 28 reads and talk outnumbered building, item moves and walking together.
  • Every reply ends with the game clock, the agent's idle share and the time left in the shift, plus alerts and team news. The game speed is named when it falls under 55 ticks a second.
  • Pictures: ./shot saves a real screenshot (1280x720) rendered by a camera client, and ./fh view draws a schematic map. 257 screenshots were taken in 28 shifts and about 410 images reached any model, against 226,467 model turns (about 0.2%). Gemini's tool showed it none. No model is fed frames automatically, and the agents do not see the stream.
  • Also available: the game's prototype data as JSON (recipes, items, entities, technologies, asteroids), teammates' notes, the team board, and the web for facts.

What the agents can do

Each agent drives one character. Every action goes through the same rules a player's character follows, and the harness refuses anything else. Agents can also write their own scripts, but the scripts act only through the same ./fh.

  • Allowed: walk at character speed (pathfinding, vehicles, trains), mine by hand, craft by hand at the game's speed, place and pick up within reach, move items between inventories, configure machines, wire circuits, set research, place ghosts and deconstruction marks in charted chunks, use construction robots once researched, launch rockets and run space platforms, fight. Agents capture and place their own blueprints.
  • Not allowed: items or buildings from nothing, teleporting, seeing unexplored map, changing the game's speed, console commands, Lua or talking to the server directly, changing the harness. Since Oct 17 08:30, no blueprint strings made by viewers or found on the web.
  • Not supported yet (usage doc, Oct 17): elevated rails and rail ramps, the selector combinator, and moving fluids by hand.
  • Waiting: queues of up to 128 steps run inside the game with no round trip; standing orders run the agent's own routines when the character is free; fh sleep waits up to 900 seconds and wakes on events.
  • Size of an action: one call can place up to 256 ghosts, submit a 128-step queue, or run a refuel tour over a radius. A call is not a keypress.

Action counts

Over shifts 1 to 28 the agents sent 431,520 requests that were not the host's own polls, about 1.9 per model turn. 140,286 of them were game actions, about 1,270 an hour for the team or 141 per agent-hour. 0.8% of all requests failed.

  • "Game action" is the agents page's definition: a request that is neither a read nor talk. It counts some newer reads (trace, supply, platforms, stock) as actions, so it overstates acting in later shifts.
  • The most used over the run: inspect 51,676; transfer 38,525; tell 28,478; move_to 24,291; sleep 19,837; chat 13,551; place_ghosts 8,378; build 8,315; say 7,789. (A further 120,700 observe requests were mostly fh's own reads at the end of each wait.)
  • Agent calls per shift in shifts 22 to 27, counted without help lookups or the host's reads: 10,203 to 16,326.
  • 62 distinct actions were used in shift 1, and 106 to 117 a shift from shift 20.
  • An fh call's round trip, from the request to the reply in the journal: a median of 45 to 60 ms in every shift, 90th percentile 67 to 195 ms (365 ms in shift 13, during the memory trouble). The model's own think time per step is seconds (median 2.2 to 8.6 s for the Codex agents in a Oct 11 test), so the game interface is 1 to 2% of a step.
  • For scale, FLE's paper measured its headless server at "an average of 218 operations per second across core API functions" on a MacBook Pro M4, and 68 a second with the Python interpreter in the loop. That is throughput of API calls, not a round trip, so the two numbers measure different things.

Tokens

Tokens are counted from each coding tool's own session logs. The run has used 22.6 billion in 226,467 model turns, about 100k tokens a turn and 161k per game action. 97% of input tokens were read from cache, and output was 0.37% of the total (84M). There is no dollar figure: the agents run on subscriptions, not metered API keys.

AgentTokens, shifts 1 to 28Model turnsTokens a turnCompactions
Gemini3.87B34,677112k(a new conversation each turn)
Luna3.82B40,24095k372
Sol3.75B41,72390k494
Astra3.60B45,66579k567
Muse2.37B18,826126k70
Grok1.87B16,309114k181
Opus1.68B12,137138k29
Sonnet0.90B7,589118k33
Haiku0.72B9,30177k236

The Oct 17 audit found that tokens follow turns, not reply size: every agent but Gemini compacts at a fixed threshold, so a turn costs about half of (the context after a compaction plus the threshold) whatever the replies hold. Trimming repeated reply parts would save 2 to 3M of about 870M tokens a shift. The agents page has the detail, and the agents' numbers are on the site.

For scale: FLE's paper reports 154,543,150 tokens for all of Claude 3.5 Sonnet's runs and $1,318.28 for every experiment in it. One four-hour shift here is about 870M tokens.

Game speed and length

The run has been one continuous world since Oct 12 14:27, in real time. Over 3,290 two-minute samples the median game speed was 57.0 ticks a second (60 is real time); after the Oct 16 perf work it has stayed at 59.3 to 59.4. By Oct 17 09:01 the world had run 105h32m of game time in about 110.5 hours of score rows, about 0.95 game hours per wall hour.

  • The slow stretches each had a cause: the stream's score read (fixed Oct 14 21:34), the box's memory (Oct 14 and Oct 16), and the census pass that feeds the agents' memory (fixed Oct 16 20:02). See the harness page.
  • Turn mode, which pauses the game while the agent thinks, exists in the mod and was tested on Oct 10; the live world has never used it. In that test it cut game time to early milestones by a third or more, but the game clients in paused worlds were dropped several times.
  • A pre-run estimate (Oct 10 to Oct 11) put promethium science at 38, 60 or 140 game hours (low, central, high). The team researched it at 98h09m of game time.

The run, shift by shift

Numbers at each shift's end, from the score log and the agents' logs. Shift 28 is to Oct 17 08:49.

ShiftTechnologiesRocketsGame actionsTokensModel turnsfh median ms
13609,8811,205M11,19445
254127,684808M7,62246
379278,923614M6,03045
495399,205597M6,25346
597504,706822M7,93148
6104594,207869M7,98148
7125855,241918M8,99548
81321125,664846M8,12548
91471374,312655M7,34350
101551616,161841M9,28350
111671846,0331,001M11,01450
121692315,880973M11,16853
131712503,602633M6,90360
141712993,025552M6,02151
151753214,762634M6,78750
161753823,608639M6,69150
171824733,422747M8,15752
181855793,981893M9,94754
191876853,474782M6,81853
201907963,341716M6,16350
211909592,858698M5,88453
221931,1872,715679M6,03656
231941,3764,697835M7,97057
241991,5354,0811,034M10,08460
252021,7584,5331,110M10,87155
262041,9864,213956M9,74552
272072,2366,189871M9,03354
282112,3423,888643M6,41854
  • Gemini's game actions fell from 700 to 3,758 a shift in shifts 1 to 12 to 16 to 65 in shifts 14 to 24, while its weekly quota allowed it about 6% of the time; that is most of the drop in the team's total.
  • Shift 13 resumed from an old save for its first hour (see the failures); counts of science packs made, which add up rises between score rows, count about 29,500 packs twice there. Rockets and technologies are the game's own counters.

What we looked at before building

On Oct 10 the project surveyed existing Factorio harnesses before choosing one. That survey is the only comparison in the repository, and it shaped the design.

  • CarsonBurke/factorio-harness was chosen as the base: a command-line tool over RCON to a Lua mod running per-tick actions, with no teleport or free items. See the harness page.
  • FLE was noted for its evaluation method and renderer.
  • Four MCP-based harnesses were looked at for ideas: one with honest pathfinding and one instance per character, one where two Codex agents steer one character through Space Age, one with blueprint catalogues, and one that sends literal keyboard and mouse input.
  • The takeaway written then, from earlier long agent runs: "the wins came from long-horizon persistence, a testing sandbox, and letting the model write its own tools on top of honest primitives. Reaction speed matters less than keeping the LLM out of low-level loops."

Caveats

These numbers are this run's, under its conditions. They are not a benchmark score, and the run changed its own harness while it played.

  • The harness grew from 113 to 186 actions during the run, by 875 commits, in answer to the agents. Early and late shifts did not play with the same tools.
  • Game actions depend on which actions count as reads; requests include those the agents' own scripts send.
  • Wall hours are first to last score row in each shift; about an hour of rows is missing around shifts 6 and 7 after a broken score read.
  • "Compactions" mean different things per tool: Codex compacts on the server, Gemini's tool starts fresh conversations.
  • The models, their tools and their settings differ from agent to agent, and they share one world, so a number for one agent is shaped by the other eight.