TL;DR
No matter how cheap AI makes software, that software still has to interact with other people’s software, and traditional APIs are grotesquely inflexible.
The only way we can obtain the dividends that AI and cheap software promise is to thoroughly redesign APIs. The answer lies in the relational model: new APIs must be relational and programmable.
Pencils Down
The originator of Ruby on Rails, David Heinemeier Hansson (DHH), gave a provocative presentation at RubyConf in 2026 in which he explained that he no longer writes Ruby code, or indeed much code at all. Instead, he has AI agents write mostly Rust code. Although he abhors Rust, agents can write it for him and it runs fast.
Others are writing about similar changes to the software landscape. Shopify is abandoning React Native in favour of separate native apps — it is just as easy to write multiple versions of everything now, so that each version can be best integrated with its native platform.
These are just a couple of the symptoms of a new regime: the cost of code is being driven down to zero. Which raises the question: what becomes expensive when code becomes cheap?
Amdahl’s Law and the New Bottlenecks
Amdahl’s Law says that if the cost of doing some large part of a project is massively reduced, the remaining costs will start to dominate.
If a project is 90% writing code and 10% integration, when the code becomes 90 times cheaper to write, the project isn’t 90 times cheaper, but only nine times cheaper. Integration, previously just 10% of the cost, comes to account for 90%.
When software was expensive to write, applications were built for relatively predictable purposes, and API designers could narrowly customise simple APIs for the things those applications need.
But when software becomes free, the number and variety of demands on APIs explode, and the inflexibility of traditional API designs becomes a new, dominant cost.
Coordinated Software
I’ll call software that depends on cooperation between independently controlled systems coordinated software.
Unlike an ordinary distributed system, coordinated software cannot usually be redesigned or optimised as a whole. Each participating organisation controls its own systems, and the capabilities of the whole are limited by the interfaces between them. AI actions or software systems that must act across those boundaries are limited by the social, economic and political considerations that always dominate the design of social systems.
The Cost of the Boundary
I’ve recently been shopping for a house. I had certain criteria for the house I was looking for, which I could in principle state in a way that a computer could employ to show me only houses I’d be interested in.
Could I express these preferences on the websites that list houses for sale? Only very roughly. I was only interested in certain suburbs, but I had to see listings for the entire city. I wanted a house with three or more bedrooms and two living areas, or four bedrooms and one living area, but the best I could do was look at all houses with three or more bedrooms. And so on.
A custom application, written by AI, would be able to implement my precise preferences easily. Or I could just have an agent filter things for me. But the custom application or agent would still have to get the information through whatever limited interfaces the property website provides. It would be ignoring much of the information on that website, but the website would be serving it up all the same, they would be paying to run pointless infrastructure, and I would have to pay for my agent to wade through all that noise.
GraphQL Is a Half-Answer
GraphQL is an important step in the right direction. It lets API users choose the shape of the data they retrieve, but gives them relatively little general-purpose control over the computation that produces it.
Rather than this:
GET /customers/123
GET /customers/123/orders
GET /orders/456/itemsGraphQL lets us do this:
query {
customer(id: "123") {
name
orders {
id
items {
product {
name
price
}
}
}
}
}That’s a real improvement. The client describes a nested selection of information and can often retrieve it in one request.
But:
Find customers whose total purchases exceeded $1,000 last year, who haven’t ordered in the last 90 days, and rank them by the profitability of their previous purchases.
In SQL, assuming an appropriate schema, this is an ordinary relational query involving joins, filters, aggregation and ordering. In GraphQL, the client cannot generally construct this computation from the standard language’s primitives.
A GraphQL API can certainly provide sophisticated filtering, aggregation and other operations. But the API designer must expose those capabilities, often through schema-specific conventions. The generality isn’t supplied by GraphQL itself. GraphQL largely just lets you choose the shape of the answer.
Perhaps more importantly, the boundaries between institutional APIs remain. GraphQL federation can even combine data from multiple cooperating services, but it doesn’t eliminate the underlying problem: independently controlled systems must still agree on what they expose and how their data can be combined.
Databases Show Us the Way
Internal software within an organisation used to have similar problems. Then the relational database gave developers a general, flexible way to store, retrieve and compute with all of the organisation’s data.
A database doesn’t need its owners to anticipate every useful question. It exposes relations and a language for composing operations over them. A small number of general relational operations can be combined into questions nobody anticipated when the database was designed. Unlike a collection of predefined endpoints, the range of possible queries isn’t determined by the imagination of the API designer.
And the database can automatically optimise the resulting computation. This is super important.
A relational query describes what computation is wanted without prescribing how to perform it. A query optimiser can rearrange operations, push filters closer to the data, and choose a strategy based on all sorts of costs involved. We have decades of engineering experience doing this.
Imagine applying the same principles to the spaces between software systems. If the interfaces involved exposed relational capabilities, a query involving several independently controlled services could potentially be optimised across those boundaries. The system could reason about where to perform computations, what information to transfer, and how to minimise the costs of doing so.
There are complications, of course. Different organisations have different interests, permissions, costs and levels of trust. But these are constraints that a sufficiently sophisticated execution framework could take into account. We don’t really have such systems, but there is substantial academic work on the theory of how to build them.
It is important to note that a relational API doesn’t require directly exposing a database’s physical tables. It can expose carefully designed logical relations with permissions and implementation details hidden. The relational model is a way of describing and composing computations, not a requirement to expose the internals of a database.
Frest
I have been writing about how to build relational and programmable APIs and what the consequences are at this Substack. (Start with What Is FREST?). It’s out of scope for this discussion, but once you accept this idea, and you start to push on it, a bunch of novel ideas about software architectures start falling out.
It’s interesting to reflect on where we are. I originally started developing FREST out of the conviction that the relational model is radically underused, that we do far too little to make computation accessible to non-programmers, and that relational and functional programming are the most intuitive computational paradigms for people who aren’t programmers.
Those motivations remain. But AI has changed the landscape. The original goals have become both more achievable and more important, while an entirely new problem has come into focus: making the flexibility of cheap, AI-generated software extend across the boundaries between independently controlled systems. It’s to make that flexibility extend across the boundaries between programs.
Conclusion
We spent decades making it easier to write software. AI may finally have made it cheap enough that we can see what was expensive all along: getting coordinated software to cooperate efficiently and effectively. It’s time to do something about that.



The bedroom and living-area conditions are easy to combine in code, yet the property site’s filters still limit what can be asked. A composable query could move that filtering closer to the data and spare the client a lot of irrelevant listings.