ScriptBots GitHub

Artificial life · Rust · WebGPU

Run an
evolving world.

Sixty-four founders with heritable brains graze, hunt and breed across a meadow drawn live in 3D. Follow one creature, read the whole population, or change the conditions and compare what happens.

  • Heritable brains
  • Rust → Wasm worker
  • WebGPU field
  • Offline once open
How it works

Runs on your device in a WebGPU browser. No account, no telemetry.

Opening the field

Loading the simulation and preparing the 3D scene.

Live · simulated in this tab

Live world

Opening world…

Evolution MeadowSeed 42

Tick
—
Living
—
Births
—
Deaths
—
Field guide ↗
Founders
64Evolution Meadow at seed 42 opens with 22 MLP, 21 DWRAON and 21 Assembly brains.
Senses → actions
25 → 9Every tick, each brain turns 25 sensor values into 9 actions.
Seeded streams
6Environment, food, population, lineage, mutation and crossover each draw their own randomness.
Server round-trips
0The Rust simulation runs in a worker on your device.

Chapter 01 · The creature

Two wheels, four eyes, one brain.

A ScriptBot is a round body on two wheels, living on a flat world that wraps at its edges. Each tick its brain reads 25 numbers about its surroundings and itself and writes 9 back: how fast to turn each wheel, what color to be, how far to extend its spike, whether to boost, how loudly to call, and whether to share food.

01.1 · The body

What a ScriptBot is made of.

The science runs in two dimensions. A creature has a position, heading, velocity, health, body color, spike length and age, plus the generation it was born into. The browser and the desktop Bevy view draw that plane in 3D over generated terrain: deep and shallow water, sand, grass, bloom and rock. Terrain sets how fertile each food cell is.

Seen from above illustration

A ScriptBot seen from above A round body with a wheel on each side, four eyes with their own view cones, and a spike pointing forward, inside its sensing range. LEFT WHEEL speed set by the brain RIGHT WHEEL unequal speeds turn it BODY COLOR red, green, blue outputs EYES ×4 aim and width are inherited SPIKE extends to attack SENSING RANGE smell, sound, hearing, blood
Body radius is a world setting, 10 units by default, so size does not evolve. Where each eye points and how wide it sees are inherited, eye by eye.

Wheels. Two outputs set the left and right wheel speeds. By default the world moves a creature with the original simulator’s two-rotation model, transcribed from the C++; conventional differential drive can be selected for experiments. Boost (output above 0.5) doubles both wheel speeds, and moving faster costs more. In this page’s world, and in the desktop app when it opens a window without a scenario file, bodies are solid: creatures collide as discs 32 units across, stop where they touch and bounce back a little, instead of passing through each other as they do in the C++.

Eyes. Four eyes each report how much is in view and its red, green and blue. Whether a lineage comes to read color, to find prey or to avoid hunters, is up to selection.

Spike. The brain sets a target spike length and the spike eases toward it. Only meat-leaning creatures (diet below 0.5) do damage, and only with the spike past half length. A grazer that raises its spike pays the energy and harms no one.

Color and sound. A creature sets its own body color and how loudly it calls. Others see the color through their eyes and hear the call through hearing, so both can become signals if selection favors them.

01.2 · Senses and actions

25 numbers in, 9 numbers out.

Every brain family speaks the same layout, transcribed from Karpathy’s C++ and enforced at compile time. The check exists because a hand-indexed version once failed: combat read output 3 as boost for months, but index 3 is the green channel, so hunters were rewarded for being green. Click any creature in the world above to watch these values live.

Senses 25 inputs

  • ×16Four eyesFor each: how much is in view, and its red, green and blue.
  • ×1FoodHow much food is in the cell underneath.
  • ×1SmellHow many neighbors are near, weighted by closeness.
  • ×1SoundMovement noise from neighbors.
  • ×1HearingDeliberate calls from neighbors.
  • ×1BloodWounded creatures seen ahead.
  • ×1HealthIts own health. A creature cannot sense its energy reserve.
  • ×2ClocksTwo internal oscillators with inherited periods.
  • ×1TemperatureHow far the local temperature is from the one it prefers. It rises from the map’s center line toward the east and west edges.

Actions 9 outputs

  • ×2WheelsLeft and right speed.
  • ×3Body colorRed, green and blue.
  • ×1SpikeTarget length.
  • ×1BoostOn above 0.5: double wheel speed.
  • ×1SoundHow loudly to call.
  • ×1GiveWillingness to pass energy to neighbors.

01.3 · Energy, diet and death

Graze, hunt, or a little of both.

Diet is one inherited number between 0, meat, and 1, plants. It decides what a creature can eat and how it is counted: the Observatory sorts the living into Hunters, Generalists and Grazers by it.

Two budgets. Health and energy are tracked separately, each between 0 and 2. Every tick the same cost comes out of both: a basal 0.0002 plus a movement charge that grows with wheel effort. Grazing and gifts refill only energy; only meat restores health. So for a pure grazer, health is a lifetime budget: standing still from a health of 1, it lasts about 5,000 ticks. Each creature also prefers a temperature, but discomfort costs nothing by default, as in the C++.

Grazing. A creature eats from the food cell beneath it. Intake scales with how plant-leaning it is and with how slowly it moves, so a grazer that stops to eat gets more than one passing through. Food regrows in every cell, decays and diffuses, and fertile terrain holds more of it.

Hunting. Only a spike kill leaves meat. Creatures near the carcass share it, weighted toward meat-eaters and divided by the number sharing raised to the power 1.25, the rule from the C++. Meals also earn progress toward a child.

Giving. A creature with a high give output passes a little energy, 0.001 a tick by default, to each neighbor within 50 units. Karpathy added food sharing in 2011 because it “potentially enables emergence of altruism”. The desktop branch studies include a cooperation treatment for testing that.

How creatures die

Spike
Killed by a hunter’s spike. Only these deaths leave meat for whoever is close.
Worn out
The usual end: metabolism takes health every tick and only meat gives it back. The record says starvation only if the energy reserve is also empty and the creature lost food that tick; otherwise the cause is recorded as unknown.
Brain fault
An Assembly program produces a number that is not finite. The creature is removed and the cause recorded separately.
Old age
Only a label, and a rare one. Age advances once every 100 ticks and aging costs no health by default, so “aging” marks a death with no other cause at age 12,000, about 1.2 million ticks.

Chapter 02 · Evolution

A brain is inherited.

No one trains these brains, and a brain’s wiring does not change during its owner’s life. A creature that gathers enough reproduction progress has a child, whose brain is a copy of its parent’s with small random changes. Brains that keep their owners fed long enough to breed spread; the rest die out with them.

02.1 · One tick

Fifteen stages, in the same order every tick.

The code runs fifteen stages; here they are in ten groups. Each works from the state the one before it committed. Deaths are queued and then committed, sums and removals run in a fixed order, and creatures are sorted by their stable ID before every tick, so the outcome does not depend on thread scheduling or memory layout.

  1. Events and age

    Scheduled interventions fire; every 100 ticks, ages advance.

  2. Food

    Food regrows, decays and diffuses across the grid.

  3. Sense

    Every creature reads its 25 inputs from one snapshot.

  4. Think

    Each brain turns those inputs into 9 outputs.

  5. Act

    Wheels, spikes, colors and calls take effect, and metabolism is charged.

  6. Eat and share

    Grazing and gifts settle in a fixed order.

  7. Fight

    Spike damage lands; deaths are queued, then committed.

  8. Reproduce

    Children are born in stable order; arrivals keep the floor.

  9. Record

    History is captured for the charts and, on desktop, the run database.

  10. Settle

    Per-tick flags reset before the next tick begins.

02.2 · Birth and inheritance

One child, sometimes two parents.

Grazing and carcass meals earn reproductive progress in Evolution Meadow. A parent that earns seven units and has enough reserve can have a child and pays the child’s starting energy. Time contributes to birth progress in Timed Meadow.

Ordinary births in Evolution Meadow have one parent. The open world still admits periodic arrivals, including crossover. In scenarios that enable paired births, traits blend from both parents and brains cross only within their own family.

Then the child’s brain and traits shift by amounts set by two mutation rates, and those rates are inherited and mutate too. The steps follow the order of the C++ Agent::reproduce, with smaller changes to body traits.

Generation counts up from the founders: a child is one more than its parent, or one more than the higher generation of its two parents. Every creature keeps a stable ID and up to two parent IDs, so the Observatory can trace founder families to the creatures alive now.

What a child inherits

Brain
The parent’s genome, mutated. Crossover only within one family.
Diet
Where it sits between meat (0) and plants (1).
Senses
How sensitive its smell, sound, hearing, eyes and blood sense are.
Eyes
Each eye’s direction and field of view.
Clocks
The periods of its two internal oscillators.
Temperature
The temperature it prefers.
Mutation rates
How much its own children will vary.
First color
The parents’ color averaged, plus a little noise. From then on its brain sets it.

02.3 · Brain families

Three kinds of brain share one world.

Every new browser world deals its 64 founders out in turn to MLP, DWRAON and Assembly: 22, 21 and 21. All three live under the same physics and read the same 25 inputs. The desktop app can add two more families.

  • In the browser

    MLP

    A recurrent network in the style of the original: 200 nodes, each with 4 weighted connections. Its state carries from tick to tick.

  • In the browser

    DWRAON

    Damped Weighted Recurrent AND/OR Network, from Karpathy’s 2011 release. Each of 200 nodes combines 4 weighted, optionally inverted inputs as an AND or an OR, with its own bias and damping.

  • In the browser

    Assembly

    A program of 166 instruction slots, each visited once per tick, with no loops. Karpathy added one in 2012 with the note “it needs much more work”; this one is experimental too. A result that is not finite kills the creature with a brain fault.

  • Desktop · --brain neuro

    NeuroFlow

    A deterministic feed-forward network, built into the desktop app by default and chosen with --brain neuro. It has its own versioned heredity; the mixed founder preset leaves it out.

  • Desktop · opt-in

    FtBrain

    A dense feed-forward network on Frankentorch behind brain-ft. Its acceptance is still pending; with it enabled, desktop founders include a fourth family.

02.4 · Inside each brain

200 cells, three ways to use them.

