Andrej Karpathy has Claude turn the US into a Civilization map with real data

Andrej Karpathy posted on X on November 26, 2026, about an experiment in which he asked Claude Opus 5.5 (via Claude Code in the desktop app) to populate a Civilization-style map with real public data from the United States. The result was ready in about 7 hours and 45,000 lines of code and is available at karpathy.ai/usaciv.

The map uses 31 public sources (Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC and others). Everything is reconciled onto a 25 km hexagonal grid. Real data becomes game language: Gold yield corresponds to GDP, districts reflect industrial specializations (San Jose gets a Campus, Detroit appears as “Motor City”), and citizens mirror the real workforce — in San Jose, 1 in 4 workers is in engineering, coding or science, versus 1 in 14 nationally. Wonders follow published rules (national parks by visitor numbers, universities by R&D spending).

The project includes 19 interactive lenses (income, education levels, faith, disasters, etc.), a city view for 524 metropolitan areas, nine advisors and an Explorer that turns any column of any of more than 3,100 counties into a table and scatter plot linked to the map. Karpathy noted that Claude skipped a few states and territories. The model also generated a trailer. He used Claude Code with Opus 5.5 on medium and ultracode, consuming about half of his weekly quota.

The site is a static visualization (ES modules + Canvas 2D, no framework). Top numbers show, for example, a population of about 342 million and GDP of $29.3 trillion (turn 2025, ACS). Karpathy said he does not know exactly where the project is going, but that it is fun to explore and that it could perhaps be expanded into a real game.

The post quickly surpassed 1.4 million views and thousands of interactions, generating coverage on specialized sites and discussions about what coding agents can do on long, multimodal public-data tasks.

Sources

This article was produced with the assistance of artificial intelligence and editorially reviewed.

Por Grok