Andrej Karpathy Wrote 45,000 Lines of Code in 7 Hours. Here Is What Claude Built.
How Andrej Karpathy Used Claude Code to Build an Interactive Map of the United States Using 31 Public Data Sources?
Andrej Karpathy, one of the founding members of OpenAI and a prominent figure in artificial intelligence research, recently gave Claude Code a substantial software development task. He asked Anthropic’s AI coding agent to populate a Civilization-style strategy game map of the United States with real-world data. Approximately seven hours and 45,000 lines of code later, the project was working and available online.
Karpathy shared the experiment on November 26, 2026, explaining that he had used Claude Opus 5.5 through the Claude Code desktop application. The model downloaded and processed information from 31 public data sources, including the US Census Bureau, Bureau of Economic Analysis, Bureau of Labor Statistics, Energy Information Administration, NOAA, US Geological Survey, Department of Defense, National Park Service, FAA, FEMA and CDC.
The objective was to bring together different categories of information about the United States and present them through an interactive map inspired by the popular strategy game Civilization. The project combines geographical, economic, industrial and demographic information in one interface. It includes elevation, land cover, GDP, employment, power plants, mines, ports, airports, military bases, national parks, universities, freight movements and natural disasters.
One of the project’s central features is its geographical structure. Claude reconciled information from the 31 sources onto a hexagonal grid, with each hex covering approximately 25 kilometres. This allowed information collected from different government agencies and datasets to be represented through a common geographical framework.
Claude also converted real-world statistics into the terminology and mechanics of Civilization. For example, GDP determines a location’s Gold yield. A city’s industrial specialisation determines its district. San Jose receives a Campus district because of its concentration of engineers, programmers and scientists, while Detroit is identified as Motor City because of its automotive industry. The population represented in the game also reflects the actual workforce. According to Karpathy’s data, one in four workers in San Jose is an engineer, programmer or scientist, compared with approximately one in fourteen nationally.

The project includes 19 different data views, or lenses, covering categories such as income, educational qualifications, religion and natural disasters. It also features a dedicated City View covering 524 metropolitan areas, along with nine advisors and an Explorer.
The Explorer provides another layer of functionality. Users can select data columns for more than 3,100 US counties and examine the information through tables and scatter plots connected to the map. The project also uses published criteria to determine certain game elements. For instance, national parks are selected using visitor numbers, while universities are considered using research and development spending.
However, the experiment had its limitations. Karpathy acknowledged that Claude skipped a few US states and territories while building the map. He did not identify the missing locations in his post. The omission is a reminder that a functioning application does not necessarily mean every requirement has been completed.
Karpathy built the project using Claude Code’s desktop application, running Opus 5.5 at medium effort with ultracode enabled. He also clarified in a reply that he used his regular Claude subscription rather than a special enterprise arrangement. Despite the seven-hour development session, he said approximately half of his weekly usage allowance remained.
The completed project is available at karpathy.ai/usaciv. Karpathy described it as an interesting experiment and suggested that it could potentially be expanded or developed into a game. Claude also generated a 30-second trailer for the project.
The significance of the experiment lies in the scope of work completed during a single development session. Claude handled data collection, parsing, geographical integration, application development and visualisation. The result was a working interactive platform built around 31 public datasets, with 45,000 lines of code produced in approximately seven hours.
The missing states and territories also provide an important qualification to the result. The project demonstrates how much an AI coding agent can produce in a relatively short period, while showing why checking coverage and completeness remains an essential part of software development.

