Coding agents didn't kill SaaS. They drained one moat.
Many posts say SaaS is dead. I think they have the cause right and the conclusion wrong. Coding agents have made software cheap to copy, so a product that is only code on top of open standards is in trouble. But code was never the only thing that kept competitors out. This article shows with numbers why one moat is gone, which four are left, and what to work on first.
The other side has a point
In February 2026 software stocks fell hard enough that Wall Street named it the SaaSpocalypse. The trigger was AI agents that could do work companies used to buy seats for. By the summer Forbes wrote that it may be ending, "but SaaS will never be the same again".
The building side is real too. New apps on Apple's App Store fell by 46% between 2016 and 2024. In 2025 they grew 30%, to nearly 600,000, and Sensor Tower's analyst connects that to "a broader release of agentic coding tools". When more people can build, more people will build a copy of your product.
So if your product is a well-made implementation of open standards, with little knowledge in it that a newcomer couldn't find, you should be worried. A coding agent knows the standards as well as your team does.
The moat that cost kept
Many companies have had a niche to themselves for years. Not because nobody could build a rival, but because nobody could make the money back.
Here is the math with example numbers. Change them to your own niche; the shape stays the same.
- 400 possible customers, each paying €6,000 a year. The whole market is €2.4 million a year.
- Matching the incumbent's product takes a team of six for two years: 12 person-years at €100,000, so €1.2 million before the first sale.
- A newcomer who does well takes 10% of the market in a few years: €240,000 a year.
That is five years just to pay back the build, before sales, support and the years it took to get there. No investor funds that, and no sane founder starts it. The incumbent didn't need to be good. It needed to be expensive to copy.
Now make the build cheaper:
| Build is | Cost to match | Years to pay back |
|---|---|---|
| As before | €1.2M | 5 |
| 2× cheaper | €600k | 2.5 |
| 4× cheaper | €300k | 1.25 |
| 10× cheaper | €120k | 0.5 |
You don't need to believe the 10× stories. At 2 to 4 times cheaper, the niche goes from "nobody bothers" to "a reasonable bet for two people with coding agents".
How much cheaper is building really? The careful studies measure something else. Three field experiments with 4,867 developers at Microsoft, Accenture and a Fortune 100 company found 26% more completed tasks with GitHub Copilot, mostly among the less experienced. METR's randomized trial in 2025 found experienced open-source developers 19% slower with AI, while they believed they were 20% faster. Its 2026 follow-up couldn't measure it reliably, partly because developers refused to work without AI.
But all of those measure a team changing code it already has. Copying a product that already exists is the best case for a coding agent. The incumbent's product is a free specification: every screen, every field, every report is there to look at. The coding agent doesn't have to know what to build, only how, and the how is the part it is good at.
There are now products that do the reading for you. Give them a URL and they go through the website, walk every page of the app and rebuild what they find. For a CRUD app, or one built on well-known techniques, that works: what the screens show is close to all there is.
For anything else they miss the point. They copy what the product shows, not why it behaves the way it does. A form looks the same whether the validation behind it encodes ten years of customer mistakes or nothing at all. A report looks the same whether its numbers are right in the edge cases or only in the demo. The clone gets the screens and has to rediscover the rest the expensive way, from its own customers' complaints.
So the copy is cheap. What a copy can't contain is everything the incumbent decided that doesn't show on a screen.
Moat 1: Domain expertise
A product that has been used for ten years is the sum of thousands of small decisions. Which warning to show and when. Which rule in the regulation the auditors actually check. What to do when the customer's data is wrong in the usual way. None of that is in the screenshots, and most of it isn't written down anywhere.
The research on AI at work points the same way. In a study of 5,172 customer-support workers, published in the Quarterly Journal of Economics, AI assistance raised productivity by 15% on average. The less experienced improved both speed and quality. The most experienced saw small gains in speed and small declines in quality. AI hands everyone what is already written down, which lifts the bottom toward the average. It does little for what only the best people know.
A product works the same way. A coding agent gives the newcomer the average product in the category. Your edge is the part that is above average, and that part comes from knowing the domain.
Moat 2: Data and switching costs
Data is the moat everybody claims, and the one most often overstated. Martin Casado and Peter Lauten at a16z wrote in 2019 that "defensibility is not inherent to data itself", and that the value of each extra piece of data usually goes down while the cost of getting it goes up.
They are right about piles of data. Research on Amazon's own forecasts shows where data does help. Amazon's chief economist and three co-authors found that forecasts for a product got better the longer its history, but that more products in a category barely helped. Depth on the same thing over time counted; volume didn't.
So the data that is a moat is the history your customers build with you: years of their own records, and the models you train on how customers like them behave. A copy starts with none of it. A customer who moves starts over.
The records are only part of what a customer would have to move. Your product is connected to their other systems, their routines are built around it, and their staff are trained on it. A migration is a project with a cost and a risk, and the newcomer has to be enough better to pay for both. A product that is only as good, or a little cheaper, doesn't win that switch.
Moat 3: Trust and accountability
In some niches the buyer can't choose an unproven product, however good it looks. Health care, finance and the public sector buy certifications, passed audits and a record of years without incidents. They also buy someone to hold responsible when something goes wrong.
A clone built in a month has none of that, and a coding agent can't produce it. An audit history takes as long as it takes. If you sell in a regulated niche, your certifications and your track record keep out more competitors than your code ever did.
Moat 4: Active users who work with you
People who are dedicated to your product are expensive to move. But be careful what keeps them there.
Stack Overflow was the strongest community in software. Within six months of ChatGPT's release, posting fell by about 25% compared with similar sites where ChatGPT wasn't available, and the drop hit novices and experts alike. People came for answers, and the answers got cheaper somewhere else.
A community built on answers is not a moat any more. One built on collaboration is: active users who report what doesn't work, test what you build, tell you what they need next and help each other along the way. Many of the small decisions in the first moat came from conversations like that.
It overlaps with switching costs. A customer who helped shape the product has their own way of working in it. Moving to a copy means losing the product, the people who listen to them and the other users they know. The copy has the same features, but not the people.
It is also what makes the other moats visible. When a newcomer can build your feature list in a month, its website will make the same promises as yours, and a buyer can't tell the difference. Your existing users can. Let prospects hear from them, and show what the collaboration produced: what the product does that the copy can't, and what that is worth. Keep how it does it to yourself.
The four things to work on first
A precondition first: use coding agents yourself. Your cost of building fell as much as the newcomer's did, and you start with the domain knowledge, the data and the customers. An incumbent that uses the same tools is a much harder target than one that doesn't.
Then these four, in this order.
1. Put your knowledge where a copy can't see it. Look at your product the way a newcomer with a coding agent or a cloning tool will: through the screens. Everything visible there is gone as an advantage. Spend your development time on the decisions behind the screens: the rules, the edge cases, the integrations with the systems your customers actually run, and how the product handles the mistakes they actually make. Your active users tell you which of those matter; build with them, not just for them.
2. Make every customer make the product better for the others. This is where data and your active users meet. Benchmarks against similar customers, predictions trained on everyone's history, practices that users share with each other. With consent and with aggregated data, done openly. A copy can match your features on day one, but it can't match what a thousand customers have taught your product.
3. Prove it with numbers only you have. Stop competing on feature lists; the copy has the same list. Show results from your customers' data: how much time, money or trouble the product saved, measured. Add the audits you have passed and the customers who will speak for you. A newcomer can claim anything, but it can't show five years of results. That is how you make the other moats visible without giving them away.
4. Don't hand out the analysis. Customers ask for dynamic reporting and analysis in their own tools, so you open a live feed of everything to their BI platform, or give an AI agent full read access through your API. Saying yes feels like good service. But now the reports they look at every day live somewhere else, and your product has become the database behind them. A newcomer doesn't have to win the users over. It only has to fill the same tables, and the feed is a ready-made way to move all the history across.
You can't lock the data in, and you shouldn't. The records belong to the customer, and in the EU the Data Act now requires cloud services to make switching possible. So separate the two. Export the customer's own records whenever they ask. Keep the analysis inside your product: the benchmarks, the predictions, the reports built on years of domain knowledge. The raw records are theirs. What your product knows about them is yours.
The takeaway
Coding agents didn't kill SaaS. They killed the moat that came from software being expensive to build. If that was your only moat, a two-person team can now take your niche. If it wasn't, put your time into what doesn't show on a screen, and make sure your customers can see it anyway.
Related: Will AI doom us all?