Karpathy Uses Claude Code to Build a Civilization-Style US Map From Public Data
The AI researcher reports a seven-hour build that illustrates both the promise and limits of AI coding agents

On November 26, AI researcher Andrej Karpathy introduced usaciv, a browser-based representation of the United States inspired by the strategy game Civilization. According to CivFanatics’ coverage of his announcement, Karpathy used Claude Opus 5.5 through Claude Code to assemble the project in seven hours, producing approximately 45,000 lines of code. The experiment illustrates a growing use for coding agents: building custom analytical software whose value comes from integrating existing information rather than generating new information.
The application places demographic, economic, geographic and infrastructure information in a common visual environment. Its creator reports integrating 31 public data sources, including federal statistical and scientific agencies, into a grid of hexagonal cells at a nominal 25-kilometer scale. Independent coverage of the interface provides a way to inspect the interface, although neither the development time nor the complete statistical accuracy of the resulting dataset has been independently established.
The distinction is important: usaciv is currently a geographic exploration application, not a completed Civilization game. Its significance lies in the compression of several different engineering disciplines into one agent-assisted development workflow.
Claude Code Turns Geospatial Data Integration Into an Application
A conventional map can show where a city is located. Karpathy's project attempts to describe what that city produces, which industries distinguish it from other regions, and how it connects to the surrounding economy. The interface uses familiar strategy-game conventions to make those relationships accessible without requiring users to learn a geographic information system.
Karpathy identifies the Census Bureau, Bureau of Economic Analysis, Bureau of Labor Statistics, Energy Information Administration and several other government agencies among the underlying sources. Together, these institutions publish information ranging from economic output and employment to terrain, energy facilities and natural hazards. The project also incorporates transportation, universities and national parks.
Bringing those categories together is a more demanding problem than drawing a map. Economic records may be organized by counties or metropolitan areas, while transportation infrastructure can be represented as coordinates and networks. Terrain and land cover may arrive as raster datasets containing values for individual geographic pixels. An application must reconcile these representations before combining them in a single display.
A common hexagonal grid provides a useful intermediate representation. Instead of designing separate visualization logic around every source geography, developers can associate heterogeneous measurements with shared spatial cells. Hexagons also provide six neighboring directions, which makes them attractive for strategy-game interfaces and certain spatial analyses.
The grid does not automatically make the source statistics more granular, however. If an agency publishes only county-level GDP, assigning that value to smaller map cells requires a geographic allocation rule. A uniform allocation across an area may obscure economic concentration; allocating according to population may misrepresent industrial facilities located away from residential neighborhoods.
An implementation therefore needs to distinguish actual observations from derived spatial estimates. Ideally, a reader should be able to trace the displayed value to its original geographic unit, reference year, measurement definition and transformation. Examining the implementation would be a starting point for evaluating those decisions, not proof that every transformation is correct.
GDP Becomes a Game Resource, but the Economic Meaning Remains Important
Karpathy's demonstration maps economic output to the gold resource familiar to Civilization players. Cities also receive visual distinctions associated with their economic specializations, while workforce composition informs their representations of citizens. He points to Detroit's automotive industry and San Jose's concentration of technical occupations as examples.
One established statistical method for identifying such specializations is the location quotient. The Bureau of Economic Analysis and Bureau of Labor Statistics describe it as a comparison between an industry's share of a local economy and its share of a larger reference economy. A location quotient of two means that an industry's local share is twice the corresponding reference share.
For example, if manufacturing accounts for 20% of employment in a region and 10% nationally, the employment-based location quotient is two. That indicates relative concentration, not necessarily high wages, strong productivity or even a large absolute number of manufacturing jobs. A small region can have an unusually concentrated industry while contributing little to total national output.
The same distinction applies to the project's game-inspired resource categories. GDP measures economic production rather than government revenue or accumulated wealth. Employment in agriculture is not a measure of agricultural output, and the number of researchers is not equivalent to scientific discoveries. Transforming statistical measures into game symbols can make them approachable, but it can also hide assumptions about what those symbols represent.
This is where domain expertise remains essential. An agent can implement a formula, generate a legend and make a chart visually compelling. Establishing that the formula answers the intended economic question requires a separate judgment about definitions and interpretation.
A Data Explorer Rather Than a Finished Strategy Simulation
According to Karpathy, usaciv includes 19 selectable data views, dedicated information for 524 metropolitan areas and an explorer covering more than 3,100 counties. It also uses criteria drawn from real-world measures to identify landmarks, including national park visitation and university research spending.
Those features shift the application's purpose from passive map viewing toward exploratory data analysis. A county-level scatter plot, for instance, can help a reader examine how two economic or demographic measures vary together and locate unusual observations on the map. A map layer can reveal spatial patterns that are difficult to see in a conventional spreadsheet.
But exploration should not be mistaken for causal inference. A geographic association between household income and educational attainment does not establish that one variable alone produced the other. Differences in population density, housing costs, industrial composition and regional policy may also matter.
Similarly, a strategy simulation would need explicit rules for how regions evolve. It would require models of production, trade, population change, resource constraints and the effects of player decisions. A real-world data snapshot supplies potential initial conditions, but it does not establish those transition rules or validate their predictions.
Karpathy has suggested that the project could eventually become a game. He also acknowledged that some states and territories were omitted. Those qualifications make it inappropriate to describe the current release as a complete simulation of the country.
Agentic Engineering Moves Beyond Code Completion
Karpathy reports using Claude Code with Opus 5.5 and says the agent also produced a promotional trailer. The project does not provide a controlled comparison of competing models or configurations.
The broader mechanism differs from conventional code completion. A coding assistant may predict a few lines in an editor; an agent can work through a sequence of operations involving files, commands, tool outputs and subsequent revisions. Anthropic's Claude Code engineering guidance describes workflows that include investigating repositories, planning changes, running tests and iterating on results.
In a data application, this feedback loop can connect implementation directly to observed failures. A parser can encounter a changed column name, return an exception and be revised. A geographic join can produce an unexpected number of unmatched records, prompting further investigation. A browser interface can be adjusted after its output is inspected.
This workflow can reduce the coordination overhead of switching among development tools and technical specialties. It does not eliminate the need for an acceptance criterion. An agent may fix an exception by discarding incompatible rows, leaving the program executable while making the dataset less representative. A useful test should verify the intended result, not merely that execution succeeds.
Long-running development also creates an accountability problem. If an agent generates thousands of lines across multiple components, reviewing every change manually may become more expensive than reviewing a smaller implementation. Architectural boundaries, reproducible build steps and targeted automated checks consequently become more valuable as generation accelerates.
Two Earlier Video Projects Reveal Different Sources of Development Leverage
The map follows two November experiments in personalized video discovery. HackerTube, introduced around the beginning of November, uses recommendations extracted from Hacker News discussions to present a curated alternative to browsing YouTube's default recommendation interface. Karpathy described the project as an agent-assisted effort to identify videos repeatedly recommended in Hacker News discussions.
The site's interface includes a long-video category and personal browsing features. Its design illustrates a distinction between building a new content platform and constructing a new interface over an existing content ecosystem. HackerTube relies on videos that already exist; its engineering value comes from selection and presentation.
TristanTube took a different route. On November 1, Tristan Hume published an updated ranking of YouTube channels, divided into five tiers. Karpathy subsequently used the list as the basis for a video browser.
The resulting application provides search, discovery and a television-style viewing mode. Its public interface is available on Karpathy’s website.
These three projects demonstrate different ways of exploiting existing digital infrastructure. HackerTube relies on community judgments embedded in historical discussions. TristanTube begins with a human-curated ranking. Usaciv begins with government datasets and reorganizes them into a custom analytical experience.
The common denominator is not that an AI system generated millions of new facts. It is that an agent could potentially transform an existing information resource into a purpose-built interface at a much lower initial development cost. This creates opportunities for specialized tools that might previously have had too small an audience to justify dedicated software investment.
The Economics of Custom Software Include More Than Generation Time
For a small organization, the practical implication is a potential change in which projects deserve experimentation. A research group might prototype an interface for a public dataset; a local business might build a specialized internal dashboard; an educator might turn a statistical archive into an interactive lesson. These are prospective applications, not measured adoption outcomes from usaciv.
The economic advantage depends on the total cost of producing a useful and maintainable system. Initial agent execution is only one component. Data acquisition, validation, hosting, dependency updates, accessibility, security review and subsequent modifications also contribute to the cost of ownership.
Karpathy told readers that roughly half of his weekly Claude allowance remained, as reported by FourWeekMBA. That does not reveal the project’s token consumption or standalone cost.
Developers comparing subscription-based coding agents with usage-metered services should therefore measure completed work rather than assume a fixed cost from an elapsed development time. A seven-hour session can contain different amounts of inference, parallel execution, tool activity and human supervision. Without an execution trace and a billing record, those differences cannot be quantified.
The same caution applies to lines of code. A large codebase may indicate that an agent addressed many components, but it may also contain duplicated logic, generated assets or unnecessary abstractions. Smaller implementations can be easier to review and maintain. Useful project metrics include correctness, time to a verified deliverable, maintenance burden and total cost per accepted feature.
Long-Horizon Capability Is Not the Same as Seven-Hour Reliability
Independent AI evaluations offer a framework for understanding the distinction between an impressive demonstration and dependable agent performance. METR's task-completion time horizon estimates the duration of tasks, measured by human expert completion time, that agents can solve at a specified probability. It is not a direct measurement of how long an agent can remain active.
METR's November 20 capability update also discusses the increasing difficulty of measuring frontier systems and the importance of task costs and feedback. Its findings suggest that agents' ability to execute long sequences of operations should be evaluated separately from their judgment in situations where empirical feedback is limited.
Usaciv is an informative case because a web application provides multiple forms of feedback: whether files parse, whether the application loads and whether the visualization resembles the requested design. Nevertheless, these signals do not necessarily reveal incorrect statistical assumptions. A plausible-looking map can pass a visual inspection while still misrepresenting the underlying data.
Earlier productivity research from METR also found that AI assistance did not invariably speed up experienced developers working on familiar repositories. The study used early-2025 systems and cannot establish how Opus 5.5 performs in November 2026, but it demonstrates why development speed should be evaluated under defined conditions rather than generalized from anecdotes.
The relevant distinction for competing coding agents is therefore not simply which system can produce the most code. It is which model-and-tool combination can finish a specified task with the highest acceptable quality, reasonable resource consumption and the fewest costly human interventions. Usaciv provides no head-to-head test against other coding agents.
Professional Agentic Engineering Requires Independent Verification
Professional agentic engineering distinguishes rapid code generation from the broader obligation to deliver software that meets an explicit quality standard. Current Claude Code guidance likewise emphasizes verifiable checks and enforceable constraints.
For a project like usaciv, preserving that quality bar would mean validating a sample of mapped values against agency publications, testing that geographic aggregation conserves totals where the underlying measures are additive, and documenting which release of each dataset was used. It would also mean checking whether missing records appear as unavailable rather than silently becoming zeros.
Security is another part of the transition. Coding agents that download files, run commands and deploy applications operate across trust boundaries. Anthropic's documentation on Claude Code permissions describes efforts to balance autonomy with restrictions on potentially risky actions.
A production data pipeline should treat downloaded files and external text as untrusted inputs, restrict access to credentials, and distinguish read-only data acquisition from operations capable of changing a deployment. The more independently an agent acts, the more important it becomes to establish those boundaries before execution.
These practices do not undermine the value of rapid prototyping. They provide a way to convert it into a repeatable engineering process. A prototype can be useful even if it never becomes a product; a public analytical service intended to inform consequential decisions requires a substantially stronger assurance process.
The next meaningful milestone for projects such as usaciv is not a larger code count or a more elaborate trailer. It is whether another developer can reproduce the build, trace a displayed statistic to its source, update the underlying data and extend the system without introducing silent regressions. If coding agents can reduce that lifecycle cost as effectively as they appear to reduce the cost of an initial prototype, the economics of specialized software could change well beyond weekend experiments.



