Wink Pings

7 Hours, 45K Lines of Code: Karpathy Built a Civilization-Style Map From 31 U.S. Datasets

Using the Claude Code desktop client with Opus 5.5 and ultracode mode enabled, Karpathy generated 45,000 lines of code in 7 hours to integrate 31 U.S. public data sources into a 25km hexagonal grid map. GDP is mapped to in-game gold production, cities are categorized by their real-world industries, and the final product includes 19 views, covering 524 metropolitan areas and over 3,100 counties.

Andrej Karpathy shared a project built with the Claude Code desktop client and Opus 5.5, with ultracode mode turned on. Over 7 hours, 45,000 lines of code, 31 real-world data sources were compiled to create a full game map styled after the Civilization franchise, themed around the United States. The project is live at karpathy.ai/usaciv.

The data sources include the U.S. Census Bureau, BEA, BLS, EIA, NOAA and more. All datasets are normalized to a unified 25km hexagonal grid. This process may sound unglamorous, but it is the core prerequisite for making the whole map usable, sliceable, and comparable across regions. GDP is mapped to in-game gold output, and cities are split by their actual real-world industry makeups, so the map retains the resource logic familiar to Civilization players, while fully preserving real-world U.S. economic structures.

On the feature side, the project offers 19 separate views, including a City View that covers all 524 metropolitan areas, and an Explorer tool that spans over 3,100 counties. You can use it as a standalone data visualization map, or treat it as a rapid data product prototype assembled almost entirely with AI. While the 45,000 lines of code draws the most attention, the real heavy lift was aligning the statistical calibers, granularity, and geographic boundaries of the 31 different data sources to fit on the same single grid. AI drastically cut down the time spent writing code, but data unification and view organization still required plenty of human judgment.

Ado Kukic reposted the project and shared his reaction to it. His original post is on X, the project lives at karpathy.ai/usaciv, and the full AIHOT entry is available here.

发布时间: 2026-11-27 00:44