An AI safety simulator.
A 3D strategy game about the decisions that could shape the arrival of superintelligence: racing China or coordinating, releasing open weights, funding biodefense, betting on neural interfaces ("alignment via merging"), and how much compute goes to safety.
Play it: https://thegameofagi.com
Write-up: Game of AGI on Substack.
Run it locally: open index.html in a browser, or serve the folder
(python3 -m http.server) and visit http://localhost:8000.
How it was built: this game was built in conversation with Claude Code, and each
session is published as a browsable memtree. trees.js lists
them, newest last, and the page links the latest under "How it was built".
It extends the original Game of AGI, a Monte Carlo of AGI risk. That version's ideas carry over: safe-by-default odds, oversight, whistleblowers, and takeoff speed vs. how fast rivals replicate AGI. This version adds time, geopolitics, open weights, bio risk, and a 3D world, and calibrates its timelines and plan outcomes to AI 2040: Plan A. God Mode has presets for all five plans in AI 2040's plan comparison. Locked-In Power (a catastrophe) and the public wealth fund follow National Security Response: automation can leave most people without economic leverage or a say even when humans keep control of AI.
The pandemic estimate covers 100M+ deaths counterfactually attributable to open weights. Its illustrative prior now includes both uncertain transmission and an already-transmissible starting point, with the same attempt pool divided between them. The fitted decade prior has a 0.066% median and a 0.83% mean; these are different from the share of game futures ending in a pandemic. Natural outbreaks and closed-model misuse are outside that estimate; state programs are left out because states are deterred (MAIM, Superintelligence Strategy). The model page explains the assumptions, sensitivity and exposure calibration.
- God Mode. Set ten policy levers and twelve uncertain assumptions (mean ± spread, as in the original; the seven probabilities are Beta distributions on 0–100% (0–60% for how much tests overstate alignment) with that mean and standard deviation, the spread in percentage points, and the others normal or lognormal; "Insiders speak up", the whistleblower odds, lowers lock-in and how much of the tests' overstatement stays hidden), run 2,000 Monte Carlo futures, and see every trajectory as a 3D fan, colored by how it ends. Hover a line to read its values; click an outcome to read it and isolate its futures.
- Campaign (2027–2040; opens on a one-line title screen; Play starts right away, with a tutorial on the first visit; the page remembers the mode you used last; "Show secret facts" reveals the hidden world and real risks while you play). Each year you get a decision card. Hover a choice to
see how it shifts next year's projected risk, then the dice roll against
three catastrophes: an engineered pandemic, loss of control, and great-power war.
The globe reacts in 3D:
- lab towers grow with capability
- the US–China arc turns from red to cyan as trust builds
- open-weights copies swarm in orbit
- the alignment shield thickens, or cracks red when capability outruns it
- a neural-interface lattice spreads as BCIs are adopted
| File | What it is |
|---|---|
model.js |
The world model: state, levers, yearly dynamics (every update reads the start-of-year state, so their order does not matter), hazard equations, Monte Carlo, and its 169 named constants |
events.js |
The decision cards and how each choice moves levers and state |
news.js |
The campaign's news clips and year-end front page stories: deterministic headline, deck and body templates for what visibly changed each year, plus illustrative economy figures derived from the visible state (not model outputs; node test-news.js --report shows how often each fires) |
landmask.js |
Land/sea bitmap for the globe, rasterized from Natural Earth 1:50m coastlines (public domain) |
trees.js |
Memtree links for the sessions that built the game |
analytics.js |
Anonymous usage stats sent to PostHog's HTTP API (no SDK, no cookies, no storage, a random id per page load; Do Not Track and Global Privacy Control respected; off while ANALYTICS.key is empty, and anywhere but thegameofagi.com). Events: visit, mode_open, camp_start, camp_choice, camp_paper, camp_end, camp_quit, again, lab_settings, preset, unk_preset, jump, dist_open, share, copy_ai, tour, model_open, link, secrets_toggle (properties in AGENTS.md, "Analytics") |
scripts/build_artifact.py |
Builds a copy for a claude.ai Artifact |
index.html |
Three.js scene, HUD, campaign loop, God Mode |
test-model.js |
node test-model.js prints outcome distributions for policy presets |
scripts/sweep_constants.js |
Moves each named constant on its own and writes docs/constant-sensitivity.md (by topic) and docs/constant-sensitivity-full.md (every number); --marginals screens candidate cuts against every preset and every lever's effect (docs/simplification-2.md) |
This is a toy model meant to make trade-offs tangible, not a forecast. Every
parameter is an illustrative assumption you can read and change in model.js.
The council, labs and companies in the game are fictional composites.
MIT. The coastline data in landmask.js is derived from Natural Earth (public domain).