Home ›
@ryanallis10
Ryan AllisARR verified on AI LoungeFounder▲793
CEO, AI Lounge & SaasRise
3h ago · Link · Agents · Austin

How Did Claude Write 45,000 Lines of Code in 7 Hours?

How did Claude write 45,000 lines of code in 7 hours without breaking them?

Andrej Karpathy, one of the founding members of OpenAI, asked Claude to fill a Civilization-style strategy map with real data about the United States. His post passed 2 million views in about a day.

What's in it, per his post and the live map:

  • 31 public data sources, from the Census Bureau to the FAA, reconciled onto one 25 km hex grid
  • Gold is GDP: the New York metro shows $2.44 trillion a year
  • 19 lenses that recolor every county by income, degrees or population
  • A City View for 524 metros: in San Jose, 1 in 4 workers are engineers, coders or scientists, against 1 in 14 nationally
  • A 30 second trailer Claude made itself, frame by frame in the browser, with the music written in code

He built it in Claude Code's desktop app with Opus 5.5 on medium effort and ultracode on, and says he has half his weekly Claude allowance left.

So how did 45,000 lines hold together? The source code he posted shows three habits:

  1. One small program per data source, each turning a publisher's files into tidy data
  2. A written contract for the shape of every data file, changed there first
  3. A checker that grades every line PASS, NOTE, WARN or FAIL and stops on any FAIL, plus 176 automatic tests

The takeaway for your team: before you hand Claude a big job, have it write the checks first. Then let it run.

Comment TOOLS and I'll send you the top 50 AI tools builders actually use.

Footage: Andrej Karpathy (@karpathy), his trailer and his live map at karpathy.ai/usaciv.

#AI #ClaudeCode #AIagents

Videos

Comments

No comments yet
Start the conversation.
Log in to join the thread.