I built an interactive map of Poland, inspired by a single post from Andrej Karpathy
Since childhood I have been able to sit for hours over maps, world atlases and books on the wonders of the world. When Andrej Karpathy showed a hexagonal map of the United States inspired by Civilization, I built a similar atlas of Poland from 52 public sources. How it came together with AI agents and what it showed about the powiats.
Since I was a child I have been able to sit for hours over maps, leafing through world atlases and books on the wonders of the world, and although I started out learning geography on its own, I was soon drawn to what lies beneath the borders. So I read snippets of economic geography to understand the history of particular places, their economy and their budget.
The Civilization series met that same curiosity, and I spent hundreds of hours in it watching a world laid out in tiles where geography translates directly into economy and resources. As an architect by training, I look at space in a similar way, as a system of interconnected dependencies.
From Karpathy's map to a Polish board
On Thursday 26 November 2026, Andrej Karpathy put up a short post on X that matched this way of thinking exactly. He showed a map of the United States inspired by the Civilization series, a hexagonal view of the country filled with data from 31 public sources that Claude had fetched and processed, and after seven hours and 45,000 lines of code he summed it all up with a brief "it works :)". That is how usaciv came about, an open data atlas under the MIT licence where GDP plays the part of gold, cities carry banners, and national parks and universities appear as wonders.
I spent well over an hour on that map, and a day later Karpathy added that the idea of a "digital twin" not of a factory, but of an entire country, had long stayed with him. Within a few days, maps of other countries began springing up from his code. I thought of Poland, because Statistics Poland (GUS), the Head Office of Geodesy and Cartography (GUGiK), the Ministry of Finance and the national roads authority (GDDKiA) publish similar registers, except that in everyday use it is hard to browse them freely. In the government's Geoportal, Poland's national map portal, I missed a friendly way to look through this data, so with the help of AI I managed to build Hexa Poland, an interactive map of Poland inspired by what Karpathy did, which fills that gap.
One night, a Saturday walk and the discipline of sources
I started on Friday 27 November at 23:10, and by 5:45 on Saturday the map was ready to deploy, so the first working version took 6 hours and 35 minutes. The whole thing was built with a team of AI agents inside an orchestration system. One lead agent, Claude in T3 Code, planned the stages, assigned tasks and collected the results, larger models ran individual parts, smaller ones wrote the code, and before any changes were pushed everything was checked by a fresh reviewer with no knowledge of the earlier work. Several models worked in this loop, including Opus, Gemini Neon, Muse Wonder and the AI Council, a panel of models from different companies evaluating successive versions. I set the direction and made the decisions myself, and on Saturday 28 November I went out for a walk and steered the work from my phone, through the T3 Code mobile app and Grok Bot, which along the way bought the domain and configured it.
How I worked with the agents, showing me on my phone, Grok Bot, Claude in T3 Code as the orchestrator, the agent teams and a council of models from three companies.
Then came three days of fixes, from 28 to 30 November, because keeping every number on screen from being made up is harder than building the app itself. From the start there was a simple rule that every value reaches the map from a publisher's file and nothing comes from a model's memory, missing data stays blank, and any estimate carries the "≈" sign. On the very first night the agents broke that rule twice, filling in a list of powiat (county) seats and a directory of automotive plants from memory, so the seats were replaced by the official GUS register and the plants were dropped from the map.
On the final day two models acting as reviewers rated the desktop view 7 out of 10, and one of them caught an error in 45 city-ring powiats where the panel assigned a wrong seat. For powiat krakowski, it listed Skawina, even though Skawina is its largest town and the seat lies in Kraków, which does not belong to that powiat. After changing the label to "largest town: Skawina" and making further fixes, the next reviewer gave it 8.6 out of 10, which shows clearly that what determines the map's reliability is the control built around the models.
The panel for powiat krakowski after the fix, reading 'largest town: Skawina' instead of the wrong seat.
What fits on this board
Poland lies here on a grid of 4,803 hexagonal tiles of 65 km² each, with every side measuring 5 km. On that grid stand 380 powiats and cities with powiat status, 2,479 gminas (municipalities) and 19 lenses, and every number leads back to one of 52 public sources credited in the Almanac, beside which the Accuracy report compares the map's output with official figures across nine tests. Beyond the statistical layers, the map also holds the capacities of 155 power plants and farms (coal, gas, hydro, pumped-storage, wind and solar) as well as sports clubs in 241 powiats, with their league, stadium or arena and, for some of them, their crest. On top of that, 324 powiats show the largest corporate income tax (CIT) payers, and 336 powiats show the largest companies in each industry headquartered there, 4,116 companies in total. Going on to name rivers, lakes, roads, 60 wonders and budgets quickly turns into a dry list, so the graphic shows it all, in both Polish and English.
Hexa Poland in numbers, showing the public sources, the tile grid and what can be seen on it.
Stories written in the powiats
Things get most interesting when you stop looking at the code and start reading Poland powiat by powiat, like an old world atlas. In the Income lens, based on GUS median gross earnings by place of residence for May 2026 (the national median is PLN 7,552), Warsaw (PLN 10,007) and Kraków (PLN 9,062) lead the way, yet third place breaks any simple split between big cities and the rest of the country. With PLN 9,047 it goes to powiat lubiński, neighbouring powiat polkowicki is eighth (PLN 8,855), and powiat kępiński closes the table (PLN 6,095). The powiat card for Lubin hints at where that result comes from, because in the copper basin mining is the second-largest industry by number of employed residents (5,592 people, after trade), and the powiat itself leads Poland in per capita CIT revenue in local government budgets (PLN 3,181). In fact, the top of the CIT ranking draws the country's industrial map even more clearly, because behind Lubin come Jastrzębie-Zdrój with hard coal (PLN 2,963) and powiat bełchatowski with brown coal and its power plant (PLN 2,344), both ahead of Warsaw in fourth (PLN 2,327).
The Income lens, showing median gross earnings by place of residence from GUS data for May 2026.
Other layers show just as wide a spread. In GUS registered unemployment figures for October 2026, powiat poznański stands at 1.4% (Warsaw and Poznań at 1.6% each), whereas powiat szydłowiecki reaches 22.0%, brzozowski 19.0% and leski 17.7%. On the 2025 housing market, a square metre in Sopot costs PLN 19,384, in powiat tatrzański PLN 16,116 and in Warsaw PLN 15,449, while in powiat górowski it is PLN 3,080, more than six times less than in Sopot. Add to that the population shift between 2021 and 2025, when Poland lost 1.5% of its residents, powiat hrubieszowski 6.1%, hajnowski 6.0% and Przemyśl 5.6%, while the rings around large cities grew, led by powiat wrocławski (up 8.8%), gdański (up 5.3%) and poznański (up 5.2%).
A separate story comes from the Ministry of Finance reports for 2025 on the combined budget revenue of a powiat and its gminas per resident. Behind Sopot at the top of the table (PLN 17,291) sit powiat sejneński (PLN 15,748) and powiat leski (PLN 15,095), ahead of Warsaw in fourth (PLN 14,986). The very bottom of the table is filled by four city-ring powiats, namely tarnowski (PLN 8,862), lubelski (PLN 9,020), rybnicki (PLN 9,039) and opolski (PLN 9,205). At first glance that looks surprising, yet pairing those budgets with GUS population figures from 30 June 2026 reveals a simple logic, because a smaller powiat divides its own budget and those of its gminas across fewer heads. You can see it in the numbers themselves once you compare the two ends of the scale. Among the 30 smallest land powiats, 24 have per capita revenue above the median for all 314 land powiats (PLN 11,429), and 16 rank in the top 100 of all 380 powiats, with the country's smallest, powiat sejneński (18,117 residents), in second place. Among the 30 largest land powiats, only 3 sit above the median and 1 is in the top 100, with the median for the 30 smallest standing at PLN 12,293 per resident compared with PLN 10,222 for the 30 largest.
That rule is not ironclad, however, because the small powiat gołdapski (24,285 residents) ranks only 267th out of 380, with revenue of PLN 10,896 per resident. By contrast, the similarly sized powiat leski (24,911 residents) is third in the country for budget revenue per person, even though in CIT receipts it sits 378th out of 380 (PLN 26 per resident) and has the third-highest unemployment in Poland (17.7%). A small powiat like that, with a weak corporate base, shows clearly that its high per capita budget figure does not come from corporate tax.
Check your powiat
There are many more such comparisons on the board, so the best thing to do is open hexapoland.app and play around with the map yourself. Find your powiat, switch through a few lenses and compare it with its neighbours, because even in a place you know well a single pairing of wages, budget and demographics can surprise you, and you can download and share the finished powiat card right away. If you would rather see the map in motion first, you will find a few short clips on the project page in my portfolio.
A powiat card ready to download and share, using powiat lubiński, third in the country for median wages, as an example.
What else could go on the map
The map will keep growing as I go, so if you have an idea for what to add to it, whether new data, new themes or anything else, do share it, because I want us to build it together. When suggesting new data, one simple rule helps, namely that every new layer needs a public source with a file, since every number on the map comes from a publisher's file.
The project's code is open under the MIT licence, based on Karpathy's usaciv and available at github.com/Bochyn/Hexa-Poland, where you can also post ideas as issues in the repository.
You can send your suggestion, or a number from your powiat that surprised you, through the contact form. I will be glad to talk it over, and together we can add the next layers to this map.