All postsSHORT3 min read
Karpathy Says Claude Wrote 45K Lines in 7 Hours. We Counted
Karpathy says usaciv took 7 hours and 45K lines. We counted 43,748 lines in his public source zip. The map, the data and the catch.
Karpathy says Claude wrote 45K lines in 7 hours. We downloaded his source and counted. The result was 43,748 lines. Close enough to make me want to look at how the map works.
What Karpathy built
Andrej Karpathy posted it on X on November 25, 2026 (US Eastern; Nov 26 UTC). He says he asked Claude to fill a Civilization-style game map with real US data.
He says he built it with the Claude Code desktop app, Opus 5.5 on medium, with ultracode turned on. He says it took 7 hours and 45K lines of code.
The project is usaciv. Its README hero image shows the lower 48 drawn as a hex strategy map with city banners.
Our count of his source zip
We counted 43,748 lines of code (Python, JavaScript, CSS, HTML) in his public source zip.
We read the archive with Python's zipfile, never extracted or ran it. Our November 27 count covers 161 code files out of 189 files in the archive:
| Language | Lines |
|---|---|
| JavaScript | 28,255 |
| Python | 13,902 |
| CSS | 1,381 |
| HTML | 210 |
| Total | 43,748 |
That checks the amount of code in the download. The 7 hours remains Karpathy's report.
How the data becomes a game map
31 public data sources, none needs an API key (Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC among them).
Everything is reconciled onto one 25 km hex grid. Gold is GDP (from BEA); Food, Production, Science and Culture are job counts by industry.
His post says San Jose gets a Campus district and Detroit is "Motor city". He says 1 in 4 San Jose workers are engineers, coders or scientists, against 1 in 14 nationally.
The README lists 52 wonders, each chosen by a published rule (most-visited national parks, R1 universities with the most R&D, landmarks).
His post lists 19 lenses, a City View for 524 metros, nine advisors plus an Explorer; the Explorer turns any column for 3,100+ counties into a table and scatter plot.
How it's built
It's a static site: plain ES modules and Canvas 2D, no framework, no npm, no build step; the data pipeline is Python standard library only.
The source is MIT licensed and downloadable from the app's help ("?").
He says Claude also made a 30-second trailer; the README documents a trailer maker that renders a 30-second 1080p MP4 in the browser.
The catch
He says he has only half of his weekly Claude quota left.
Claude skipped a few states and territories (his words: "Claude decided to skip a few states and territories sry"). The README hero image's alt text says "The lower 48".
The README calls it "A visualizer (not a game)". Karpathy: "Possibly it can be expanded or built into a game."
README "Reading the map honestly": positions are schematic (each hex ~1,600 km²); missing data stays missing (null, never 0).
Those caveats matter when you read a city banner or compare places on the map. Keep the source and the missing-data markers with the figures.
How I'd turn this into a service (my opinion, no income guaranteed)
Build the same kind of public-data map for one city or county: a chamber of commerce, an economic development office, a real estate team.
I'd pick one city or county, learn from the MIT code and build a map from public data. The sources need no API keys. Then I'd pitch that specific map to a chamber of commerce, an economic development office or a real estate team.
I'd keep the source labels and schematic-position caveat visible, and preserve missing values. That's the offer I'd explore. No income guaranteed.
Daily email
Get each breakdown in your inbox.
One email each evening, right after the Short goes live: the AI tool it covers, the full write-up with sources, and how to get paid for it. Free, and you can unsubscribe anytime.