Each of the three browser families keeps 200 numbers. The first 25 are overwritten with the senses every tick, and the last 9 are read back as the actions, last cell first. What happens in between is what differs. The state carries from one tick to the next, so every family has short-term memory, and the selected creature’s inspector shows it changing.

MLP

Each of the other 175 nodes adds up four inputs, squashes the total and moves part of the way toward it.

sum     = Σ weight × source
target  = logistic(gain × sum + bias)
output += damping × (target − output)

logistic(x) = 1 ÷ (1 + e^−x)
Sources
Any of the 200 nodes, so loops are allowed. At birth, one in five is wired straight to a sense.
Change detectors
One connection in twenty reads how much its source changed since the last tick, times 10, instead of its value.
Founders
Half the weights start at zero and the rest between −3 and 3; gain 0 to 5, bias −2 to 2, damping 0.9 to 1.1.

DWRAON

Each node is an AND or an OR of four sources, any of which may be inverted. Every node’s value stays between 0 and 1.

AND: target = bias × a × b × c × d
OR:  target = bias + Σ weight × source
output += damping × (target − output)
AND
Multiplies its sources and ignores the weights, so any source near 0 shuts it off.
Inverted
An inverted source reads 1 − x, so a node can respond to something being absent.
Clamped
Senses, targets and outputs are held to 0 to 1, and damping to 0.01 to 1.

Assembly

No wiring: cells 25 to 190 are a strip that is program and memory at once, read in order once a tick. A cell holding a value from 2 to 3 is an instruction, and the next three cells name the cells A, B and C it works on.

ValueEffect
2.0–2.1C = A + B
2.1–2.2C = A − B
2.2–2.3C = A × B
2.3–2.4if C > 0: A = 0
2.4–2.5if C > 0: A = −A
2.5–2.7if C > 0: A += 2nd operand
2.7–3.0if C > 0: A = B

An operand names a cell by its fractional part times 200, so 0.37 means cell 74. Operands are read as instructions too, so a write can turn data into code: the program can rewrite itself. Working cells are clamped to ±10 after each pass.

How they change. At each birth, every MLP node gets six chances, each at the inherited mutation rate: to nudge its bias, damping, gain or one weight by a random step sized by the second rate, to switch one connection between reading a value and reading a change, or to rewire one connection to a random node. DWRAON nodes nudge their bias and one weight three times as often, and can rewire a source, flip an inversion, or switch between AND and OR. An Assembly cell mutates by being replaced with a fresh number between −3 and 3. When the second parent is from the same family, an MLP child takes each node whole from one parent or the other, an Assembly child each cell, and a DWRAON child each part of each node.

Chapter 03 · Field guide

Follow one. Then read the whole world.

The world at the top of this page has three views over one running simulation. World is the 3D field. Observatory measures the living population. Lab changes the conditions and compares outcomes. Switching views does not restart anything.

  1. 03.1

    Follow a creature

    Click it to move in close and see its senses, wheel requests, health, reserves, inherited traits and recent brain activity. The camera stays with it until you press F, pan, pick a camera view or clear the selection.

  2. 03.2

    Compare living cohorts

    In Observatory, choose a generation, diet or age group. See where its traits differ from the rest of the world, then follow a creature from any histogram bin.

  3. 03.3

    Change one condition

    In Lab, stage a food bloom or a drought, or compare a control and a treatment from one saved cut. Save the world to a file and bring it back later.

ScriptBots roaming grassy hills between shallow pools

Simulation capture · The field

A meadow from above: grass, sand and shallow water. Terrain sets how fertile each food cell is.

03.4 · Observatory

What the Observatory measures.

The worker computes every report from the live roster, using the same cohort and ecosystem code as the desktop app. Wherever a chart shows a group, you can jump to a living member of it.

Living cohorts
Pick a diet, generation or age group and compare it with everyone else across eight traits: health, reserve, speed, spike reach, plant bias, age, boosting, and whether both health and reserve are low.
Cohort comparison
Any of those traits as a histogram (12 bins, or 2 for the yes-or-no traits), the group against the rest. Choose a bin to follow an example.
Population history
The living count, births and deaths over the last 120 or 256 completed ticks; 256 is as much history as the browser keeps. Pin a moment to read it.
Habitat atlas
The map in 50 regions, 10 by 5, shaded by crowding, forage, stress or movement. Visit a region to fly the camera there.
Health × reserve
An 8 × 8 grid of health against energy reserve in quarter-unit steps: how many of the living fall in each cell, how many would if the two were unrelated, and how many are low on both (health 0.5 or less, reserve 0.25 or less).
Living lineages
Follow the deepest living descendant, see how generations change across recent ticks and inspect founder families that can still be traced through retained birth records.
Anomaly signals
Flags when mean health or reserve in the newest eight-tick block leaves the range of up to 24 earlier blocks, and points to the living creatures furthest from the reference.
Diet clustering
Whether hunters, generalists and grazers live in different districts more than chance would put them: the mutual information between diet and a 4 × 3 grid of districts, from up to 512 creatures, minus the median of 127 shuffles that keep group sizes and positions. Descriptive, not a significance test.

03.5 · Lab

Change one thing, keep the rest.

Lab acts on the same world you are watching. Comparisons run their two arms in a separate worker, so the live world keeps its own state while they run.

New world
Start Evolution Meadow (seed 42), Timed Meadow (seed 42) or Food-funded Meadow (seed 11) at tick zero.
Presets
Explore two populations at 500,000 ticks or open Deep Meadow, an open world that reached generation 20,000 after 68,083,500 ticks. You can also save your paused world by name.
Fast-forward
Continue the same world at up to 32× with 3D drawing suspended. Use Show field to return to the creatures.
Interventions
Food bloom, Drought, Close world and Open world, staged at a paused tick and applied to the whole map. The scientific timeline records the application tick and how many cells and creatures each action touched.
Comparisons
From one paused cut, run a control and a treatment for up to 512 ticks (96 by default) and compare the living count, mean reserve and mean health.
Checkpoints
Save a browser continuation (.sbcheckpoint) to pick up later, or a scientific world cut (.sbworld) in the checkpoint format the desktop branch studies read. Files stay on your disk.

Keyboard with the world focused

Space
Run or pause.
E
Full window, and back.
Esc
Clear the selection, then leave the full window.
F
Follow the selected creature, or stop.
O L
Open Observatory or Lab.
Arrows + -
Pan and zoom the camera from the keyboard.
Mouse
Drag to orbit, right-drag to pan, scroll to zoom at the pointer. Hold Ctrl for fine control; Alt-drag dollies.
Touch
Drag to orbit; two fingers pan and pinch to zoom.

Chapter 04 · The rules

The arithmetic of staying alive.

Every action costs or earns a number. Here are the formulas in scriptbots-core with their default settings, each with a worked example, so a value in the inspector can be checked by hand. Most were transcribed from the C++; where Rust differs, Origins lists it.

04.1 · Settings

Three worlds, three budgets.

A scenario changes a handful of settings from the Rust defaults. These are the ones that decide how fast creatures breed, what moving costs and how much food there is.

SettingEvolution MeadowTimed MeadowFood-funded Meadow
World6000 × 3000, open6000 × 3000, open2000 × 1000, closed
Food at the start0.035 per cellNone0.25 per cell
Food regrowth rate0.00020.010.0005
Food decay and spread0.0005; 2% a tick0.002; 15% a tick0.002; 15% a tick
Random refill0.5 into one cell every 15 ticksEvery 25 ticksNone
Cost of moving0.0003 × effort, plus 0.00032 a boosted tick0.005 × effort0.005 × effort
Fertility bonus to progressNoneUp to +50%Up to +50%
Progress from timeNone1 a tickNone
Progress per child7607
Chance to try10% every 15 ticks20%10%
Child’s energy0.25, paid by the parent1.0, free0.25, paid by the parent
Population floor6424None
Arrivals1 every 100 ticks, 50% bred2 every 600 ticks, 30% bredNone

04.2 · Moving and paying

Every tick costs health.

Each wheel output, from 0 to 1, times 0.3 gives that wheel’s speed, and boost doubles both. The two-rotation model swings the body around one wheel and then around the other. Both wheels at full speed carry a creature about 3 units a tick, or 6 boosted. One wheel alone turns it 0.3 radians, about 17°, and moves it 1.5 units.

The same drain comes out of health and out of energy every tick: a basal cost plus a share of wheel effort. Grazing can refill energy, but only meat refills health, so the drain sets how long a creature that never eats meat can live.

Evolution Meadow makes movement cheap and boost expensive. Effort costs 0.0003 per unit there instead of the default 0.005, and every boosted tick adds a flat 0.00032. Running at full speed shortens a life by less than a third instead of nearly nine-tenths, while boosting still burns more than three times the basal rate. Timed and Food-funded Meadow keep the defaults.

A spike extended past 0.5 costs a further 0.02 × the spike output in energy each tick, whether or not it hits anything.

The drain

speed  = 0.3 × wheel output
         (× 2 with boost)
effort = (|left| + |right|) ÷ 2
drain  = 0.0002 + move × effort
         + boost charge

By default move is 0.005 and there is no boost charge. Evolution Meadow sets move to 0.0003 and charges 0.00032 for each boosted tick.

Ticks from health 1.0EffortDefaultEvolution
Standing still05,0005,000
Both wheels full0.35883,450
Full and boosted0.63121,430

04.3 · Grazing

Slow, plant-leaning eaters do best.

A creature with health below 2 eats from the food cell under it, 50 units on a side. It can take at most 0.002 a tick, scaled by how plant-leaning it is and by how slowly its wheels turn: at full speed it eats only 30% of what it would standing still. Fertile cells are more nutritious and pay more progress toward a child.

Compare the two columns in the Food-funded Meadow example. On a cell with food, the still grazer earns a child’s 7 units in about 930 ticks and has 5,000 to do it in. The moving one needs about 1,480 ticks for the same progress and wears out after about 1,540, so it rarely breeds at all. In Timed Meadow both breed about as often as the attempt chance allows, because time adds 1 unit of progress a tick, more than 100 times what either earns by grazing.

Evolution Meadow changes both columns. Cheap movement lets the moving grazer last about 4,400 ticks, but fertility adds no progress there, so 7 units take it about 1,850 ticks, and 1,170 standing still. A grazer that keeps moving now lives long enough to breed.

