Andrej Karpathy had Claude turn the real US into a Civilization map
The Karpathy Civilization map is live: Claude Opus 5.5 turned 31 public US data sources into a hex strategy map in 7 hours, by his count.
Andrej Karpathy unveiled the Karpathy Civilization map on X on November 26, 2026. He had asked Claude to draw the real United States as a strategy game, and Claude Opus 5.5 built it in 7 hours and 45,000 lines of code, by his count. The map puts 31 public data sources onto one grid of 25 km hexes, and anyone can browse it at karpathy.ai/usaciv.
What is the Karpathy Civilization map?
He built a browsable hex map of the US economy in the style of Sid Meier's Civilization games. Karpathy announced it in a post on X. "Opus 5.5 downloaded and parse a ton of public data and 7 hours and 45K lines of code later... it works :)," he wrote.
The site, called usaciv, looks like a 4X game at the start of a turn. For example, cities carry banners with population and yields. Meanwhile, hexes show forest, farmland, mountains and desert. A top bar sums up the nation: 342 million people and $29.3 trillion in gold.
He used the Claude Code desktop app, with Opus 5.5 on medium effort and ultracode switched on. The hours and the line count are his own figures, and nobody outside can check them. Everything the map shows, though, sits in public data files on the site. Those we did check.
Thirty-one public sources on one hex grid
The site's source list holds exactly 31 entries, and every file in it was retrieved on November 25, 2026. Most come from federal agencies: the Census Bureau, BEA, BLS, EIA, NOAA, USGS, the Defense Department, the National Park Service, the FAA, FEMA and the CDC. However, two publishers are not federal: the Natural Earth map project, with two layers, and the 2020 U.S. Religion Census.
Each entry names its publisher, vintage and licence, plus a checksum for every downloaded file. So most numbers can be traced back to a source file. Population and jobs come from the Census Bureau's American Community Survey. GDP comes from BEA county accounts for 2024, and detailed industry jobs from the BLS wage census for 2025.
Karpathy says all of it is "reconciled onto one 25 km hex grid". Elevation, land cover, power plants, mines, ports, airports, bases, parks, universities, freight flows and disasters share that grid. The trailer counts a few of them:
- 136 ports and 368 airports
- 660 military sites
- 52 wonders, chosen from parks by visits and universities by R&D spending, plus landmarks
- the 40 largest freight flows between states, led by New York to Boston at $61.9 billion a year

Districts rest on a standard economists' tool, the location quotient. It divides a metro's share of jobs in an industry by the national share. Detroit's motor vehicle jobs score 7.07, so the city earns its "Motor city" badge.
How does real data become a Civilization game?
In the Karpathy Civilization map, each game term maps to one real statistic. For instance, gold is GDP, so New York, the top metro, shows $2.44 trillion for 2024. Food is farm jobs and culture is jobs in the arts.
Districts are real industry specializations. San Jose gets a Campus, the district for research labs, universities, software, computer services and data hosting, because those jobs run 2.8 times the national share. Likewise, citizens are the real workforce from the census. In San Jose, 26% of workers are engineers, coders or scientists, against 7.4% nationwide. Karpathy rounds that to "1 in 4 San Jose workers" against "1 in 14 nationally".

On top of that sit 19 lenses that recolor the map, from income and degrees to broadband, faith and disasters. A City View opens for each of 524 places. Nine advisors, from a Treasurer to a General, each run a dashboard on one part of the country. An Explorer turns any column for 3,109 counties into a table and a scatter plot linked to the map.
Seven hours of agentic coding, by his count
The run shows how far a long agentic session can now go. Karpathy gave a goal, not a spec. Claude then found the data, cleaned it, joined it and drew it.
Ultracode helps explain how such a run holds together. Anthropic's Claude Code docs describe it as a setting in which Claude "plans a workflow for each substantive task", fanning the work out to many subagents. The same page names the price. On a subscription, such a session "reaches a session or weekly limit sooner".
That matches Karpathy's own ending. He has only half of his weekly Claude quota left, he says, "so someone else will have to take over :D". Long agentic jobs are becoming a pattern for Claude, as when it ran formal verification on 123 open-source libraries. They are also why AI agents are judged by stamina now, not just by snippets.
Compare it with his last big US-data project. In March he posted a chart of how exposed US jobs are to AI, built from BLS data. He called it a "2 hour vibe coded project", and Fortune reported that he took it down after it was "wildly misinterpreted". Eight months later, the new build runs longer, cites every table and ships its code.
Where the Karpathy Civilization map falls short
The gaps are real, and Claude made some of those choices itself. "Claude decided to skip a few states and territories sry," Karpathy wrote. The site's own Almanac is blunter: "Alaska, Hawaii and the territories are not mapped yet." So the map covers the 48 contiguous states and Washington, D.C.
That is the main risk of long autonomous runs, because an agent can narrow the scope on its own, and the human finds out afterwards. Other limits sit in the fine print:
- The 524 "metros" include 141 micropolitan areas, smaller towns that the Census counts separately.
- GDP is for 2024, while population and jobs come from 2025 surveys.
- Where BEA withholds an industry's GDP, the files mark the figure as an estimate.
- Inside a city, district positions are "schematic", the City View says.
Karpathy is also frank about the purpose. "I don't exactly know where I was going with this," he wrote. He added that it is "really fun to browse and play with".
Can you play it or build on it?
You can browse it today, but there is no game to win yet. The site runs in a browser with search, share links and a minimap. Karpathy says the "?" button holds the source link, and that the map "can be expanded or built into a game".

That is the open invitation in his post. After all, with his quota half spent, the next turns belong to whoever forks it. By Friday morning the post had passed 2.3 million views on X. Fan sites such as CivFanatics wrote it up, but we found no major outlet that had checked the data.
Claude
49Assistant focused on long documents and code work
Anthropic's coding agent that reads a repository, edits files and runs commands from the terminal, IDE, desktop app, browser or Slack
We opened the site's data files and checked the headline numbers against them. The 31 sources, 19 lenses, 3,109 counties and San Jose's 26% engineer share all match. The 7 hours and 45,000 lines remain Karpathy's figures. For anyone weighing Claude Code or other coding assistants for long data jobs, the lesson cuts both ways: an agent can finish a big pipeline alone, but someone still has to read what it chose to leave out.
So the next things to watch for the Karpathy Civilization map are a fork that turns it into a playable game and a build that finally adds Alaska and Hawaii.
Sources
CodingAgentsAnthropic
Related news
All stories →Anthropic's Project EVE: Claude teammates almost never caught a secret saboteur
Anthropic's Project EVE hid a secret Claude saboteur in four-agent teams in EVE Frontier. Teammates almost never caught it. What it does and doesn't show.
Claude ran formal verification on 123 open-source libraries and proved 239 fuzz targets crash-free
Anthropic and Theorem used Claude for formal verification of 239 fuzz targets in 123 open-source libraries: 180M lines of Rocq and hundreds of bugs.
Claude's protein design run hit 17 scorpion-toxin binders
Citrini Research spent $200,000 on a Claude protein design campaign. It sent 211 designs to two labs, and 17 of them bound scorpion toxins.



