AI researcher Andrej Karpathy has turned the United States into a Civilization-style strategy game map — and he did it by asking an AI coding agent to do the work. The Karpathy Claude Code usaciv project took about seven hours and roughly 45,000 lines of code.

Karpathy, a co-founder of OpenAI and Tesla’s former head of AI, said he asked Claude Code, running the Opus 5.5 model in Medium mode with ultracode enabled, to populate a Civilization-style game map with real data from the US. “Opus 5.5 downloaded and parsed a ton of public data and 7 hours and 45K lines of code later… it works,” he wrote on 26 November.

Karpathy Claude Code usaciv: 31 data sources on one map

The result, called usaciv, is live at karpathy.ai/usaciv. Claude pulled together 31 public data sources — including the Census, the Bureau of Economic Analysis, the Bureau of Labor Statistics, the Energy Information Administration, NOAA, the USGS, the Department of Defense, the National Park Service, the FAA, FEMA and the CDC — and reconciled them onto a single 25 km hexagonal grid.

The data is translated into the language of Civilization: gold yield is GDP, and a city’s districts are its real industries — San Jose gets a Campus, Detroit is “Motor city”. The map has 19 lenses, a City View covering 524 metropolitan areas, and an Explorer that turns data from more than 3,100 counties into tables and scatter plots. Claude also built a Python pipeline handling 500 MB of raw data, passed 176 unit tests and made a 30-second trailer with programmatically synthesised music.

Verification is now the bottleneck

Karpathy noted the limits himself: Claude skipped a few states and territories, and the build used about half of his weekly Claude allowance on a standard consumer plan. He also made the wider point that checking 45,000 lines of code and the consistency of 31 merged datasets takes longer than generating them — the bottleneck has shifted from writing code to verifying it. The project’s code is available under an MIT licence, and Karpathy has invited others to extend it.

Also read: India Joins US and 8 Other Nations in Pact to Protect AI Supply Chains and OpenAI Countersues Apple for Stealing Trade Secrets, Blocking Suppliers.

Sources: FourWeekMBA; The New Stack.