The cell loses a fixed 0.001 for each creature grazing on it, however much that creature ate, as in the C++. In Timed Meadow a typical cell regrows faster than one grazer wastes it. Once Food-funded Meadow’s field has settled, a cell regrows about 0.0002 a tick, a fifth of what one grazer takes away, so a grazer that stands still empties its cell in about 90 ticks. In Evolution Meadow the same cell settles near 0.11 and regrows less than a tenth of the waste, so its grazers keep moving to find the refill that fills one random cell to its cap every 15 ticks.

One meal

eaten     = min(food, 0.002)
            × plant bias
            × (1 − 0.7 × wheels)
energy   += eaten × (0.65 + 0.35 × f)
progress += eaten × 3 × (1 + b × f)

Here f is the cell’s fertility, wheels is the mean of the two wheel outputs and b is the fertility bonus: 0.5 by default, 0 in Evolution Meadow. Two grazers on a cell of fertility 0.5 with food left. One has plant bias 0.8 and its wheels at 0.3; the other has plant bias 1 and stands still.

Food-fundedMovingStill
Eaten0.001260.00200
Energy in+0.00104+0.00165
Drain−0.00065−0.00020
Progress+0.00474+0.00750
Health 1.0 lasts1,540 ticks5,000 ticks
7 units take1,480 ticks930 ticks
EvolutionMovingStill
Drain−0.00023−0.00020
Progress+0.00379+0.00600
Health 1.0 lasts4,400 ticks5,000 ticks
7 units take1,850 ticks1,170 ticks

04.4 · Spikes and meat

A kill feeds whoever is close.

A hunter, diet below 0.5, with its spike extended past 0.5, hits every creature within 40 units plus the spike’s length and within 22.5° (π/8) of straight ahead. Damage grows with the spike output, the spike’s length, the faster wheel and boost, and is scaled by how squarely the target sits on the spike’s line. Bodies have at most 2 health.

The best possible hit, at full spike, full length, full wheels, boosted and dead ahead, takes 1.14 health. Without boost the most is 0.70. A creature at full health survives one boosted hit; one at health 1 does not.

A creature killed by a spike leaves meat for every living creature within 100 units, the killer included. Each share is weighted toward meat-eaters by (1 − diet)², reduced for victims younger than 500 ticks (those younger than 100 leave none), and divided by the number sharing raised to the power 1.25, so a crowd gets less in total than a pair.

The hit and the meal

damage = 0.25 × spike
         × (1 + 0.75 × length)
         × (1 + 0.6 × wheel + boost)
         × cos(angle)
share  = 5 × (1 − diet)²
         × min(age ÷ 5, 1) ÷ n^1.25

health   += share
energy   += share ÷ 2
progress += share

Here angle is how far the target sits off the spike’s line, age is the victim’s in hundreds of ticks, and n is how many share. A hunter (diet 0.1) and a grazer (diet 0.9) are near an adult carcass, so n = 2.

EaterShareEnergyProgress
Hunter1.70+0.85+1.70
Grazer0.021+0.011+0.021

The hunter’s one meal is worth about 360 ticks of the moving grazer’s progress in Food-funded Meadow and nearly a quarter of a 7-unit child. Meat pays the same in every world. Health stops at 2.

04.5 · Breeding

Progress, energy, then luck.

Each tick a creature’s progress grows by the time rate for its diet plus whatever its meals earned. Once progress reaches the scenario’s cost and its energy is at least 0.65, it gets a chance to breed every 15th tick. A successful attempt makes one child just behind it, which inherits as described in 02.2, and its progress starts again from zero.

In Evolution Meadow and Food-funded Meadow the parent pays the child’s 0.25 starting energy. Timed Meadow gives each child 1.0 free energy, contributing to the growth measured in 05.2.

The gate

progress += time rate + meals
ready     = progress ≥ cost
            and energy ≥ 0.65
if ready, every 15th tick:
            breed with chance p
WorldCostpTypical wait
Rust default30010%about 450 ticks
Timed6020%about 135 ticks
Evolution710%1,000+ ticks
Food-funded710%1,000+ ticks

Typical wait: ticks to reach the cost from time alone, plus the mean wait for a successful attempt (15 ticks ÷ p). Evolution and Food-funded Meadow pay nothing for time, so their wait is the grazing time from 04.3, or a hunter’s next carcass.

04.6 · The food field

Terrain decides where food grows.

Every cell has a fertility from 0 to 1, computed once from the terrain under it. Fertility sets the most food the cell can hold, how fast it regrows and how slowly it decays. Each tick, every cell first moves 15% of the way toward the mean of its four neighbors (2% in Evolution Meadow), then decays, then regrows toward the cap. A cell of fertility 0, such as most rock and deep water, holds at most 0.15, a third of what the best bloom on wet lowland can hold.

On a cell of fertility 0.5, with no one eating, food settles at the cap of 0.3 in the default world and in Timed Meadow. In Food-funded Meadow regrowth is 100 times slower than the default, and the same cell settles near 0.073, where regrowth just balances decay. Evolution Meadow regrows 250 times slower than the default but decays four times slower, and the cell settles near 0.11.

Fertility and food

f        = 0.2 + terrain
           + 0.6 × moisture
           − 0.4 × elevation
           − 6 × slope
cap      = 0.5 × (0.3 + 0.6 × f)
decay    = d × food
           × (1.5 − 0.5 × f)
regrowth = g × (0.5 − food)
           × (0.5 + 0.7 × f)

Here f is the cell’s fertility, held between 0 and 1, g is the world’s regrowth rate from 04.1, and d is its decay rate: 0.002 by default and 0.0005 in Evolution Meadow.

TerrainAdds to fertility
Bloom+0.35
Grass+0.20
Shallow water−0.20
Sand−0.25
Rock−0.45
Deep water−0.80

04.7 · Every setting

The defaults, and what each world changes.

These are the settings that change what happens in a world, by the names a scenario file uses. The defaults are read from this release’s WebAssembly when the site is built, so they cannot drift from the code. A scenario column shows a value only where that world changes it; a dot means it keeps the default. Every browser world also gets solid bodies, whatever its file says. Settings for logging, storage, archives and rendering are left out.

Show all 85 settings
SettingMeaningDefaultEvolutionTimedFood-funded
World and bodies · 01.1
world_widthWorld width in units6000defaultdefault2000
world_heightWorld height in units3000defaultdefault1000
closedNo arrivals at all, floor includedfalsedefaultdefaulttrue
bot_radiusBody radius10defaultdefaultdefault
bot_speedWheel speed at full output0.3defaultdefaultdefault
boost_multiplierWheel speed multiplier while boosting2defaultdefaultdefault
locomotion_modelHow wheel outputs move the bodylegacysoliddefaultdefault
sense_radiusReach of smell, sound, hearing and blood120defaultdefaultdefault
topography_enabledLet slopes change speed and costfalsedefaultdefaultdefault
topography_speed_gainSpeed gained per unit of downhill slope, lost uphill0.35defaultdefaultdefault
topography_energy_penaltyDrain per unit of uphill slope, when enabled0.002defaultdefaultdefault
Moving and paying · 04.2
metabolism_drainBasal drain each tick0.0002defaultdefaultdefault
movement_drainDrain per unit of wheel effort0.0050.0003defaultdefault
metabolism_boost_penaltyExtra drain on each boosted tick00.00032defaultdefault
metabolism_ramp_floorReserve above which the ramp applies1defaultdefaultdefault
metabolism_ramp_rateExtra drain per unit of reserve above the floor0defaultdefaultdefault
temperature_discomfort_rateHealth drain from temperature discomfort0defaultdefaultdefault
temperature_comfort_bandTemperature difference felt as comfortable0.2828427defaultdefaultdefault
temperature_gradient_exponentShape of the temperature gradient across the map1defaultdefaultdefault
temperature_discomfort_exponentPower applied to discomfort beyond the band2defaultdefaultdefault
aging_tick_intervalTicks between age increments100defaultdefaultdefault
aging_health_decay_startAge at which old-age health decay starts12000defaultdefaultdefault
aging_health_decay_rateOld-age health decay per tick beyond that age0defaultdefaultdefault
aging_health_decay_maxCap on old-age health decay per tick0defaultdefaultdefault
aging_energy_penalty_rateExtra energy drain per unit of old-age decay0defaultdefaultdefault
Grazing and giving · 04.3
food_intake_rateMost food eaten in a tick0.002defaultdefaultdefault
food_waste_rateFood a grazer removes from its cell each tick0.001defaultdefaultdefault
food_requires_stillnessGraze only when nearly stillfalsedefaultdefaultdefault
stillness_speed_thresholdSpeed counted as still, when required0.05defaultdefaultdefault
food_transfer_rateMost energy given to each neighbor in a tick0.001defaultdefaultdefault
food_sharing_rateMost of the giver’s reserve given to each neighbor0.1defaultdefaultdefault
food_sharing_distanceHow close a neighbor must be to receive50defaultdefaultdefault
food_sharing_radiusUpper bound on that distance50defaultdefaultdefault
Spikes and meat · 04.4
carnivore_thresholdDiet below which a spike does damage0.5defaultdefaultdefault
spike_radiusHit reach beyond the spike’s length40defaultdefaultdefault
spike_alignment_cosineCosine of the widest hit angle off the spike’s line0.9238795defaultdefaultdefault
spike_damageBase damage of a hit0.25defaultdefaultdefault
spike_length_damage_bonusExtra damage per unit of spike length0.75defaultdefaultdefault
spike_speed_damage_bonusExtra damage per unit of the faster wheel0.6defaultdefaultdefault
spike_min_lengthSecond minimum length for a hit, after the fixed 0.50.2defaultdefaultdefault
spike_growth_rateHow far the spike moves toward its target each tick0.005defaultdefaultdefault
spike_energy_costEnergy per tick per unit of spike output, when extended0.02defaultdefaultdefault
carcass_distribution_radiusReach of a kill’s meat100defaultdefaultdefault
carcass_health_rewardMeat shared out, before weighting5defaultdefaultdefault
carcass_energy_share_rateEnergy gained per unit of meat0.5defaultdefaultdefault
carcass_reproduction_rewardProgress shared out, before weighting5defaultdefaultdefault
carcass_maturity_ageVictim age, in units, that leaves full meat5defaultdefaultdefault
carcass_neighbor_exponentPower of the number sharing that divides each share1.25defaultdefaultdefault
Breeding · 04.5
reproduction_cooldownProgress a child costs3007607
reproduction_rate_herbivoreProgress from time each tick, for a pure grazer10default0
reproduction_rate_carnivoreProgress from time each tick, for a pure hunter10default0
reproduction_food_bonusProgress per unit of food eaten3defaultdefaultdefault
reproduction_fertility_bonusExtra progress on fertile cells (b in 04.3)0.50defaultdefault
reproduction_energy_thresholdReserve needed to breed0.65defaultdefaultdefault
reproduction_energy_costReserve the parent pays per child00.25default0.25
reproduction_child_energyChild’s starting reserve10.25default0.25
reproduction_attempt_intervalTicks between breeding attempts15defaultdefaultdefault
reproduction_attempt_chanceChance an attempt succeeds0.1default0.2default
reproduction_partner_chanceChance of a second parent0.150defaultdefault
reproduction_mutation_scaleBody-trait step as a share of the inherited rate0.02defaultdefaultdefault
reproduction_meta_mutation_chanceChance the mutation rates themselves mutate0.2defaultdefaultdefault
reproduction_meta_mutation_scaleSize of that change0.5defaultdefaultdefault
reproduction_color_jitterColor change per channel at birth0.05defaultdefaultdefault
reproduction_spawn_back_distanceHow far behind the parent a child appears12defaultdefaultdefault
reproduction_spawn_jitterRandom scatter of that position20defaultdefaultdefault
Population · 04.1
population_minimumFloor kept by arrivals06424default
population_spawn_intervalTicks between scheduled arrivals100default6000
population_spawn_countCreatures per scheduled arrival1default2default
population_crossover_chanceShare of arrivals bred from two living creatures0.5default0.30
The food field · 04.6
food_cell_sizeSide of one food cell50defaultdefaultdefault
initial_foodFood in every cell at tick 000.035default0.25
food_maxFood a cell can hold before fertility0.5defaultdefaultdefault
food_growth_rateRegrowth rate (g in 04.6)0.050.00020.010.0005
food_decay_rateDecay rate (d in 04.6)0.0020.0005defaultdefault
food_diffusion_rateShare moved toward the neighbors’ mean each tick0.150.02defaultdefault
food_respawn_intervalTicks between random refills15default250
food_respawn_amountFood added to the refilled cell0.5defaultdefaultdefault
food_fertility_baseFertility before terrain0.2defaultdefaultdefault
food_moisture_weightFertility per unit of moisture0.6defaultdefaultdefault
food_elevation_weightFertility lost per unit of elevation0.4defaultdefaultdefault
food_slope_weightFertility lost per unit of slope6defaultdefaultdefault
food_capacity_baseCapacity share at fertility 00.3defaultdefaultdefault
food_capacity_fertilityCapacity share added at fertility 10.6defaultdefaultdefault
food_growth_fertilityHow much fertility speeds regrowth0.7defaultdefaultdefault
food_decay_infertilityHow much infertility speeds decay0.5defaultdefaultdefault

