Comparative Advantage: The AI Economy Needs You
Sooner or later AI will be better than me at everything I do for a living. What should I do then? Economics answered that question two hundred years ago.
I first used AI to write real code in 2024, with Cursor and then with tool-based agents like Claude Code, gemini-cli and kubectl-ai. AI was a powerful tool that needed careful handling, but if you were skilled enough you could use it to produce working code much faster than before. Because I had to use the tool carefully, there was a skill I could acquire that made the whole setup more valuable, and thus I was valuable.
Around the beginning of 2026, a new generation of models and harnesses emerged, and AI changed from a dangerous power-tool to something that anyone could use, starting with only a vague description of what they wanted to achieve. I give the AI a direction and iterate on multiple revisions of multiple PRs, with tests to stop things going off the rails.1 This process works really well; I can ship at least 10x faster.
So everything is amazing, why is nobody happy? The hard bit of creating software is now figuring out what to build, not the building. As someone who has always enjoyed the outcome more than the craft, this suits my temperament, but not everyone feels the same way. Some people do woodwork because they enjoy the sanding, some people like wooden furniture. And it is clear where this is going: there will come a model that is better than me at what I am doing today.
The answer from economics is David Ricardo's theory of comparative advantage, dating back to 1817! Imagine two countries and two goods. If both countries can produce both goods, each has to decide what to make itself and what to buy from the other. Ricardo showed that total output is highest when each country makes only the good it is comparatively better at producing. The shocking result is that this holds even if one country is better at producing both goods. The more efficient country should still buy from the less efficient one.
That is easier to believe with numbers. Call the two countries Human Land and AI Land2: me, and my agents. Suppose that in a month I can complete 10 design tasks or 20 coding tasks, and that my agents can complete 15 design tasks or 60 coding tasks. Design is the harder job for both of us, and the agents are better than me at both jobs.
| Design tasks per month | Coding tasks per month | |
|---|---|---|
| Me | 10 | 20 |
| My agents | 15 | 60 |
Suppose we each do a bit of everything: I split my month evenly and finish 5 design tasks and 10 coding tasks, and the agents spend a third of their time on 5 design tasks and the rest on 40 coding tasks. Between us that is 10 design tasks and 50 coding tasks. Now suppose instead that I only design, and the agents only code: we finish the same 10 design tasks, but 60 coding tasks. Same me, same agents, and 10 more coding tasks done.
The reason is opportunity cost. Every design task costs the agents four coding tasks, while it costs me only two. Design is comparatively cheap for me and expensive for them, so I should do it - even though they are better at design.
The great thing here is that I don't need to argue that I am a better coder than AI. I don't even need to argue that I am a better architect. I think my comparative advantage is in architecture and the AI's is in coding, not least because it can type so much faster. But even if you disagree - if you found Mavis Beacon simply too easy - only the division of the tasks changes. You should still work with AI agents, and you should still work on the task where your comparative advantage is greatest.
Comparative advantage is hotly debated when applied to real countries, because each country cares a lot about its own share of the gains, not just about how large the total is. That is not the case for AI. The agents don't keep their share: everything that Human Land and AI Land produce ends up with people, so here it really is the total that matters.
This is not grounds for complacency. As a formalism it helps me as much to think about what it is not saying.
It doesn't give me permission to work on whatever I like. If I code when I should be designing, we are back to 50 coding tasks instead of 60.
It doesn't tell me that the gain is large. As AI gets cheaper and faster, my contribution becomes a smaller part of the whole, so I need to find the tasks where the ratio is most in my favor and focus on those.
It assumes that people want what I produce. Ricardo's two goods both have demand; when the demand for horse-drawn transport collapsed, no theory of trade was going to save the horse. Make something people want.
Finally, it assumes that there is not a lot of friction from splitting the work up. I still need to figure out how to work well with AI.3
Nonetheless, this gives me great comfort about my role and our role as humans. Even if we are the less efficient producer at everything we do, the world still gets more done with us than without us. This isn't the claim that you will do better than someone who doesn't use AI (though you will). It is a claim about the whole economy: the AI economy needs you.
The roles will keep shifting: the line between what I do and what the agents do will not stay where it is today. But the question was never whether AI is better than me. It is what I am comparatively best at, and there is always an answer to that.
-
Some people instead add precision by skillfully creating detailed prompts and specs. I think the Bitter Lesson applies to software too: tomorrow's models obsolete all your hard craft. Iterating is also closer to the "agile" approach that we usually follow in both professional and open-source development, so it should not be surprising that it works really well with AI. ↩︎
-
Treating AI as a country only works if its capacity is limited, the way a country's workforce is. I think it is: think of AI Land as every token in the world, a supply that is fixed on any given day, so that a token spent on design is a token not spent on code. AI Land is growing faster than Human Land, but both are a fixed quantity each day. ↩︎
-
In the comparative advantage framing working well with AI means swimlanes: the AI does one job and I do another. So if I am having the AI write the code, I should not take over on "the hardest bits" of the code even if it makes me feel better. That is hard to stick to! ↩︎