avatar

Karpathy's 45,000-line Claude build shows agentic coding moving from snippets to multi-hour data engineering

Seven hours in Claude Code produced a deployed, playable Civilization-style map of the US from 31 public datasets. The build is a clean test of long-horizon agentic coding, and it surfaced the verification gaps that come with it.

avatar
Surf AI ·

TL;DR:

  • Claude Opus 5.5 put 31 public datasets onto a single 25 km US hex grid and produced a 45,000-line playable app.
  • Seven hours covered end-to-end data engineering, with inference quota rather than engineering hours as the binding cost.
  • Claude skipped a few states and territories, the kind of silent scope loss that needs automated completeness and provenance checks before production.

Karpathy's 45,000-line Claude build shows agentic coding moving from snippets to multi-hour data engineering

TL;DR

Andrej Karpathy ran Claude Opus 5.5 in Claude Code (desktop, "ultracode" mode) for seven hours and got a playable Civilization-style map of the US built from 31 public datasets: 45,000 lines of code, deployed at karpathy.ai/usaciv. The game is not the interesting part. The demo is public evidence that agentic coding can now carry a long-horizon, multi-source data pipeline end to end, with the human reduced to spec-giver and budget-holder.


What Happened

Karpathy asked Claude to populate a Civilization-style game map with real US data. The agent pulled and reconciled 31 sources (Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC among others) onto a single 25 km hex grid covering real elevation, land cover, GDP, jobs, power plants, mines, ports, airports, bases, parks, universities, freight flows and disasters. Then it did the ontology translation that is normally an analyst's job: GDP became Gold yield, industry specialization became city districts (San Jose gets a Campus, Detroit is "Motor city"), workforce composition became citizen stats (1 in 4 San Jose workers in engineering, software or science, against 1 in 14 nationally), and Wonders were assigned by published rules such as park visitor counts and university R&D spend. The output has 19 lenses, a City View for 524 metros, nine advisors plus an "Explorer" that turns any column for 3,100-plus counties into tables and scatter plots tied to the map, and a Claude-generated trailer.

Analysis

The headline number is seven hours of continuous, self-directed execution against messy government data, not 45,000 lines of code. That is a different capability class from function-level code completion. Most of the work is the unglamorous part of data engineering: schema reconciliation across a dozen incompatible federal formats, geospatial joins onto a uniform hex grid, and naming and ontology decisions that require judgment about what a variable means. Claude also made an unforced scoping decision, skipping "a few states and territories." That is the failure mode that keeps autonomous agents out of production data work: silent, plausible-looking scope reduction that only surfaces on inspection.

The result advantages Anthropic disproportionately. Karpathy is documenting Claude Code as an agent runtime for long-horizon knowledge work rather than a chat assistant, and he did it with named product settings (Opus 5.5, medium reasoning, ultracode) that read as a de facto endorsement of the premium tier's economics. His closing line, that half his weekly quota was gone, is the more commercially important datapoint: the binding constraint on this class of work is inference budget, not engineering hours, which is the pricing regime Anthropic, OpenAI and Google are all steering toward.

The competitive read is that the moat in coding agents is shifting from model quality to harness quality and context durability, meaning the ability to hold a 31-source spec coherent for seven hours without drift. That is a direct threat to bespoke internal tooling and lightweight BI and dashboard vendors, because one analyst with a Claude subscription just produced what would otherwise be a multi-week contract engagement. It is also a live argument in the open-versus-closed debate: the workload depends on frontier-model reliability over long horizons, the weakest point of smaller open weights.

What it does not establish is verifiability. A Civilization reskin tolerates approximate reconciliation. A regulatory filing, a supply-chain model or an investment memo does not. The decisive open question is whether the same seven-hour loop can be paired with automated provenance and completeness checks that catch the skipped-states class of error. That, not raw code volume, determines when this pattern reaches production.

Impact Assessment

  • Significance: Medium. A viral demo rather than a product release, but an unusually clean and reproducible benchmark of long-horizon agentic coding on real data.
  • Categories: Technical Insight, Developer Tools, Industry Trend

Bottom line. This is the reference anecdote for agents as data engineers: the capability is real and already deployed, the cost model is inference-quota-bound, and the missing piece is verification. Watch for provenance and validation tooling layered onto coding agents, since that is the unlock for enterprise data work.

Surf provides information only and does not constitute investment advice. All investment decisions are made at your own risk. Please conduct your own research (DYOR).