Chapter 05 · Measured runs

What the three worlds actually do.

We ran each of the page’s scenarios under Node on its three declared seeds: Evolution Meadow for 50,000 ticks, Timed Meadow for 1,500 and Food-funded Meadow for 10,000. That is one run per seed, so these figures describe those nine runs. They are not averages.

05.1 · Evolution Meadow

Evolution Meadow holds steady while births climb.

All three seeds stay between 64 and 114 creatures for 50,000 ticks. Early on, arrivals keep the world populated. By the end, births do.

Evolution Meadow: living creatures over 50,000 ticks
  • Seed 42
  • Seed 137
  • Seed 11
050100150010,00020,00030,00040,00050,000TickLiving creaturesFloor of 64Seed 42Seed 137Seed 11

One run per seed, every 250 ticks. Arrivals keep at least 64 alive and add one creature every 100 ticks. The scenario’s own check asks for 64 to 1,024 alive at tick 10,000; the seeds had 73, 71 and 67.

Show the numbers
TickSeed 42Seed 137Seed 11
0646464
5,000676566
10,000737167
15,000786965
20,000727665
25,000817171
30,000717272
35,000788169
40,000809580
45,0008410094
50,0008411490

The first births came between ticks 1,750 and 2,500. The field starts with only 0.035 food in each cell, regrows slowly and pays no extra progress on fertile ground, so 7 units take a grazer well over a thousand ticks (04.3). Meanwhile the founders die and arrivals replace them. In the first 5,000 ticks seeds 42, 137 and 11 had 15, 13 and 9 births against 74 to 76 arrivals.

Evolution Meadow: births in each 5,000 ticks
  • Seed 42
  • Seed 137
  • Seed 11
0255075100010,00020,00030,00040,00050,000TickBirths per 5,000 ticksScheduled arrivalsSeed 42Seed 137Seed 11

Births counted in consecutive 5,000-tick windows; each point sits at the window’s end. Scheduled arrivals add 50 creatures per window, and the floor adds more while the count is below 64.

Show the numbers
TickSeed 42Seed 137Seed 11
5,00015139
10,000452625
15,000532629
20,000464431
25,000555344
30,000504539
35,000485241
40,000597253
45,000638071
50,000649173

Then births climb. The last 5,000 ticks brought 64, 91 and 73 births on seeds 42, 137 and 11, four to eight times the first window and more than the 50 scheduled arrivals. For the last 15,000 ticks of every run, the floor added no one beyond that schedule. Over the whole run there were 498, 502 and 415 births against 1,010, 1,030 and 973 deaths, with between 532 and 584 arrivals. The deepest lineages reached generation 20, 19 and 18.

Three runs cannot say why births sped up. Over the same span grazers came to dominate, generations deepened and mean reserve rose from about 0.5 at tick 1,000 to between 0.78 and 0.96 at the end. Selection for better foragers is the obvious candidate, but these numbers do not separate it from the shift in diet.

05.2 · Timed Meadow

Timed Meadow passes 3,000 by tick 875.

Timed Meadow was this page’s starting world until Evolution Meadow replaced it. All three seeds grow from 64 founders to about 13,000 creatures in 1,500 ticks, and none has slowed by the end.

Timed Meadow: living creatures, three declared seeds
  • Seed 42
  • Seed 137
  • Seed 20260717
05,00010,00015,00002505007501,0001,2501,500TickLiving creaturesCheck at tick 360Seed 42Seed 137Seed 20260717

One run per seed, every 25 ticks. The shaded span is the scenario’s own check, which asks for 10 to 250 creatures alive at tick 360; with solid bodies the three seeds end tick 360 with 301, 359 and 307.

Show the numbers
TickSeed 42Seed 137Seed 20260717
0646464
1009710097
200162164154
300242269246
400358418357
500574702569
6009561,230948
7001,5361,9941,481
8002,5283,4652,442
9003,9715,5513,824
1,0005,5837,6085,375
1,1007,7149,9657,529
1,2009,71411,7479,589
1,30011,10012,81310,929
1,40012,33213,56012,086
1,50013,11413,77212,852

Between five and seven creatures were born for every one that died: 15,258 births and 2,211 deaths on seed 42, 16,478 and 2,773 on seed 137, and 15,863 and 3,078 on seed 20260717. The rules explain it. Time pays a child’s 60 units of progress in 60 ticks, the child arrives with full energy that cost its parent nothing, and a creature can breed every 135 ticks or so while its health lasts hundreds or thousands of ticks (04.2, 04.5).

Lineages go deep fast. By tick 1,500 the deepest reached generation 17, 15 and 15, nearly as deep as Evolution Meadow gets in 50,000 ticks, and the average living creature was about six and a half generations from the founders.

05.3 · Food-funded Meadow

Food-funded Meadow hangs on.

Every seed lost most of its founders before anyone was born, then held on for 10,000 ticks. None died out.

Food-funded Meadow: living creatures over 10,000 ticks
  • Seed 11
  • Seed 42
  • Seed 137
025507510002,0004,0006,0008,00010,000TickLiving creaturesSeed 11Seed 42Seed 137

One run per seed, every 100 ticks. No seed died out. Each lost most of its 64 founders first, then births caught up on seeds 42 and 137.

Show the numbers
TickSeed 11Seed 42Seed 137
0646464
500515149
1,000282735
1,500162016
2,000161816
2,500151716
3,000141816
3,500152118
4,000132218
4,500143122
5,000123320
5,50063016
6,00064020
6,50074122
7,00085022
7,50095931
8,00086231
8,50086532
9,000107142
9,500107645
10,00088045

The first birth came between ticks 900 and 1,600, which is what 04.3 predicts: 7 units of progress take about a thousand ticks of steady grazing, and the founders spend health the whole time. Seed 11 fell to 6 creatures at tick 5,100 and ended with 8, all DWRAON; its last MLP was alive at tick 3,700 and its last Assembly at 5,000. Seed 42 bottomed out at 16 near tick 2,600 and ended at 80. Seed 137 fell to 14 near tick 5,200 and ended at 45.

Over 10,000 ticks the three runs had 19, 117 and 63 births against 75, 101 and 82 deaths, and the deepest lineages reached generation 5 or 6. All three pass the scenario’s own check: between 0 and 512 alive at tick 10,000, with at least one birth and one death. Hunters did not last: by tick 10,000 the three seeds had 0, 0 and 2 left.

05.4 · Who survives

The winners change with the world and the seed.

Each run starts with almost equal thirds of the three brain families and with diets spread from meat to plants. Where each run ends up:

Brain families alive at the end of each run
  • MLP
  • DWRAON
  • Assembly
