Coding Agents · [ 4 min read ]
Karpathy's Claude Code map of the US took 7 hours and 45,000 lines
Anthropic researcher Andrej Karpathy built a Civilization-style hexagonal map of the US with Claude Code in about seven hours, drawing on 31 data sources and some 45,000 lines of generated code.
Key findings
- Karpathy built the US map in about 7 hours with Claude Code and Opus 5.5, generating roughly 45,000 lines of code
- The map draws on 31 data sources, including government agencies, and offers 19 ways to explore the information
- Hexagons span roughly 25 km, covering 524 metropolitan areas and more than 3,100 counties
- Claude skipped a few US states and territories while generating the map
- Karpathy joined Anthropic's pre-training team in May 2026 and coined 'vibe coding' on February 2, 2025

7 hours and 45,000 lines: Andrej Karpathy built a playable map of the United States with Claude Code. The Anthropic researcher gave the agent a prompt to populate a Civilization-style game map with real US data, and after roughly seven hours of work the model had produced about 45,000 lines of code.
Karpathy announced the working application in a social media post on Thursday, November 26. "I asked Claude to populate a Civilization-style game map with real data from the US. Opus 5.5 downloaded and parsed a ton of public data and 7 hours and 45K lines of code later... it works," he wrote.
He also flagged the practical ceiling: "I don't exactly know where I was going with this, but it's really fun to browse and play with." The project could expand into a game, he said, but "I only have half of my weekly Claude quote left, though, so someone else will have to take over."
How did Claude Code build a map of the United States?
The build drew on 31 different sources, government agencies included, and merged them into one interface. The combined records cover:
- Population, income and employment
- Power plants, mines and airports
- National parks and universities
- Natural disasters
Geography sits on a hexagonal grid, with each hex spanning roughly 25 km. That resolution lets several kinds of data occupy the same ground without overlapping into noise.
Takeaway: the map is an aggregation and rendering job rather than a modelling job, which explains why one seven-hour agent run could deliver it.
What does the map actually show?
The interface borrows the Civilization playbook. Economic output shows up as "gold", and cities take on labels drawn from their dominant industries: San Jose renders as "Campus", Detroit as "Motor City".
Workforce data then assigns job types to each city, so the map answers what people do in a place, not only where they live.
Users get 19 ways to explore the information, among them income, education and natural disasters. The same data opens up through tables and charts for 524 metropolitan areas and more than 3,100 counties.
Takeaway: this is a public-data browser wearing a game skin, and the skin is what makes the records easy to read.
Where did the agent fall short?
Claude skipped a few US states and territories while generating the map. Karpathy acknowledged the gap himself, which matters for anyone treating an agent-assembled artefact as coverage-complete.
Takeaway: an agent that merges 31 sources in a single pass will drop edges, so check the map before quoting it.
Who is Andrej Karpathy?
Karpathy studied computer science and physics at the University of Toronto, taking a BSc, then completed an MSc in computer science at the University of British Columbia and a PhD in computer science at Stanford. During that PhD he designed and led CS231n, Stanford's first deep learning course, which has since become one of the university's most popular classes.
His industry record runs in short blocks. He joined Google as a summer intern in 2011 after his Master's, returned in 2013 for four months working on deep learning and computer vision for YouTube videos, and served as a research intern at Google DeepMind from June to September 2015.
In 2016 he joined OpenAI as a founding member and research scientist, working on deep learning for generative models and contributing to the company's early recruitment and structure. He left in 2017 and joined Tesla as Senior Director of AI, a post he held until 2022. He returned to OpenAI for a second stint in 2023 and stayed through 2024, then started Eureka Labs, a startup applying AI assistants to education. In May 2026 he joined Anthropic, where he works on the pre-training team.
Takeaway: Karpathy now sits on the team that trains the models, one step upstream from the coding agents he demonstrates with.
How did Karpathy coin 'vibe coding'?
Karpathy coined the term on February 2, 2025, in a post on X. He described it as a new way of programming in which people lean on AI tools to generate and modify code from simple instructions rather than writing or reading the code themselves. His own loop was straightforward: give an AI coding assistant an instruction, run what comes back, and feed the errors back into the tool until the application works.
He framed the method as suited to experimental and personal projects rather than to complex professional software. That framing has aged into the tool's normal operating range.
Takeaway: vibe coding named a workflow that has since become the default way developers ship small tools.
The map stands as a working benchmark for agent-built software: 31 public data sources, one session, and a few states left out.
Google News: agentic coding (Source)
More from James Calloway
Show full bio
Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.
24 articles