Technology

Andrej Karpathy Builds US Civilization Map Using AI Coding Agent

Burning24 Team · 28 Nov 2026 · 0 views
Andrej Karpathy Builds US Civilization Map Using AI Coding Agent
Photo: Prompt by JPxG, model by Boris Dayma, upscaler by Xintao Wan, Public domain / Wikimedia Commons

AI researcher Andrej Karpathy used Claude Code to build a Civilization-style interactive map of the United States, generating 45,000 lines of code in a seven-hour session.

Prominent AI researcher Andrej Karpathy has shared an interactive web map that translates real-world United States public data into the art style and layout of the strategy game Civilization. Built using Anthropic's autonomous coding tool Claude Code, the project consumed roughly half of Karpathy's weekly usage quota during a single seven-hour run.

The application maps 31 public federal datasets across 524 metropolitan areas onto a hexagonal grid. Netizens globally have begun using the same tool to build similar map applications for other countries, highlighting the growing capability of AI coding agents to handle large development tasks.

What happened

Karpathy used Claude Code, running the Opus 5.5 model at medium reasoning effort with ultracode enabled, to assemble the interactive application. The process generated approximately 45,000 lines of code and even produced a video trailer as a side output. The application aligns real-world topography, economic data, and infrastructure onto a 25-kilometer hexagonal grid. It draws on information from 31 government sources, 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. The project includes 19 visualization lenses, allowing users to view data on income, employment structures, housing, and disaster records. Distinct regional industries are translated into in-game equivalents, such as Los Angeles being labeled a film capital with a theater square, and San Jose being designated a campus district due to its high concentration of engineers and scientists. Karpathy noted that the AI autonomously skipped a few states and territories during the generation process.

Why it matters

The project demonstrates how AI coding agents can assemble multi-source data applications in hours rather than weeks, a task that previously required entire teams of software developers. By automating execution work, tools like Claude Code lower the barrier to building complex, data-driven applications. Educators and netizens have noted that such projects could serve as new teaching materials for economic geography, allowing students to compare real-world municipal data through an interactive interface.

The background

Andrej Karpathy is a prominent AI researcher and the former director of AI at Tesla who frequently shares experimental projects built with artificial intelligence. Claude Code is an AI coding agent developed by Anthropic that writes and executes software development tasks autonomously. The strategy video game Civilization, created by Sid Meier, is known for its turn-based gameplay mechanics where players build empires, manage economies, and develop cities across a grid of hexagonal tiles.

What happens next

While Karpathy has indicated that the application could eventually be expanded into a full game, no official release timeline has been provided. The current web application functions primarily as a viewing and appreciation tool rather than a playable evolving game. Meanwhile, developers continue to explore the limits of autonomous AI coding agents for large software projects.

Key takeaways

  • Andrej Karpathy used Claude Code to build an interactive US map styled after the game Civilization in a seven-hour session.
  • The application incorporates 31 federal data sources and spans 524 metropolitan areas across a hexagonal grid.
  • Claude generated approximately 45,000 lines of code and autonomously skipped a few states and territories.
  • Netizens around the world have begun replicating the project to build similar map applications for other countries.
Go deeper

Want more on this story? Our research assistant searches the latest reports across the web and explains what it finds, so you get the fuller picture in one place.

Comments

Comment as