Evolution · 4284Evolution · 42 · MLP: 38 (45%)45%Evolution · 42 · DWRAON: 34 (40%)40%Evolution · 42 · Assembly: 12 (14%)14%Evolution · 137114Evolution · 137 · MLP: 61 (54%)54%Evolution · 137 · DWRAON: 19 (17%)17%Evolution · 137 · Assembly: 34 (30%)30%Evolution · 1190Evolution · 11 · MLP: 51 (57%)57%Evolution · 11 · DWRAON: 29 (32%)32%Evolution · 11 · Assembly: 10 (11%)11%Timed · 4213,114Timed · 42 · MLP: 5,306 (40%)40%Timed · 42 · DWRAON: 3,656 (28%)28%Timed · 42 · Assembly: 4,152 (32%)32%Timed · 13713,772Timed · 137 · MLP: 5,393 (39%)39%Timed · 137 · DWRAON: 4,634 (34%)34%Timed · 137 · Assembly: 3,745 (27%)27%Timed · 2026071712,852Timed · 20260717 · MLP: 1,314 (10%)10%Timed · 20260717 · DWRAON: 5,500 (43%)43%Timed · 20260717 · Assembly: 6,038 (47%)47%Food-funded · 118Food-funded · 11 · DWRAON: 8 (100%)100%Food-funded · 4280Food-funded · 42 · MLP: 2 (2%)Food-funded · 42 · DWRAON: 46 (58%)58%Food-funded · 42 · Assembly: 32 (40%)40%Food-funded · 13745Food-funded · 137 · MLP: 4 (9%)Food-funded · 137 · DWRAON: 39 (87%)87%Food-funded · 137 · Assembly: 2 (4%)

Every run starts with 22 MLP, 21 DWRAON and 21 Assembly brains. Evolution runs end at tick 50,000, Timed at 1,500 and Food-funded at 10,000; the number after each bar is how many were alive then.

Show the numbers
RunMLPDWRAONAssembly
Evolution · 4238 (45%)34 (40%)12 (14%)
Evolution · 13761 (54%)19 (17%)34 (30%)
Evolution · 1151 (57%)29 (32%)10 (11%)
Timed · 425,306 (40%)3,656 (28%)4,152 (32%)
Timed · 1375,393 (39%)4,634 (34%)3,745 (27%)
Timed · 202607171,314 (10%)5,500 (43%)6,038 (47%)
Food-funded · 110 (0%)8 (100%)0 (0%)
Food-funded · 422 (2%)46 (58%)32 (40%)
Food-funded · 1374 (9%)39 (87%)2 (4%)
Diet groups alive at the end of each run
  • Hunters
  • Generalists
  • Grazers
Evolution · 4284Evolution · 42 · Hunters: 8 (10%)10%Evolution · 42 · Generalists: 16 (19%)19%Evolution · 42 · Grazers: 60 (71%)71%Evolution · 137114Evolution · 137 · Hunters: 15 (13%)13%Evolution · 137 · Generalists: 22 (19%)19%Evolution · 137 · Grazers: 77 (68%)68%Evolution · 1190Evolution · 11 · Hunters: 19 (21%)21%Evolution · 11 · Generalists: 14 (16%)16%Evolution · 11 · Grazers: 57 (63%)63%Timed · 4213,114Timed · 42 · Hunters: 1,643 (13%)13%Timed · 42 · Generalists: 5,346 (41%)41%Timed · 42 · Grazers: 6,125 (47%)47%Timed · 13713,772Timed · 137 · Hunters: 2,651 (19%)19%Timed · 137 · Generalists: 7,453 (54%)54%Timed · 137 · Grazers: 3,668 (27%)27%Timed · 2026071712,852Timed · 20260717 · Hunters: 4,499 (35%)35%Timed · 20260717 · Generalists: 6,584 (51%)51%Timed · 20260717 · Grazers: 1,769 (14%)14%Food-funded · 118Food-funded · 11 · Generalists: 5 (62%)62%Food-funded · 11 · Grazers: 3 (38%)38%Food-funded · 4280Food-funded · 42 · Generalists: 9 (11%)11%Food-funded · 42 · Grazers: 71 (89%)89%Food-funded · 13745Food-funded · 137 · Hunters: 2 (4%)Food-funded · 137 · Generalists: 17 (38%)38%Food-funded · 137 · Grazers: 26 (58%)58%

The same nine runs, sorted into hunters, generalists and grazers.

Show the numbers
RunHuntersGeneralistsGrazers
Evolution · 428 (10%)16 (19%)60 (71%)
Evolution · 13715 (13%)22 (19%)77 (68%)
Evolution · 1119 (21%)14 (16%)57 (63%)
Timed · 421,643 (13%)5,346 (41%)6,125 (47%)
Timed · 1372,651 (19%)7,453 (54%)3,668 (27%)
Timed · 202607174,499 (35%)6,584 (51%)1,769 (14%)
Food-funded · 110 (0%)5 (62%)3 (38%)
Food-funded · 420 (0%)9 (11%)71 (89%)
Food-funded · 1372 (4%)17 (38%)26 (58%)

In Evolution Meadow, MLP holds the largest share on all three seeds at tick 50,000, with 45%, 54% and 57%. Grazers make up 63% to 71% of the living there, but hunters persist: 8, 15 and 19 at the end. In Timed Meadow, MLP leads on seeds 42 and 137 with 40% and 39%, and Assembly on seed 20260717 with 47%. In Food-funded Meadow, DWRAON leads on all three seeds and hunters nearly vanish.

Three runs per world cannot say whether any family is better; only matched-seed studies with intervals could, and the desktop app has the tools for them.

Evolution Meadow, seed 42: the diet mix of the living
  • Hunters
  • Generalists
  • Grazers
0%25%50%75%100%010,00020,00030,00040,00050,000TickShare of the livingHuntersGeneralistsGrazers

The Observatory’s groups: hunters have diet below ⅓, grazers above ⅔. Remember that only diet below ½ can stab. Shares every 250 ticks; hover or open the table for counts.

Show the numbers
TickHuntersGeneralistsGrazers
027% (17)30% (19)44% (28)
5,00033% (22)30% (20)37% (25)
10,00016% (12)29% (21)55% (40)
15,00014% (11)28% (22)58% (45)
20,00012% (9)24% (17)64% (46)
25,0007% (6)19% (15)74% (60)
30,00015% (11)21% (15)63% (45)
35,00015% (12)24% (19)60% (47)
40,00016% (13)19% (15)65% (52)
45,0006% (5)21% (18)73% (61)
50,00010% (8)19% (16)71% (60)

05.5 · Repeatability

Same seed, same bytes.

Two separate Timed Meadow runs from seed 42 were stopped at tick 600 and their full scientific checkpoints compared. A third run used seed 43.

Seed 42, first run
956 creatures; a checkpoint of 6,716,971 bytes.
Seed 42, second run
The same 956 creatures and the same 6,716,971 bytes, byte for byte.
Seed 43
1,357 creatures and 9,643,802 bytes: a different world, as it should be.

SHA-256 of the checkpoints

seed 42, run 1
  26ad1f90 6c71b8a6 ad8297e0 ddc92476
  8237ee2e 6377e29a 6888554b c27b7aaf
seed 42, run 2
  26ad1f90 6c71b8a6 ad8297e0 ddc92476
  8237ee2e 6377e29a 6888554b c27b7aaf
seed 43
  a7383c62 68a0f4fa 43693ea0 fc5bb5b7
  46cc0255 dab5d559 3e232402 14b66d31

A checkpoint holds every body, genome, food cell and random-stream counter, so equal hashes mean the two worlds are the same byte for byte.

05.6 · Cost

About 7 to 11 microseconds per creature.

The cost of a tick grows a little faster than the number alive: 37 to 40 ms at 5,500 creatures and 105 to 147 ms near 13,000 on one core of an Apple M5 Ultra. Evolution Meadow, with about a hundred alive, costs under half a millisecond a tick.

Cost of a tick as Timed Meadow fills up
  • Seed 42
  • Seed 137
  • Seed 20260717
05010015020005,00010,00015,000Living creaturesMilliseconds per tickSeed 42: 64 creatures, 0.4 ms a tickSeed 42: 97 creatures, 0.7 ms a tickSeed 42: 128 creatures, 0.8 ms a tickSeed 42: 162 creatures, 1.2 ms a tickSeed 42: 188 creatures, 1.2 ms a tickSeed 42: 242 creatures, 1.4 ms a tickSeed 42: 286 creatures, 1.8 ms a tickSeed 42: 358 creatures, 1.9 ms a tickSeed 42: 469 creatures, 2.5 ms a tickSeed 42: 574 creatures, 2.9 ms a tickSeed 42: 718 creatures, 3.7 ms a tickSeed 42: 956 creatures, 5.0 ms a tickSeed 42: 1,230 creatures, 7.1 ms a tickSeed 42: 1,536 creatures, 8.9 ms a tickSeed 42: 2,043 creatures, 11.8 ms a tickSeed 42: 2,528 creatures, 17.5 ms a tickSeed 42: 3,086 creatures, 18.6 ms a tickSeed 42: 3,971 creatures, 28.7 ms a tickSeed 42: 4,747 creatures, 31.4 ms a tickSeed 42: 5,583 creatures, 36.5 ms a tickSeed 42: 6,822 creatures, 51.7 ms a tickSeed 42: 7,714 creatures, 71.9 ms a tickSeed 42: 8,645 creatures, 67.2 ms a tickSeed 42: 9,714 creatures, 80.3 ms a tickSeed 42: 10,424 creatures, 89.5 ms a tickSeed 42: 11,100 creatures, 127.2 ms a tickSeed 42: 11,916 creatures, 102.4 ms a tickSeed 42: 12,332 creatures, 107.2 ms a tickSeed 42: 12,669 creatures, 109.7 ms a tickSeed 42: 13,114 creatures, 131.4 ms a tickSeed 137: 64 creatures, 0.4 ms a tickSeed 137: 100 creatures, 0.4 ms a tickSeed 137: 129 creatures, 0.8 ms a tickSeed 137: 164 creatures, 0.9 ms a tickSeed 137: 203 creatures, 0.7 ms a tickSeed 137: 269 creatures, 1.4 ms a tickSeed 137: 329 creatures, 2.0 ms a tickSeed 137: 418 creatures, 2.8 ms a tickSeed 137: 562 creatures, 2.8 ms a tickSeed 137: 702 creatures, 3.6 ms a tickSeed 137: 900 creatures, 5.3 ms a tickSeed 137: 1,230 creatures, 8.4 ms a tickSeed 137: 1,571 creatures, 8.3 ms a tickSeed 137: 1,994 creatures, 12.1 ms a tickSeed 137: 2,728 creatures, 18.8 ms a tickSeed 137: 3,465 creatures, 26.4 ms a tickSeed 137: 4,258 creatures, 28.8 ms a tickSeed 137: 5,551 creatures, 40.5 ms a tickSeed 137: 6,574 creatures, 56.2 ms a tickSeed 137: 7,608 creatures, 61.5 ms a tickSeed 137: 8,983 creatures, 74.5 ms a tickSeed 137: 9,965 creatures, 87.0 ms a tickSeed 137: 10,764 creatures, 94.3 ms a tickSeed 137: 11,747 creatures, 106.3 ms a tickSeed 137: 12,299 creatures, 126.1 ms a tickSeed 137: 12,813 creatures, 135.0 ms a tickSeed 137: 13,384 creatures, 144.6 ms a tickSeed 137: 13,560 creatures, 146.6 ms a tickSeed 137: 13,635 creatures, 130.4 ms a tickSeed 137: 13,772 creatures, 134.5 ms a tickSeed 20260717: 64 creatures, 0.5 ms a tickSeed 20260717: 97 creatures, 0.6 ms a tickSeed 20260717: 126 creatures, 0.5 ms a tickSeed 20260717: 154 creatures, 0.6 ms a tickSeed 20260717: 188 creatures, 1.0 ms a tickSeed 20260717: 246 creatures, 1.3 ms a tickSeed 20260717: 296 creatures, 1.7 ms a tickSeed 20260717: 357 creatures, 2.1 ms a tickSeed 20260717: 478 creatures, 3.0 ms a tickSeed 20260717: 569 creatures, 3.7 ms a tickSeed 20260717: 723 creatures, 4.7 ms a tickSeed 20260717: 948 creatures, 6.3 ms a tickSeed 20260717: 1,188 creatures, 7.6 ms a tickSeed 20260717: 1,481 creatures, 8.8 ms a tickSeed 20260717: 2,001 creatures, 12.3 ms a tickSeed 20260717: 2,442 creatures, 15.8 ms a tickSeed 20260717: 2,984 creatures, 20.4 ms a tickSeed 20260717: 3,824 creatures, 26.6 ms a tickSeed 20260717: 4,597 creatures, 31.0 ms a tickSeed 20260717: 5,375 creatures, 38.3 ms a tickSeed 20260717: 6,589 creatures, 48.7 ms a tickSeed 20260717: 7,529 creatures, 54.4 ms a tickSeed 20260717: 8,432 creatures, 61.5 ms a tickSeed 20260717: 9,589 creatures, 75.0 ms a tickSeed 20260717: 10,314 creatures, 79.4 ms a tickSeed 20260717: 10,929 creatures, 83.3 ms a tickSeed 20260717: 11,719 creatures, 96.6 ms a tickSeed 20260717: 12,086 creatures, 103.7 ms a tickSeed 20260717: 12,411 creatures, 107.5 ms a tickSeed 20260717: 12,852 creatures, 104.9 ms a tick

