Key takeaways
- Andrej Karpathy released usaciv, a strategy-game style map of the US built from public data, with its source under the MIT license.
- Karpathy said on X that Claude Opus 5.5 in Claude Code wrote it in about 7 hours and 45,000 lines; the download holds about 43,700 lines of code.
- The map covers only the lower 48 states; Karpathy said Claude skipped a few states and territories.
Andrej Karpathy has published usaciv, a map of the United States drawn like a turn-based strategy game and built from public government data, which he says Claude Code wrote over about seven hours. The live map is at karpathy.ai/usaciv, and the full source code is a free download under the MIT license.
It is one of the clearest public examples yet of a coding agent doing a long data project mostly on its own. In a post on X on November 26, Karpathy said Claude Opus 5.5 downloaded and parsed the data and that "7 hours and 45K lines of code later... it works". He said he ran it in the Claude Code desktop app with the model on medium effort and the ultracode mode turned on.
What the agent built
The README in the source describes it as "a visualizer (not a game)". Hex tiles get their terrain from elevation and land-cover data. Cities carry banners for food, production, gold, science and culture: gold is GDP from the Bureau of Economic Analysis, and the other yields are job counts by industry from the Census Bureau's American Community Survey.
There is a lot on top of that. Power plants, mines and shale plays appear as resources, military bases as forts, and 52 "wonders" picked by published rules, such as the most-visited national parks. Lenses color all 3,100-plus counties by income, education, poverty, broadband and more. Clicking a city opens a view of its workers and its districts, based on which industries it specializes in.
The code, checked
The download backs up the scale. Counting the Python, JavaScript, CSS and HTML files, and leaving out the built data, comes to about 43,700 lines, close to the 45,000 Karpathy cited. The pipeline folder has 30 source modules, one per dataset, from Census boundaries and BLS wage data to NOAA disaster costs, FEMA records and airport and port data. Karpathy's post said 31 sources.
The engineering choices are plain on purpose. The README says the data pipeline uses only Python's standard library and public downloads that need no API keys, and the site is plain JavaScript and Canvas 2D with no framework or build step. It ships with a test folder and an in-app "Almanac" that traces each number to its source.
Where it falls short
The map covers the lower 48. Karpathy wrote that Claude decided to skip a few states and territories, and the README lists "Alaska and Hawaii insets" under ideas for later. His post did not say how much of the data processing he checked by hand, which matters for a project whose whole point is that the numbers are real.
For people who use Claude Code, the takeaway is less about the map than the method: a seven-hour agent run that ends in tested, documented code. The guide to Claude Code's fast mode and what it costs covers the other side of long runs: the bill. The source is open, so the next test is whether others can rebuild the data from scratch and get the same map.
Sources
- usaciv: the United States as a strategy gameAndrej Karpathy
- usaciv source code and READMEAndrej Karpathy
- Post on X about usacivAndrej Karpathy



