SIAgentNews.com
AI-made picture for the story: Andrej Karpathy has Claude Code build a Civilization-style U.S. map
ToolsPicture made with AI
← All news
DevelopingTools

Andrej Karpathy has Claude Code build a Civilization-style U.S. map

Karpathy had Claude Code turn U.S. public data into a Civilization-style map, but the agent skipped some states and territories.

3 min readMade with AI

The short version

  • The app offers 19 visualization lenses for exploring the map.
  • It looks closely at 524 metropolitan areas.
  • Its tables and scatter plots draw on data covering more than 3,100 counties.
  • The source code is reachable through the application's help menu.
  • Wonders: Claude Code looked at national park attendance and university research spending to pick which landmarks count as wonders in the game.

What Karpathy asked Claude Code to build

Andrej Karpathy asked Claude Code to fill a Civilization-style game map with real U.S. data. The agent worked for about seven hours, and Karpathy then shared the result in a Wednesday post on X.

The New Stack reports that Karpathy asked Claude Code to fill a Civilization-style game map with real U.S. data. The agent turned that request into an interactive web application, with approximately 45,000 lines of code behind it.

Karpathy is an OpenAI founding member who coined the term "vibe coding". He joined Anthropic in May to work on pretraining research. For this project he used the desktop interface of Claude Code, running Opus 5.5 at medium reasoning effort with ultracode enabled.

Why it matters

A developer who hands a big data job to a coding agent can get a working app in hours, as this project shows. The New Stack notes that Karpathy's post offers little indication of how long it would take to independently verify the work.

Merging public data onto one grid

Claude did the whole job on its own. It gathered and reconciled the geographic data, set up the domain model, and built the app. For data it drew on the Federal Emergency Management Agency, the U.S. Geological Survey, the Energy Information Administration, the Bureau of Labor Statistics, the Bureau of Economic Analysis and the U.S. Census Bureau.

In all, 31 public data sources ended up on a single grid of 25-kilometer hexagons. The topics ranged from economic output and employment to power plants and natural disasters.

The New Stack points out that these datasets were never meant to fit together. Metropolitan GDP, county-level employment and the coordinates of single power plants each need their own method of spatial aggregation and assignment.

Turning data into game rules

Claude also had to decide how the numbers would map onto Civilization mechanics. Karpathy writes, "The data is converted into Civilization language, e.g., Gold yield is GDP."

San Jose earned a Campus district in the game. The reason: one in four of its workers are engineers, programmers, or scientists, against one in 14 nationally. Detroit became "Motor City".

The application offers 19 visualization lenses for browsing the map, and it lets a user zoom in on 524 metropolitan areas. Tables and scatter plots can be built inside it, using figures for more than 3,100 counties. Karpathy writes that he does not exactly know where he was going with the project, and that it possibly can be expanded or built into a game.

The states Claude left out

Karpathy's description of the project also mentions a gap in coverage. He writes that Claude decided to skip a few states and territories, and he adds "sry".

His post does not say whether the omissions came from missing source data, trouble processing geography, or choices Claude made while implementing the app. The New Stack notes that in an enterprise data pipeline, similar gaps could skew regional comparisons, add sampling bias or affect calculations that need full geographic coverage.

A small detail: Karpathy had only half of his weekly Claude usage allowance left, and he suggests someone else might need to continue development.

The verification gap

The New Stack argues that engineers handing similar projects to coding agents could spend more time checking the results than the agent spent making them. Tests written against the transformed data might miss absent records, unless coverage rules were set independently of the implementation.

Karpathy put the source code in the application's help menu. His post does not say how far he checked each data transformation himself. It also gives little on what the seven-hour session cost or how much effort it took from him.

For comparison, the outlet cites Confluent, which described moving a Kafka client from Java to Rust earlier this week. It used specialized agents and several rounds of review so the Rust client would behave like the Java one. Karpathy's map has no existing version to test against, and the outlet says a flawed aggregation method could lead tests to reinforce the error. Seven hours was enough for a working app, but the outlet says the experiment shows little about how long independent checking would take.

The questions people ask

What it means for you

A developer or data engineer weighing coding agents for large projects can learn from this. The build was fast, but the checking question stays open.

Who gains

Claude Code merged 31 public data sources onto one grid and produced an interactive app with 19 lenses. Karpathy says it is fun to browse and play with.

How solid is it

Mixed. The evidence is Karpathy's own post, as relayed by one outlet. The app and its code exist, but missing states and unknown validation limit what can be trusted.

What you can do

If you give an agent a data project, set coverage requirements yourself before it starts. Then check the output against them rather than relying only on the agent's own tests.

What to watch

  • Will Karpathy or anyone else explain why a few states and territories were skipped?
  • How much of the data work did Karpathy check independently, which his post does not describe?
  • Will someone take over development, and could the map grow into a game as Karpathy says it possibly can?
Up nextReddit users build hourglass, cities and planet candidates with Claude Code

More stories

Say why

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

Sources

The reporting and documents this story is built from. Each link opens the original.

Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake? Corrections.

More AI news