Andrej Karpathy's Claude Code experiment: 45,000 lines of code in seven hours, but some U.S. states were skipped
Karpathy used Claude Code to build a Civilization-style map from real U.S. data; the agent wrote 45,000 lines in seven hours but silently omitted several states.
Andrej Karpathy, an OpenAI founding member who coined the term "vibe coding" and joined Anthropic in May to work on pretraining research, 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.
The application maps economic output, employment, power plants, and natural disasters from federal agencies including the U.S. Census Bureau, Bureau of Economic Analysis, and Federal Emergency Management Agency onto a 25-kilometer hexagonal grid. The difficulty lies in getting datasets never designed to work together onto the same map: metropolitan GDP, county-level employment figures, and individual power plant coordinates each require different methods of spatial aggregation. Claude then translated the data into Civilization game mechanics—for example, converting GDP into Gold yield.
Karpathy’s description included an admission about geographic coverage: “Claude decided to skip a few states and territories sry.” His post does not explain whether the omissions stemmed from gaps in source data, processing difficulties, or decisions Claude made during implementation. In an enterprise data pipeline, comparable silent omissions could distort regional comparisons or introduce sampling bias, and tests written against the transformed dataset might never detect missing records unless coverage requirements were established independently of the implementation.
With only half of his weekly Claude usage allowance remaining after the session, Karpathy suggested someone else might need to take over further development. The post offers little insight into the actual cost of the seven-hour run or how much verification work it required on his part. Without an existing implementation to test against, verifying the agent’s work presents a different challenge than reviewing conventional code: if the agent used a flawed method to aggregate geographic data, its own tests could reinforce the error rather than expose it.