Andrej Karpathy asked Claude Code to populate a Civilization-style game map with real U.S. data. Seven hours and approximately 45,000 lines of code later, the agent had built an interactive web application that reconciled 31 public data sources onto a single geographic grid, according to Karpathy’s Wednesday post on X.
“I don’t exactly know where I was going with this, but it’s really fun to browse and play with.”
“I don’t exactly know where I was going with this, but it’s really fun to browse and play with,” Karpathy writes. “Possibly it can be expanded or built into a game.”
Karpathy, an OpenAI founding member who coined the term “vibe coding” and joined Anthropic in May to work on pretraining research, built the application using Claude Code’s desktop interface with Opus 5.5 at medium reasoning effort and ultracode enabled.
Seven hours, 45,000 lines
Claude handled everything from acquiring and reconciling the geographic data to defining the domain model and building the application.
Engineers handing off projects of similar complexity to coding agents could spend more time validating the results than the agent spent producing them.
Reconciling 31 data sources
Claude pulled data from federal agencies including the U.S. Census Bureau, Bureau of Economic Analysis, Bureau of Labor Statistics, Energy Information Administration, U.S. Geological Survey, and Federal Emergency Management Agency, mapping everything from economic output and employment to power plants and natural disasters onto a 25-kilometer hexagonal grid.
The difficulty lies in getting datasets that were never designed to work together onto the same map. Metropolitan GDP, county-level employment figures and the coordinates of individual power plants each require different methods of spatial aggregation and assignment. Claude then had to determine how the data would translate into Civilization’s game mechanics.
“The data is converted into Civilization language, e.g., Gold yield is GDP.”
“The data is converted into Civilization language, e.g., Gold yield is GDP,” Karpathy writes.
San Jose received a Campus district because one in four of its workers are engineers, programmers, or scientists, compared with one in 14 nationally, while Detroit became “Motor City.” The agent used national park attendance and university research spending to determine which landmarks qualified as in-game wonders.
Users can explore the map through 19 visualization lenses, examine 524 metropolitan areas in greater detail, and generate tables and scatter plots from data covering more than 3,100 counties directly within the application.
When agents decide alone
Karpathy’s description of the project included an admission about its geographic coverage.
“Claude decided to skip a few states and territories.”
“Claude decided to skip a few states and territories sry,” he writes.
His post does not explain whether the omissions stemmed from gaps in the source data, geographic processing difficulties or decisions Claude made during implementation.
In an enterprise data pipeline, comparable omissions could distort regional comparisons, introduce sampling bias or affect calculations that depend on complete geographic coverage. Tests written against the transformed dataset might never detect missing records unless coverage requirements were established independently of the implementation.
Karpathy made the source code available through the application’s help menu, although his post did not describe the extent to which he had independently validated individual data transformations.
The verification gap
With only half of his weekly Claude usage allowance remaining, Karpathy suggests someone else might need to take over further development. His post offers little insight into the actual cost of the seven-hour session or how much work it required on his part.
Earlier this week, Confluent described its experience migrating a Kafka client from Java to Rust, relying on specialized agents and multiple rounds of review to ensure the Rust client behaved like its Java counterpart.
Without an existing implementation to test against, verifying Claude’s work presents a different challenge. If the agent used a flawed method to aggregate geographic data, its tests could reinforce the error rather than expose it. Seven hours was enough to build a working application, but Karpathy’s experiment offers little indication of how long it would take to independently verify the work.
Claude Code
Step-by-Step guide to becoming a Claude Code expert in 2026
Introduction
Ways to use Claude
Understand the Basics
Using Claude Code
Claude Workflow
Usage Best Practices
CLAUDE.md
Skills
Hooks
Manage Context
YOUTUBE.COM/THENEWSTACK
Tech moves fast, don’t miss an episode. Subscribe to our YouTube
channel to stream all our podcasts, interviews, demos, and more.