Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/andrej-karpathy-let-claude-code-run-for-7-hours-it-wrote-45000-lines-of-code-and-skipped-a-few-states.md

AI & MLOps

Andrej Karpathy let Claude Code run for 7 hours. It wrote 45,000 lines of code and skipped a few states.

Karpathy had Claude Code build an interactive Civilization-style map from 31 U.S. public datasets over seven hours, but admitted it skipped some states and territories.

The New Stack28 Nov 2026 · 4 min read · summary

article --summary

The summary

Andrej Karpathy asked Claude Code to turn real U.S. government data into a Civilization-style strategy map. The agent ran for about seven hours, producing roughly 45,000 lines of code and an interactive web app that combines 31 federal and other sources on a hexagonal grid. The piece walks through how the data was converted into game mechanics, such as treating GDP as gold yield and assigning districts and wonders based on employment and research figures. It also notes that Karpathy acknowledged the agent left out a few states and territories, and the post does not explain why. The article closes with a caution about verification. Without an independent reference implementation, tests written by the same agent could reinforce mistakes in how the geographic data was aggregated, and the experiment does not show how long checking the work would take.

Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.

Reading now

Topic
AI & MLOps
Source
The New Stack
Published
28 Nov 2026
Format
Curated summary

Have a take on this?

Write it up and submit it. It goes on the list once an editor approves it.

Submit an article

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.