Each dot is the mean wall time of 25 consecutive ticks against the living count at their end, every 50 ticks, for the serial browser build on one core.

Show the numbers
RunLiving creaturesms per tick
Seed 42640.44
Seed 421621.23
Seed 422861.82
Seed 425742.93
Seed 421,2307.07
Seed 422,52817.51
Seed 424,74731.38
Seed 427,71471.92
Seed 4210,42489.46
Seed 4212,332107.21
Seed 137640.40
Seed 1371640.86
Seed 1373291.99
Seed 1377023.58
Seed 1371,5718.34
Seed 1373,46526.44
Seed 1376,57456.16
Seed 1379,96587.00
Seed 13712,299126.11
Seed 13713,560146.57
Seed 20260717640.52
Seed 202607171540.64
Seed 202607172961.67
Seed 202607175693.69
Seed 202607171,1887.62
Seed 202607172,44215.81
Seed 202607174,59730.95
Seed 202607177,52954.38
Seed 2026071710,31479.38
Seed 2026071712,086103.71

These times are for the serial build alone, without drawing anything. The live page also renders every creature each frame, and where the browser allows shared-memory threads it splits the simulation across four workers. When the four-worker build was released, Chromium on a 14-core machine stepped a 5,255-creature world with 95th-percentile tick times of about 35 ms on one thread and about 17 ms on four workers. Fast-forward stops drawing and runs the same world at up to 32 times normal speed, which Evolution Meadow’s small population makes cheap. Changing the scenario in Lab starts a new world.

05.7 · How these were measured

Run them yourself.

Build
The serial WebAssembly this site served from release 01d9eb4f, SHA-256 6774a652bb197c72d5401b3ef9be6d3c00f377a5dafa28c4c49065be89551bc9.
World
Configured as the page’s worker does it: the Rust defaults, then the scenario’s settings, then solid bodies; 64 founders in the three-family mix.
Host
Node 26.8.1 on an Apple M5 Ultra. Each run is single-threaded. The Evolution and Food-funded runs and the repeatability check ran side by side; the Timed Meadow runs, which the cost figure uses, ran one at a time.
Counting
Births and deaths are summed from each tick’s own summary. Arrivals, scheduled or keeping a floor, are not counted as births. Diet groups use the Observatory’s cut points of ⅓ and ⅔.
Scripts
measure.mjs records a trajectory, determinism.mjs checks repeatability, and charts.py draws these figures from the data when the site is built. README.md has the exact commands.
Data
Evolution Meadow seeds 42, 137 and 11; Timed Meadow seeds 42, 137 and 20260717; Food-funded Meadow seeds 11, 42 and 137; the repeatability check.

Chapter 06 · Method

Same seed, same world.

ScriptBots is built so a run can be repeated and checked. Randomness comes from seeded streams, effects happen in a fixed order, and the complete scientific state can be hashed and saved at completed ticks.

06.1 · Determinism

Where the randomness comes from.

One root seed derives six independent random streams: environment, food, population, lineage, mutation and crossover. Breeding draws (admission, partner choice and building the child) come from substreams keyed by each creature’s stable ID instead of its place in memory, so one creature’s arrival or death does not shift anyone else’s breeding luck. Even the seed hashing is pinned: FNV-1a instead of Rust’s DefaultHasher, which a compiler upgrade could change.

Births are transactions. If a birth is rejected, every random draw, energy change and insertion it made is put back exactly, so a failed attempt cannot shift the numbers a retry or another creature would see.

The desktop build checks its parallel steps against a serial run with --det-check. In the browser, a page that is allowed shared-memory threads steps the world on four Wasm workers, and any other page uses a serial build with the same rules. Two serial runs of seed 42 here end tick 600 with byte-identical checkpoints (05.5).

What a run records

World digest
A hash of the full science state: bodies, genomes, food, terrain, every random-stream counter and the configuration that affects transitions. Rendering and analytics stay out of it.
Checkpoint
A compact, versioned save of that state with a BLAKE3 checksum. Restoring refuses missing, reordered or mismatched data.
Step trace
An opt-in record of six points inside one tick, for finding where two runs first diverge.
Run manifest
The seed, stream states, brain roster, normalized configuration and its digest, and the build a launch was bound to.

06.2 · Scenarios

Choose an ecology.

A scenario file declares a hypothesis, its seeds, its changes to the Rust defaults, and a check at a fixed tick. The browser offers three scenarios from their first declared seed. The desktop app can run any scenario document with --scenario scenarios/<name>.scenario.toml.

  • Opens on load

    Evolution Meadow

    “An open meadow where meals fund reproduction. Sparse food pulses and slower regrowth reward finding and using food.” Each birth needs 7 earned units and costs the parent the child’s 0.25 starting energy. Moving is cheap and boosting is not.

    Hypothesis “Food-earned births and modest movement costs sustain a resident population with grazing and predation. Immigration below the population floor and periodic arrivals remain part of this open-world treatment.” In the browser build all three seeds stayed between 64 and 114 alive for 50,000 ticks, births overtook arrivals and hunters were still alive at the end. Kills were not counted: 05.1.

    Seed
    42
    World
    6000 × 3000, open
    Floor
    64, plus 1 arrival every 100 ticks
    Births
    Food only
    Check
    Tick 10,000: 64 to 1,024 alive, at least 1 birth and 1 death

    evolution_meadow_v1.scenario.toml

  • In Lab

    Timed Meadow

    The former browser starting world. Its check allows 250 creatures at tick 360. The measured browser runs reached 301 to 359 by then and passed 3,000 by tick 875.

    See the measurement

  • In Lab

    Food-funded Meadow

    “A closed meadow where grazing and spiked-carcass meals fund reproduction; time alone earns no reproductive progress.” Each birth needs 7 earned units, and the parent pays the child’s 0.25 starting energy. Extinction is allowed.

    Hypothesis “With no population injections or timer-funded births, food intake supports new generations within a bounded 10,000-tick study. Extinction remains a possible ecological outcome.” Births reached a fifth or sixth generation on all three seeds in the browser build, and none died out: 05.3.

    Seed
    11
    World
    2000 × 1000, closed
    Floor
    None
    Births
    Food only
    Food regrowth
    0.0005

    food_funded_meadow_v1.scenario.toml

Five more on desktop same file format, desktop app only

