What is in this article?
- What Was Built
- Which Data Sources Were Merged?
- What the Map Lets You See
- Civilization Vocabulary, Explained for Non-Gamers
- Why Use a Hex Grid at All?
- How a Project Like This Is Typically Built
- What It Does Not Cover
- Why Verification Is the Real Story
- Common Ways Merged Datasets Go Wrong
- How to Spot-Check the Map Yourself
- About Karpathy's Affiliation
- What This Says About Agentic Coding
- What Students, Analysts and Small Publishers Can Take Away
- What We Know and What We Do Not
- Frequently Asked Questions
- What is the Karpathy USA Civilization map?
- Which AI built it?
- How long did it take?
- Is it accurate?
- Does it cover all US states?
- Is it an official government map?
- Can I use the data commercially?
- Do I need to know how to code to build something similar?
- Conclusion
- Sources
Quick answer: On 26 November 2026 AI researcher Andrej Karpathy posted on X that he had Claude build a Civilization-style strategy map of the United States. By his account, the job took about 7 hours and roughly 45,000 lines of code and merged 31 public data sources onto a 25 km hex grid. The result is live at karpathy.ai/usaciv. It is a striking demo of agentic coding. It is not an official statistical product, and details such as coverage and accuracy should be checked before anyone relies on it.
Featured image: an illustrative AI mockup, not a verified screenshot. Numbers shown in that image are not project statistics.
What Was Built
Karpathy used Claude (Opus 5.5) through the Claude Code desktop app, at medium effort with an “ultracode” setting, to turn real US data into a game-style map. Each hex tile represents about 25 km. The map borrows the language of the Civilization games: GDP maps to Gold, districts come from local industry specialisations (for example, San Jose gets a Campus and Detroit is “Motor City”), and “citizens” represent the real workforce. A “?” link on the page points to the data sources.
| Item | Reported detail | Status |
|---|---|---|
| Announced | 26 November 2026, on X | Karpathy’s own post |
| Model and tool | Claude Opus 5.5 via the Claude Code desktop app | As described by Karpathy |
| Time | About 7 hours | Self-reported |
| Code size | About 45,000 lines | Self-reported |
| Data | 31 public sources | Self-reported; listed on the page |
| Grid | 25 km hexes | Self-reported |
| Live site | karpathy.ai/usaciv | Public |
Which Data Sources Were Merged?
Reports name US federal sources including the Census Bureau, BEA (economic accounts), BLS (labour statistics), EIA (energy), NOAA (weather and climate), USGS (geology), the Department of Defense, the National Park Service, the FAA, FEMA and the CDC, among others. The hard part of a project like this is not drawing hexagons. It is reconciling datasets with different geographies, years and definitions onto one grid, which is where errors usually creep in.
What the Map Lets You See
Other outlets describe 19 interactive “lenses” and city views for more than 500 metros. In Civilization terms, you can switch between views such as economy, energy, defence or hazards and look at how a place scores. It turns dry tables into something you can explore like a game board.
Civilization Vocabulary, Explained for Non-Gamers
If you have never played the strategy games the map imitates, the labels can look odd. In the Civilization series, a player grows a city on a grid of tiles. Each tile yields resources such as food, production, gold and science, and cities can build “districts” that specialise in one activity. The map applies that same vocabulary to real places. It is a translation layer, not new measurement.
| Game term | What it stands for on the map | What it is not |
|---|---|---|
| Tile / hex | A roughly 25 km cell of land | An official administrative unit |
| Gold | Economic output, based on GDP data | Money held by anyone |
| District | A local industry specialisation | A legal or planning zone |
| Citizens | A representation of the workforce | A census headcount of people |
| Lens | A thematic view such as energy or hazards | A separate dataset |
Why Use a Hex Grid at All?
Real data arrives in awkward shapes: counties, ZIP codes, census tracts, utility zones, weather stations and point locations. Comparing them directly is hard because the shapes differ in size and boundary. A regular grid gives every cell a similar area, so numbers can be compared more fairly. Hexagons are popular for this because each cell has six neighbours at nearly equal distance, which avoids the diagonal distortion of square cells. Strategy games use hexes for the same reason. The trade-off is that real boundaries are not hexagonal, so every conversion involves some approximation.
How a Project Like This Is Typically Built
Karpathy has not published a step-by-step recipe in the sources we reviewed, so the following is a general description of how agent-assisted data projects work, not a claim about his exact process.
- Define the goal. A person states what the finished product should look like and which questions it should answer.
- Collect data. The agent writes scripts to download, clean and standardise public datasets.
- Join to a common grid. Each dataset is assigned to hex cells, often by area weighting or by assigning point locations to the cell they fall in.
- Score and label. Rules convert raw numbers into game-like attributes and district names.
- Build the interface. Code produces the interactive map, lenses and city views.
- Review and revise. A human checks results, notices gaps and asks for fixes.
The 45,000-line figure suggests a lot of that effort went into data handling and interface code rather than a single clever algorithm.
What It Does Not Cover
One report notes that Claude skipped some states and territories, so the map is described as covering the 48 contiguous states. Treat that as a reported limitation. The page itself is the best place to confirm coverage. Do not assume Alaska, Hawaii or US territories are included.
Why Verification Is the Real Story
Seven hours and 45,000 lines is impressive, but an AI-written data project can fail quietly: a unit mismatch, a wrong join, a year that is out of date, or a method of spreading county data onto hexes that smooths away real differences. Nothing in the reports suggests the map is wrong. The point is that its authority comes from the underlying sources, not from the fact that an AI built it. Click through to the source list, spot-check a few places you know, and be cautious about using the “scores” as facts.
| What you see | Safer reading |
|---|---|
| “Gold” per hex | A stylised mapping of GDP, not a literal treasury figure |
| “Motor City” district | A label generated from industry specialisation, not an official designation |
| Citizen counts | A representation of workforce data, subject to the underlying survey’s limits |
| Neat 25 km tiles | An approximation; real boundaries do not follow hexes |
Common Ways Merged Datasets Go Wrong
Combining 31 sources is where most hidden mistakes appear. The list below describes well-known data-merging problems in general. We are not saying any of them occurred in this map.
| Problem | What it looks like | Why it matters |
|---|---|---|
| Different years | One layer is from 2022, another from 2025 | Places that changed quickly look inconsistent |
| Different units | Dollars vs thousands of dollars, miles vs kilometres | A tile can look hundreds of times richer or poorer |
| Boundary mismatch | County data spread across several hexes | Sharp local differences get blurred |
| Suppressed values | Agencies hide small counts for privacy | Rural cells may appear empty when they are not |
| Double counting | The same activity appears in two sources | Scores inflate |
| Label bias | A district name is chosen from one dominant industry | A mixed economy gets a one-word label |
How to Spot-Check the Map Yourself
- Open the map and find your own city or region.
- Compare the main label with what you know about the local economy.
- Open the “?” source list and note which agency and year feed that lens.
- Look up one headline number, such as a metro’s GDP, on the agency’s own website.
- Check a hazard or energy lens against local knowledge, such as known flood zones or power plants.
- If something looks wrong, note the lens, place and source rather than assuming the whole map is unreliable.
About Karpathy’s Affiliation
Secondary reporting says Karpathy joined Anthropic’s pre-training team in May 2026. Because the tool in question is an Anthropic product, readers should note that possible connection when weighing the post as a showcase. It comes from third-party coverage, and we have not confirmed it with a primary source.
What This Says About Agentic Coding
- A single person can now prototype a data-heavy visual project in an afternoon.
- The skill shifts from typing code to specifying goals, checking outputs and choosing sources.
- Gaps, such as missing states, show that “done” still needs a human review.
What Students, Analysts and Small Publishers Can Take Away
You do not need to be a famous researcher to apply the idea. The useful lesson is the workflow: pick a clear question, list the public datasets that could answer it, ask an AI coding tool to do the repetitive cleaning, and then spend your own time on checking. Public data from government agencies is often free, which lowers the cost of experiments. The cost that remains is attention, because someone must decide which sources are trustworthy and which simplifications are acceptable.
For publishers, the same caution applies to any AI-assisted chart or map you share. State the source and year, describe the method in plain language, and avoid presenting stylised scores as measurements. A playful interface should not make readers forget that the numbers underneath came from specific surveys with specific limits.
What We Know and What We Do Not
| Topic | Status |
|---|---|
| The map exists and is public | Confirmed by the project page |
| 7 hours, 45,000 lines, 31 sources | Self-reported by the creator |
| Independent accuracy audit | None reported |
| Full source and licence list for reuse | Check the project page |
| Coverage of Alaska, Hawaii and territories | Reportedly not included; verify on the page |
| Any official government endorsement | None; it is an independent project |
Frequently Asked Questions
What is the Karpathy USA Civilization map?
A hex-grid, Civilization-style map of the US built from public data and hosted at karpathy.ai/usaciv.
Which AI built it?
Claude (Opus 5.5) through the Claude Code desktop app, according to Karpathy.
How long did it take?
About 7 hours and about 45,000 lines of code, as reported by Karpathy.
Is it accurate?
It relies on federal datasets, but no independent audit has been reported. Spot-check anything important.
Does it cover all US states?
One report says it covers the 48 contiguous states only. Check the page.
Is it an official government map?
No. It is an independent project using public data.
Can I use the data commercially?
Check each source’s licence and the site’s terms. US federal data is often public, but rules vary.
Do I need to know how to code to build something similar?
Not necessarily to start, but you do need to understand your data well enough to judge the output. The tool can write code quickly. It cannot take responsibility for whether a number is right.
Conclusion
The Civilization-style map is a fun, memorable showcase for what agentic coding can do. Enjoy exploring it, keep the sources in view, and remember that a fast build is not the same as a verified one.
Sources
- Andrej Karpathy, post on X, 26 November 2026
- The New Stack, CivFanatics and other outlets covering the project
- karpathy.ai/usaciv (project page and source list)
Karpathy’s live map and source links

Share Your Opinion
Comments are closed on this post.