Claude Fable 5 Plays Factorio Autonomously
Claude Fable 5 autonomously plays Factorio, the factory-building game beloved by engineers, strategizing and building an automated factory on its own.
This lesson is original educational writing based on this video by Anthropic (published June 9, 2026). All credit for the original content goes to the creators.
1. Why Factorio is a meaningful AI benchmark
Most game benchmarks for AI tell you something narrow. Chess tells you about tree search. Go tells you about pattern recognition in combinatorially large spaces. Atari games test reactive control with visual input. Factorio tells you something different: it tests whether a system can reason about resource dependency graphs, manage long-horizon plans, optimize throughput under constraints, and handle emergent complexity that compounds over time. These are not abstract CS capabilities β they are the same cognitive demands that appear in software architecture, project management, supply chain design, and systems engineering.
The game begins simply: you crash-land on an alien planet and must collect coal and iron ore by hand. The end goal is launching a rocket into space. Between those two states lies a chain of increasingly complex manufactured goods, each requiring inputs that must themselves be manufactured, stored, and transported. Iron plates require iron ore and a furnace. Gears require iron plates and an assembler. Belts require gears and iron plates and an assembler. Inserters require gears, iron plates, electronic circuits, and assemblers. And so on, twenty or thirty layers deep. By the time you are building the rocket components, your factory is a city-sized network of miners, smelters, chemical plants, assembly lines, and robotic logistics systems that must all cooperate without deadlocking.
An AI playing Factorio autonomously cannot rely on reactive decision-making. Every action in the early game has consequences that only manifest hours later. Building too few furnaces now means running out of plates when you try to scale up. Placing your assembly lines in the wrong configuration means you cannot expand them later without tearing everything down. Neglecting power infrastructure means your factory pauses just when it was gaining momentum. A model that plans only one step ahead will produce a broken factory; only a model that can hold the full dependency graph in mind and reason backwards from the end goal can build something that works.
2. What autonomous Factorio play requires from an AI
Reading the game state accurately is the first requirement. Factorio presents the player with an evolving snapshot of the factory: current inventory, what each assembler is producing and whether it is running or starved, the state of the logistics network, the power balance, and the positions of any enemies attacking the perimeter. A model playing autonomously must parse all of this and maintain an updated world model β not from natural-language descriptions, but from the structured output of game state APIs or visual input.
Multi-step planning is the second requirement, and the harder one. A human Factorio player typically holds a mental build order: a sequenced list of things to construct, each building on the previous. βSet up copper smelting, then scale iron smelting, then build a basic assembly line for red science, then expand power generation before I unlock green science.β Each step unlocks the next and must be completed before proceeding. A model must construct this build order from first principles, adapting it as conditions change β if an enemy attack destroys part of the factory, the plan must be revised.
Backtracking and replanning distinguish a capable autonomous agent from a brittle one. Factorio regularly creates situations where a plan fails: a resource patch runs dry, a bottleneck emerges that chokes the whole production line, or a building is placed in a position that blocks future expansion. A model that cannot recognize failure and adapt will get stuck. This is a significant test of goal-directed reasoning: the model must maintain its high-level objective (build the rocket) while revising the low-level plan that was supposed to achieve it.
Iterative improvement is the final requirement. Early-game factories are inefficient by design β you build with the resources you have, not the resources you wish you had. As the factory grows, the original layout becomes a bottleneck. Good Factorio play involves continuously improving throughput, expanding capacity, and redesigning subsystems that are no longer adequate. This is the same iterative refinement loop that appears in software development, product design, and engineering in general.
3. The factory mindset and real-world systems thinking
One of the reasons engineers love Factorio is that it externalizes and gamifies the thinking patterns that appear in real systems design. Every factory is an argument about throughput, latency, and bottleneck management. The concepts transfer directly.
Throughput is the number of units produced per unit of time. In Factorio, building more smelters increases iron plate throughput; in software, adding more workers to a thread pool increases request throughput. The constraint is always the bottleneck β the slowest step in the chain β and optimizing anything that is not the bottleneck produces zero improvement in total output. This is the insight behind the Theory of Constraints, applied manufacturing management, and Amdahlβs Law in parallel computing. Playing Factorio teaches it viscerally.
Buffer management is the companion concept. Factorio belts and storage chests act as buffers: they absorb production surges and smooth out demand spikes, preventing fast producers from being blocked by slow consumers. Under-buffering causes starvation; over-buffering wastes space and masks actual throughput problems. The same tradeoff appears in message queues, database connection pools, and I/O buffers in operating systems. Getting the buffer size right is a skill, and Factorio makes the consequences of getting it wrong immediately visible.
Emergent complexity is the most humbling lesson. Simple rules β each belt moves items from left to right, each inserter picks items from a belt and places them in a machine β combine to create behaviors that are difficult to predict in advance. A change in one part of the factory ripples through all downstream production. This is why well-designed factories are modular: each subsystem has well-defined inputs and outputs, and changes within a module do not leak into others. This is also why well-designed software systems are modular.
4. Multi-step planning: what the demo reveals about Fable 5
The fact that Fable 5 can build a working Factorio factory autonomously reveals something specific about its planning architecture. The game requires the model to hold, at a minimum, a three-level plan simultaneously: the strategic goal (get to rocket launch), the operational plan (what production chains to build in what order), and the tactical actions (place this smelter here, connect this belt there). Most AI planning demonstrations operate at only one or two of these levels. Maintaining coherent plans at all three levels simultaneously, and correctly propagating changes between them when something goes wrong, is the capability that Factorio actually tests.
This multi-level planning capacity is the same capability that makes Fable 5 useful for complex software projects. A software development task has the same three-level structure: strategic goal (ship the feature), operational plan (design the data model, build the API, add the UI), tactical actions (write this function, add this test, fix this import). A model that loses track of the strategic goal while executing tactical actions produces code that works locally but does not serve the larger objective. The Factorio benchmark is a proxy for this capacity in a domain where success and failure are unambiguous.
5. Applying dependency-graph thinking to agent design
The most transferable lesson from the Factorio demo is not about game-playing β it is about how to structure complex work that an AI agent will execute. Factorio teaches that the right way to approach any multi-step task with dependencies is to draw the dependency graph first and then sequence the work accordingly. You build what is needed before you build what needs it. You never start a downstream step before its upstream inputs are ready.
When designing agentic workflows for Claude or any capable model, this principle translates directly into better prompts and better results. Rather than describing a goal and asking the model to figure out the sequence, explicitly ask for the dependency graph first. βWhat needs to be true before each of these steps can begin?β is a question that forces the model to surface hidden dependencies before they cause failures mid-execution. A model that has articulated its dependency graph before starting work is less likely to find itself halfway through a task, blocked because a prerequisite was skipped.
The factory design mindset also suggests thinking about modularity and buffers in agent workflows. Long agent runs benefit from intermediate checkpoints β outputs that can be verified before the next stage begins, analogous to a Factorio intermediate product that can be inspected on a belt before it enters an assembler. These checkpoints make failures recoverable: when something goes wrong, you know which module failed and can restart from a known-good state rather than from scratch.
Check your understanding
5 questions Β· your answers are saved in this browser only
-
1. What makes Factorio a more meaningful AI benchmark than classic games like Chess or Atari titles?
-
2. In Factorio terms, what is a 'bottleneck' and why does it matter for planning?
-
3. What three-level planning structure does Fable 5 maintain while playing Factorio autonomously?
-
4. What is the most direct way to apply Factorio's dependency-graph thinking when designing a complex agentic workflow?
-
5. Why does good Factorio design favor modular factory sections over one large interconnected layout?
Build it yourself
Follow these exact steps to reproduce it yourself Β· estimated time: ~20 minutes
Prerequisites
- Access to Claude (claude.ai or API)
- A complex project or task you are working on that has multiple interdependent steps
Step 1 β Choose a complex project with real dependencies
Pick something with genuine dependencies β not just a list of independent tasks, but a project where some things genuinely cannot start until others are complete. Good examples: building a web app with auth and a database, planning a content pipeline, designing a data processing workflow, or architecting a multi-service system.
Step 2 β Ask Claude to draw the dependency graph
Do not jump straight to a step-by-step plan. Ask for the dependency graph first:
I want to build [project description].
Before we start planning the steps, help me think about the dependency graph:
- What are the main components or deliverables?
- For each one, what must be completed or available before it can begin?
- Are there any circular dependencies or hidden prerequisites I might be missing?
Draw this out as a structured list, not an ordered plan yet.Step 3 β Derive a sequenced build order
Now ask Claude to convert the graph into a sequenced plan:
Based on the dependency graph we just identified, what is the optimal build order?
Specifically:
1. Which things can be started immediately (no dependencies)?
2. Which things become unblocked after each early step completes?
3. What is the critical path β the sequence where a delay causes the whole project to slip?Step 4 β Identify the bottleneck
Ask Claude to apply Factorio-style bottleneck thinking:
Looking at this plan, where is the bottleneck?
Which step, if it takes twice as long as expected, will delay everything else?
What can we do to reduce risk at that specific step?Step 5 β Execute with checkpoints
Start executing the plan one module at a time, verifying each output before proceeding:
Let's start with [first unblocked step]. Complete only this step and show me the output.
I'll verify it before we move to anything that depends on it.Expected result: A dependency-aware plan with an explicit critical path and a checkpoint-based execution strategy β the same approach Fable 5 uses when building a Factorio factory, and the same approach that produces reliable outcomes in complex real-world projects.