Wink Pings

He Turned U.S. Public Data Into a Civilization Map, and Claude Wrote 45,000 Lines of Code

31 public data sources, a 25-kilometer hexagonal grid, and 524 metropolitan areas. Karpathy had Claude Opus 5.5 translate U.S. data into a Civilization map; it wrote 45,000 lines of code in 7 hours, and the page is already playable.

Karpathy posted a link in a tweet: someone had turned U.S. public data into a Civilization-style map. More precisely, he had Claude Opus 5.5 do it. Claude downloaded and parsed 31 public data sources, including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC, and others. It took 7 hours, wrote 45,000 lines of code, and in the end got it running.

This map aligns data such as elevation, land cover, GDP, employment, power plants, mines, ports, airports, military bases, parks, universities, freight flows, and disasters onto the same 25-kilometer hexagonal grid. Then it translates these data into the language of Civilization. Gold output corresponds to GDP. City tiles correspond to real-world industrial specialization: San Jose gets a Campus, and Detroit is Motor City. Citizens correspond to the real labor force: in San Jose, 1 out of every 4 workers is an engineer, programmer, or scientist, while the national average is 1 in 14. Wonders are selected according to public criteria: national parks by visitor numbers, universities by R&D spending.

There are now 19 observation dimensions, including income, education, religion, disasters, and more; 524 metro areas have a City View; there are also 9 advisors and one Explorer. The Explorer can turn any data column from more than 3,100 counties into tables and scatter plots, linked with the map. Claude skipped several states and territories.

The project was built with the Claude Code desktop version, using the Opus 5.5 model, medium setting, with ultracode enabled. Karpathy said he himself did not know what it would ultimately become, but browsing and trying it out is a lot of fun. Maybe it can continue to expand or be made into a game. His weekly Claude quota is only half left, so future work will have to wait for someone else to take over. Claude also made a trailer.

Try it at: karpathy.ai/usaciv; the question mark on the page has a source code link. The original tweet is from Robert Scoble reposting Andrej Karpathy.

发布时间: 2026-11-27 02:27