All five reuse Timed Meadow’s cheap births: 60 units of progress per child, time earning 1 a tick unless noted, and a 20% chance to try every 15 ticks. All but the closed world keep its floor of 24 and its 2 arrivals every 600 ticks. None has been run for this page.

  • brain_arena

    Brain arena

    “Brain-family comparison: equal seeded cohorts of every registered family compete in one world.”

    Hypothesis “Seeded mixed-brain cohorts survive comparably: the run records births and deaths with no single family’s extinction dictated by construction rather than by behavior.”

    Changes
    Default food (regrowth 0.05, five times Timed Meadow’s); arrivals bred from the living 20% of the time
    Check
    Tick 300: 5 to 250 alive, at least 1 birth and 1 death
  • cooperation_kinship

    Cooperation and kinship

    “Altruistic food sharing and kinship: giving is cheap, sharing is frequent, partners are common.”

    Hypothesis “Cheap sharing and high partner probability stabilize kin groups: population persists above the floor with sustained births while food is shared rather than hoarded.”

    Changes
    A gift to a neighbor within 40 units is capped at 0.5 energy and 90% of the donor’s current reserve. A second parent is attempted 80% of the time.
    Check
    Tick 300: 10 to 250 alive, at least 5 births
  • drought_recovery

    Drought and recovery

    “Resource overshoot: a rich meadow suffers a scheduled drought, then recovers.”

    Hypothesis “Population expands on rich food, crashes measurably when the drought intervention halves food capacity, and stabilizes again after recovery.”

    Start
    Food cap 0.6, regrowth 0.02, a 0.5 refill every 20 ticks
    Tick 120
    Food cap 0.02, no regrowth or refills, basal drain 0.01 (50 times the default)
    Tick 220
    Food restored and basal drain back to 0.0002
    Check
    Tick 300: 5 to 300 alive, at least 10 births and 5 deaths

    The hypothesis says the drought halves food capacity; the intervention cuts the cap from 0.6 to 0.02.

  • islands_closed

    Closed world

    “Closed ecosystem: no external population injection; founders’ lineages persist or go extinct honestly.”

    Hypothesis “In a closed world with no spawn injection, founder lineages either reach an equilibrium above zero or decline to an explained extinction — never silently restocked.”

    Changes
    Closed, with no floor and no arrivals; food cap 0.6, regrowth 0.015, base fertility 0.5
    Check
    Tick 300: 0 to 250 alive
  • predator_prey

    Predator and prey

    “Diet specialization under resource pressure: spikes and carnivory are visibly rewarded.”

    Hypothesis “Carnivore-leaning cohorts emerge and spike combat is measurable while prey cohorts persist; neither diet class drives the other permanently extinct inside the horizon.”

    Changes
    Spike damage 30, 120 times the default, so nearly any hit kills; spikes extend 10 times faster; time earns 0.4 a tick for a pure hunter and 0.3 for a pure grazer
    Check
    Tick 300: 5 to 250 alive, at least 5 births, 1 death and 1 spike hit
  • no --scenario

    Desktop default

    What the desktop app runs when no scenario is named. A window gets Evolution Meadow’s rules and solid bodies, as this page does, but starts from 20 founders spread over the whole world. A headless run keeps the earlier recipe, with births paid almost entirely by food.

    Window
    Evolution Meadow’s settings, including its floor of 64; 20 spread founders
    Headless
    A floor of 20, regrowth 0.0005, time earning 0.0001 a tick

06.3 · How this page runs

The whole simulation is in your tab.

The site is static files. There is no simulation server, account or analytics; the page’s security policy only lets it load its own files from scriptbots.org.

  1. Rust core

    The same scriptbots-core crate as the desktop app, compiled to WebAssembly.

  2. Worker

    A dedicated Web Worker owns the world, off the page’s main thread.

  3. Frames

    It sends one frame packet at a time and waits for the view to acknowledge it.

  4. WebGPU

    FrankenThreeD draws the field with Three.js scene objects and geometry.

  5. Terrain

    Meshes and photo layers come from the Bevy edition, used when the terrain’s fingerprint matches.

Lab comparisons run in a second worker. Once the first world has opened, the tab keeps working offline: it can simulate, analyze, stage actions, compare and save files. Reloading needs a connection, since the site has no service worker. WebGPU is required, and there is no WebGL fallback.

06.4 · Open questions

What is not claimed yet.

These are written down so that a result is not read as more than it is.

  • Parity with the C++ is transcribed, not measured. Locomotion, the 25-input layout, carcass sharing and the temperature formula were copied, but there is no harness that runs the original beside this one.
  • Evolution Meadow is open. A floor of 64 and an arrival every 100 ticks keep it populated whatever its lineages do, so the measured runs show births overtaking arrivals, not that the world would survive closed. The project’s longer runs of all three seeds still had hunters and grazers at tick 150,000. Food-funded Meadow is the closed test, and in its 10,000-tick runs the hunters nearly died out.
  • Each preset records one world at a specific tick. Closed Basin and Closed Meadow sustained hunters and grazers for 1,000,000 and 350,000 ticks respectively, with zero immigration. Other closed runs lost their hunters.
  • Timed Meadow is not balanced. Its own check allows 250 creatures at tick 360, but the browser runs had 301 to 359 and passed 3,000 by tick 875. The README reports desktop runs passing 3,000 around tick 1,200; a desktop scenario run starts from a 4 × 4 grid of 16 founders whose bodies overlap, so the two are different worlds.
  • A browser comparison describes one control and one treatment on a single seed. Matched-seed desktop studies can add bootstrap intervals and sign-flip p-values. The experiment runner and sb-analyze apply Benjamini–Hochberg across their declared endpoints.
  • Checkpoint checksums detect corruption. They are not signatures and say nothing about where a file came from.
  • Replay starts from checkpoints, which desktop runs take every 1,000 ticks. A candidate for restoring a complete session exists but is not yet qualified.

Chapter 07 · Desktop edition

Take the lab further.

The desktop edition runs the same Rust simulation with native views, a run database, and control servers that scripts and AI agents can drive. It builds from source on macOS, Linux and Windows. Releases so far are source releases, without prebuilt binaries.

07.1 · Views

Five ways to run it.

  • Text mode

    Terminal laboratory

    A text-mode lab on FrankenTUI with a map, inspector, command palette, and views for lineages, a brain arena, experiments, replay, environment and diagnostics.

  • --features gui

    GPUI windows

    Two GPU-accelerated windows side by side: the World, and a Lab with Overview, Inspect, Analytics, Timeline, Experiments, Checkpoints and Maps tabs.

  • bevy_render

    Bevy 3D field

    The 3D view this page’s terrain comes from: textured terrain, rendered food, creature inspection, camera presets and a follow tray.

  • iPhone · iPad

    iOS app

    The Bevy field, inspector and Observatory on device in landscape, with MLP brains, food-funded reproduction and an in-memory run. Built locally with Xcode.

  • --mode server

    Headless server

    No window at all: a long run driven over REST or MCP and recorded to its run database.

07.2 · Control

Drive it from a script or an agent.

The README describes an external LLM agent acting “as an autonomous lab assistant”: it steers experiments, sweeps parameters, logs what it sees and drafts reports. These are the interfaces it uses.

MCP
An MCP server over HTTP at 127.0.0.1:8090. An agent can read and patch configuration, schedule interventions, pause, step and set the speed, inspect creatures, read the Observatory, run and compare matched-seed experiments, take checkpoints, generate maps and export results.
REST
The same control surface at 127.0.0.1:8088, with Swagger UI at /docs and the OpenAPI spec at /api-docs/openapi.json.
Studies
branch-study restores a control and treatments (drought, resource shock, temperature shift, closed world, cooperation) from one checkpoint. --seeds 42,137,999 repeats the study on matched seeds and reports 95% bootstrap intervals.
Storage
Runs record to FrankenSQLite, an embedded Rust SQLite engine, as a file or in memory. --recover-storage recovers an interrupted run’s storage and exits.
Commands
The control_cli and sb-analyze binaries cover scripted control and offline analysis; the app’s experiment, tournament and branch-study subcommands run experiment batches, brain tournaments and checkpoint studies.

07.3 · Build

Build it from source.

Install Rust with rustup. The repository pins its toolchain (nightly-2026-08-31) in rust-toolchain.toml, so rustup selects it inside the repository.

Clone and run the terminal lab
git clone https://github.com/Dicklesworthstone/rust_scriptbots.git
cd rust_scriptbots
cargo run -p scriptbots-app
GPUI windows
cargo run -p scriptbots-app --release --features gui -- --mode gui
Bevy 3D on macOS
./run_macos_version_with_bevy.sh

Each platform has its own section in the README: the launch script, GPU backend, build flags and thread count.

07.4 · The workspace

Thirteen crates, one simulation.

Every view drives the same world through the same host, so the terminal, the GPUI and Bevy windows, the iPhone app and this page run one scriptbots-core. The map is drawn from the checkout when the site is built: each crate’s size is its Rust source under src/, and “uses” lists the workspace crates it depends on, test-only dependencies left out. How the browser build reaches the screen is in 06.3, and what a tick costs in 05.6.

Programs and views

  • scriptbots-app

    The desktop program: terminal lab, front-end selection, scenarios and config layers, experiment runner, MCP and REST control servers.

    163,081 lines of Rust · uses bevy, brain, brain-ml, brain-neuro, core, render, runtime, storage, world-gfx
  • scriptbots-bevy

    The 3D Bevy view, the iPhone and iPad app, and the exporter that bakes this page’s terrain.

    65,338 lines of Rust · uses brain, core, runtime
  • scriptbots-render

    The GPUI desktop view.

    48,927 lines of Rust · uses core, runtime, storage, world-gfx
  • scriptbots-web

    This page’s simulation: the WebAssembly build, its worker API and frame packets.

    8,515 lines of Rust · uses brain, core, runtime
  • scriptbots-analytics

    sb-analyze: read-only reports over finished run databases.

    15,885 lines of Rust · uses core, runtime, storage

Host and records

  • scriptbots-runtime

    The renderer-neutral host every front end drives: commands, snapshots, events and the deterministic owner of a world.

    65,230 lines of Rust · uses core
  • scriptbots-storage

    Run databases on FrankenSQLite.

    64,162 lines of Rust · uses core, runtime
  • scriptbots-world-gfx

    Offscreen wgpu rendering of the world, with framebuffer readback.

    10,517 lines of Rust · uses core

Brains

  • scriptbots-brain

    The brain interface and the MLP, DWRAON and Assembly families.

    6,745 lines of Rust · uses core
  • scriptbots-brain-neuro

    NeuroFlow, a feed-forward family, behind a feature.

    3,046 lines of Rust · uses brain, core
  • scriptbots-brain-ml

    Candle evaluation and the Frankentorch FtBrain family, behind features.

    3,113 lines of Rust · uses brain, core

Simulation

  • scriptbots-core

    The world: settings, the fifteen-stage tick, bodies, food, combat, birth, ancestry, checkpoints and replay.

    113,976 lines of Rust · uses index
  • scriptbots-index

    The spatial index behind every neighbor query.

    1,236 lines of Rust · no workspace dependencies

569,771 lines of Rust across 13 crates in this release.

Chapter 08 · Origins

Karpathy’s ScriptBots, rebuilt in Rust.

Andrej Karpathy wrote ScriptBots in C++ with OpenGL and GLUT and released it under the BSD license, with contributions from Casey Link. This project is an independent Rust reimplementation that ports the original’s behavior, with a reference copy of the C++ kept in the repository.

08.1 · What changed

Kept from the original, and changed on purpose.

Version 1.2 of the original, released on 19 January 2011, added the DWRAON brain, a continuous diet in place of fixed herbivores and carnivores, meat only from the dead, a blood sensor, two clock neurons, hearing and sound, and food sharing. All of those are here.

