Skip to content
AI EmployeeSuper-AgentsAgent-to-AgentBenchmarksPricingBlog

Karpathy Had Claude Map the US Like Civilization

At a glanceQuick answers
What did Karpathy build?
A browser map of the US styled like the strategy game Civilization, filled with real public data, built by Claude Opus 5.5 in Claude Code.
How big was the job?
About 7 hours and 45K lines of code, drawing on 31 public data sources reconciled onto one 25 km hex grid.
Can I try it?
Yes. He deployed it at karpathy.ai/usaciv, and the question-mark button links to the source.
Data illustration on an off-white ground: a hexagon-tile map of the United States coloured like a strategy game board, with three translucent layers of gold coins, ports and airplanes, and factories and power plants stacking onto it. Text reads 31 data sources, 45K lines of code, Built with Claude Opus 5.5.
Fig 031 public datasets, one hex grid. Made by CellCog's image agent, running GPT Image 2.6.

Andrej Karpathy asked Claude to build a game map of the United States out of real data, and it did. In a post on X at 02:31 UTC on November 26, 2026, he wrote: “I asked Claude to populate a Civilization-style game map with real data from the US. Opus 5.5 downloaded and parse a ton of public data and 7 hours and 45K lines of code later… it works :)” The post passed 1.13 million views within half a day.

The result is deployed at karpathy.ai/usaciv. Everything below comes from his post and a reply, read through the X API; we have not audited the map’s numbers.

On this page · 6 sectionsOpen
  1. What went into the map
  2. How data becomes game language
  3. What is missing
  4. Why this one spread
  5. Where CellCog stands
  6. Sources
Key points6 · 4 min full read
  1. A hexagon map of the US with a clock and lines of code: built in hours.
    Andrej Karpathy wrote on X at 02:31 UTC on November 26, 2026 that Claude Opus 5.5 built a Civilization-style map of the US from real public data in about 7 hours and 45K lines of code.
  2. Coloured documents pouring through a funnel into a hexagon grid: 31 sources, one grid.
    The map draws on 31 data sources, among them Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA and CDC, reconciled onto one 25 km hex grid.
  3. A bar chart turning into a gold coin: GDP becomes Gold.
    Data becomes game language: Gold yield is GDP, a city’s districts are its real industry specializations and its citizens are its real workforce.
  4. A magnifying glass over map tiles beside a scatter plot and a table: the Explorer.
    It has 19 lenses, a City View for 524 metros, nine advisors and an Explorer that turns any column for 3,100+ counties into a table and scatter plot.
  5. A laptop with code and a half-full battery: half the weekly quota used.
    He built it in the Claude Code desktop app with Opus 5.5 on medium, on his regular subscription, and says half of his weekly Claude quota is left.
  6. A map with one tile lifted out and a question-mark sign: a few states skipped.
    Claude skipped a few states and territories, by his own account, and the map is live at karpathy.ai/usaciv with a 30-second trailer Claude also made.

§ 01What went into the map

Item What the post says
Build time About 7 hours
Code About 45K lines
Data sources 31, including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC
Grid One 25 km hex grid
Lenses 19, among them income, degrees, faith and disasters
City View 524 metros
Counties in the Explorer 3,100+
Advisors Nine, plus an Explorer
Tooling Claude Code desktop app, Opus 5.5 on medium
Quota used About half of his weekly Claude quota
Table 1Karpathy’s US Civilization map, by the numbers in his post, November 26, 2026

The layers he lists are “Real elevation, land cover, GDP, jobs, power plants, mines, ports, airports, bases, parks, universities, freight flows, disasters; all reconciled onto one 25 km hex grid.” That reconciling step is the hard part of any project like this: 31 agencies publish on different geographies, units and dates.

§ 02How data becomes game language

The map speaks Civilization. In his words: “Gold yield is GDP.” A city’s districts are its real industry specializations, so San Jose gets a Campus and Detroit becomes Motor city. Citizens are the real workforce, and wonders follow published rules, “such as national parks by visitor numbers and universities by R&D spending”.

His one worked number is San Jose: “1 in 4 San Jose workers are engineers, coders or scientists, against 1 in 14 nationally.” As shares, that is 25% against about 7.1%.

Share of workers who are engineers, coders or scientistsBar chart: national share about 7.1 percent, San Jose 25 percent highlightedUnited States7.1San Jose25Share of workers who are engineers, coders or scientistsBar chart: national share about 7.1 percent, San Jose 25 percent highlightedUnited States7.1San Jose25
Fig 1Share of workers who are engineers, coders or scientists

The Explorer is where the map turns into a research tool: it “turns any column for any of 3,100+ counties into a table and scatter plot, linked to the map.”

§ 03What is missing

He is plain about the gaps. “Claude decided to skip a few states and territories sry,” he wrote, without naming them. He also does not know where it goes next: “Possibly it can be expanded or built into a game. I only have half of my weekly Claude quote left though so someone else will have to take over :D.”

Asked in a reply whether the work ran on an employer plan, he said: “this is a rando side project so it’s just my regular sub”. Claude also made a 30-second trailer for the post.

§ 04Why this one spread

The post is not a benchmark. It is a person with a normal subscription handing an agent a vague, large job (find the data, clean it, invent a design, ship it) and getting a working product the same evening. The open question for anyone repeating it is the one he flags himself: checking 45K lines and 31 joined datasets takes far longer than generating them.

§ 05Where CellCog stands

Claude Opus 5.5 is one of the models CellCog’s agents run on. We had no part in Karpathy’s project. Our page on making product videos with Claude Code covers a different use of the same tool.

§ 06Sources

Frequently asked6 questions

Q1What is Karpathy's Civilization map of the US?

A browsable map that turns real US data into the language of the game Civilization. Andrej Karpathy asked Claude to build it and shared it on X on November 26, 2026.

Q2How long did Claude take to build it?

Karpathy wrote that it took 7 hours and 45K lines of code, using Claude Code’s desktop app with Opus 5.5 on medium.

Q3Which data does it use?

31 public sources, including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA and CDC: elevation, land cover, GDP, jobs, power plants, ports, parks, universities, freight flows and disasters.

Q4Is the map complete?

Not quite. Karpathy wrote that Claude decided to skip a few states and territories.

Q5Did it need a special plan?

No. In a reply he said it ran on his regular subscription, and that he has half of his weekly Claude quota left.

Q6Does CellCog use Claude Opus 5.5?

Yes. Claude Opus 5.5 is one of the models CellCog’s agents run on. CellCog had no part in Karpathy’s project.

Published 26 November 2026 All Workflows & use cases →