AspectOriginal C++ScriptBots in Rust
Senses and actions25 inputs, 9 outputs, four eyesThe same layout, checked at compile time
Brains200-node MLP and DWRAON, plus an unfinished Assembly brain added in 2012All three in the browser; NeuroFlow and FtBrain optional on desktop
BirthsAsexual, two babies at a time; crossover only for newcomersOne child; by default a second parent with probability 0.15, never in Evolution Meadow
CombatChecked every second tick, within π/8 and twice the radius; the spike snaps back to zeroEvery tick, in the same π/8 cone out to 40 units plus spike length; damage bonuses multiply; after a hit the spike keeps a quarter of its length
StartleA stab from behind retracts the victim’s own spikeNot ported
FoodOne random cell refilled every 15 ticksEvery cell also regrows, decays and diffuses; the random refill stays (every 15 ticks by default and in Evolution Meadow, 25 in Timed Meadow)
GivingGives health, and the loop includes the giverGives energy, only to others
BodiesPass through each otherThe same in headless runs and most scenario files; solid in the browser, in Evolution Meadow and in a plain desktop window, where 32-unit discs stop at contact and bounce
Sensing range150 units120 units
Body mutationStep size equal to the inherited rate; a 4% chance per birth to multiply the rates by up to 10Steps a fiftieth of the inherited rate, with no burst; brains mutate at the full rate
PopulationTopped up to 70, plus a newcomer every 100 ticksEach open world sets its own floor and arrival schedule. Evolution Meadow keeps at least 64 and adds a newcomer every 100 ticks, close to the C++; Timed Meadow keeps 24 and adds 2 every 600
RandomnessGlobal stateSix seeded streams per world, plus per-creature substreams
PlatformDesktop windowRust 2024 in 13 crates: terminal, GPUI, Bevy, iOS, and WebAssembly with WebGPU here

08.2 · Releases

How it got here.

  1. v0.5.0Checkpoint branch studies, a map editor in the native Lab, Bevy viewer studies and security fixes. The browser gains remote viewing, a WebGPU renderer, brain activity inspection and checkpoint studies.
  2. v0.4.0Maps with typed agent policies, hardened control servers, checkpoint continuation and journal archive v6.
  3. v0.3.0Replay of interactive runs, journal archive v4 and storage fixes.
  4. v0.2.0The experiment runner, archipelago worlds, replay verification and control-server hardening.
  5. v0.1.1The autonomous science lab and experiment engine.

Questions

Common questions.

Which browsers can run it?

Any browser with WebGPU. Current Chrome and Edge have it on desktop and on recent Android phones, and Safari 26 has it on macOS, iPhone and iPad. In Firefox, support depends on the version and platform. Without WebGPU the page says so instead of starting the world; there is no WebGL fallback.

Will it run on my phone?

Yes, if its browser has WebGPU. On a phone the world steps on one Wasm worker. The four-worker build is kept for desktops with a fine pointer, a window at least 960 pixels wide, eight or more logical cores, at least 8 GB of reported memory and a cross-origin-isolated page. The console, inspector and panels fit themselves to the field’s size, and touch can orbit, pan with two fingers and pinch to zoom. Evolution Meadow’s population of about a hundred is light work. A Timed Meadow world in the thousands will slow any phone down.

Does anything I do leave my device?

No. The world runs in a worker inside your tab. The site has no API, account or telemetry service, Cloudflare’s analytics injection is off, and the security policy only lets the page fetch its own files from scriptbots.org. Files you save in Lab go to your own disk.

Will it keep running offline?

Yes, once the first world has opened. The loaded tab keeps simulating, analyzing, staging actions, running comparisons, and saving and loading files without a connection. Reloading needs a connection, since the site has no service worker.

How fast does the world run?

At 1× it advances 60 ticks a second, and the speed menu also offers 0.5×, 2× and 4×. Fast-forward stops drawing and asks for 32×, about 1,900 ticks a second, getting as close as the device allows. Pause still holds the current tick, and Show field returns to the creatures at normal speed. How much work a tick takes depends on how many are alive: 7 to 11 microseconds per creature on one desktop core in our measurements (05.6).

Do the creatures learn during their lives?

No. A creature’s brain genome is fixed from birth to death. It changes only between generations, through mutation and, within one brain family, crossover. Any improvement comes from selection: creatures whose brains keep them fed leave more children.

What keeps the population in check?

Food. In Evolution Meadow each child costs 7 units of progress that only meals earn, plus 0.25 of the parent’s energy, and the field regrows slowly, so births can only run as fast as creatures find food. In our runs the population stayed between 64 and 114 for 50,000 ticks (05.1). The floor works the other way: arrivals keep at least 64 alive even when lineages struggle. Choose Food-funded Meadow in Lab to test survival without arrivals, or Timed Meadow to see what a birth timer does: about 13,000 creatures by tick 1,500.

What are the presets?

Worlds that ran long before you arrived, in Lab › Presets. Two are Evolution Meadow saved at tick 500,000. Seed 42 had reached generation 192 with 176 alive, 17 of them hunters and 143 grazers. Seed 137 had reached generation 84 with 68 alive, 26 hunters and 23 grazers. Deep Meadow is an open world from seed 137 saved at tick 68,083,500, at generation 20,000, with 67 alive: 39 hunters and 16 grazers. Each is a scientific world cut that carries every living genome and the state of the world, so it carries on exactly where it stopped. You can also save your own paused world as a named preset in the browser.

Can I change the rules?

Not one setting at a time in the browser. There you choose among three scenarios, open a preset, or stage a Lab action (Food bloom, Drought, Close world or Open world) at a paused tick. The desktop app exposes every setting. A scenario file changes any of them from the Rust defaults, and --config files, environment variables and command-line flags can override the scenario, in that order. The defaults are in ScriptBotsConfig in scriptbots-core.

Is a run repeatable?

Yes. The serial and four-worker browser builds draw from the same six seeded streams and apply effects in the same order, so the same seed with the same actions at the same ticks gives the same world. Two runs of seed 42 measured for this page ended tick 600 with byte-identical checkpoints. To carry an exact state somewhere else, save a scientific world cut (.sbworld), the checkpoint format the desktop branch studies read.

How is this different from Karpathy’s original?

It keeps the original’s 25 inputs and 9 outputs, two-rotation locomotion, carcass sharing and temperature formula. It changes some rules on purpose: one child per birth with an optional second parent, combat every tick, separate health and energy, food that regrows everywhere, and no fixed top-up to 70: each world sets its own floor. Origins lists the differences.

Can an AI agent run experiments?

On desktop, yes. The MCP server gives an agent the controls a person has in the Lab, and more: configuration, interventions, stepping, creature inspection, the Observatory, matched-seed experiments, checkpoints and exports. The REST API offers the same through an OpenAPI spec. The website has no API.

Can I download the desktop app?

Not as a binary yet. Releases v0.1.1 through v0.5.0 are source releases, so build it with Cargo using the commands above on macOS, Linux or Windows.

What is the license?

The source is on GitHub under the MIT license with a rider: it grants no rights to OpenAI, Anthropic, their affiliates or parties acting for them, and any distribution must carry the rider unmodified. Three.js, FrankenThreeD and the fonts carry their own licenses, listed on the licenses page.

Glossary

Words this page uses.

Each term means the same thing everywhere on the page, in the workbench and in the repository.

Tick
One step of the world: fifteen stages in a fixed order. Food regrows, every creature senses, thinks and acts, then eating, combat, births and deaths settle (02.1). At 1× the page runs 60 a second.
Seed
The number a world starts from. Six independent random streams are derived from it, so the same seed and settings give the same world.
Scenario
A TOML file with a description, a hypothesis, declared seeds, the settings it changes from the Rust defaults and an envelope. The browser offers three; the repository has eight.
Envelope
A scenario’s own check at a fixed tick: how many may be alive, and how many births and deaths there must have been.
Founder
A creature a world starts with: 64 in the browser, 16 in a desktop scenario run, 20 in a desktop window without a scenario. Founders are generation 0.
Arrival
A creature added from outside, on the world’s schedule or to keep its floor. Some are bred from two living creatures. Arrivals are not counted as births.
Floor
The fewest creatures an open world keeps alive by adding arrivals: 64 in Evolution Meadow, 24 in Timed Meadow. Closed worlds have none and may die out.
Generation
How many births separate a creature from a founder: one more than its parent, or one more than the higher generation of its two parents.
Lineage
A founder and its descendants, traced through first parents by stable creature IDs.
Brain family
The kind of brain a creature has: MLP, DWRAON or Assembly in the browser, plus NeuroFlow and FtBrain on desktop. Brains cross only within a family.
Diet
A heritable number from 0, meat only, to 1, plants only. Below 0.5 a creature’s spike does damage. The Observatory calls diet below ⅓ a hunter and above ⅔ a grazer.
Health
Up to 2. Every tick’s drain takes from it, only meat puts it back, and a creature dies when it runs out.
Reserve
Energy, up to 2. The drain takes from it, eating refills it, a birth needs at least 0.65, and in Evolution and Food-funded Meadow the parent gives 0.25 to the child. A creature cannot sense its own reserve.
Progress
What a creature has saved toward its next child. Meals earn it everywhere and time earns it in Timed Meadow. A birth spends the scenario’s cost: 7 units in Evolution and Food-funded Meadow, 60 in Timed Meadow.
Fertility
A number from 0 to 1 for each food cell, set once from the terrain under it. It decides how much food the cell holds, how fast it regrows and how slowly it decays.
Cohort
A group of the living that the Observatory compares with the rest, by diet, generation or age.
Checkpoint
A saved world. A browser continuation (.sbcheckpoint) resumes the page; a scientific world cut (.sbworld) holds every body, genome, food cell and random-stream counter at a completed tick and opens in the desktop app too.
Digest
A SHA-256 hash of a checkpoint or a configuration. Two equal digests mean the same bytes.
Preset
A world cut that ships with the site, such as the 500,000-tick Evolution Meadow worlds and Deep Meadow, or one you saved by name.
Intervention
A Lab action staged at a paused tick and applied to the whole map: Food bloom, Drought, Close world or Open world.
Control and treatment
The two arms of a Lab comparison. Both start from the same paused cut and run the same number of ticks; only the treatment gets the intervention.