The alpha, twice a week
That was 8 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
Founders · 8 min · Nov 22, 2026
AI coding works best when you question the problem first
Tobi Lütke says AI coding often falls short because people prompt too narrowly, then explains how agents shift engineering toward rules and formal verification.
The episode’s best minutes
Full analysis- 0:40A founder-run company changes fundamentally after successionPro pick 8 min
- 15:50Measure entrepreneurs by the wealth they create for othersPro pick 4 min
- 35:46AI coding works best when you question the problem first8 min
- 5 more moments in the full episode
Takeaways
- Let AI challenge your assumptions about how to solve a problem.
- Define acceptance tests so you can verify what agents produce.
- Formal verification helps check complex systems beyond code review.
About this segment
Tobi Lütke says AI coding often falls short because people prompt too narrowly, then explains how agents shift engineering toward rules and formal verification. The change makes ambitious goals and proof of correctness more important than writing code by hand.
Tobi Lütke is founder and CEO of Shopify.
Co-founded Shopify, the Ottawa e-commerce platform, and has served as its CEO.

David Senra, Host · Host, Founders
Has read an entrepreneur's biography every week for Founders since 2016.
From “Why Founders Like Jensen Huang Are Irreplaceable | Tobi Lütke, Shopify”, Nov 22, 2026. Watch the full episode
Answers “Which jobs will AI replace, and which are safe?” See all 241 answers
Answers “Will AI replace software engineers?” See all 66 answers
Thanks. We'll look at and fix what's off.
Transcript
Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.
- 35:59
My main advice is when people are not quite able to get all the value out of this AI-driven development, it's like usually insufficient. ambitious prompting. It's really phenomenally interesting to sit down with people and saying, and sometimes funnily enough, I just sit down with them and instead of asking them how they prompt, I'm like, I ask them, hey, go through all the history of prompting. Like I literally go to VAI and we say, go through all the prompts and just sort of cluster them in types of prompts and like give us good examples of prompting and especially start beginning mid of project and like just like analyze it and and like you know i can actually do the meta analysis itself and then we look for this and just saying look you had some preconceived notions about how to solve the problem that you told it to um like investigate which is good but you didn't understand
- 36:53
the problem so give it a chance to actually say there might be much better ways to solve it or maybe there's a you know maybe this isn't the problem at all if we change something else over here so they often sort of working with machine is actually in a way trying to inspire it to understand like the problem you're trying to solve and then most of the work ends up becoming it's not a good term but for the lack of a better one we call it call it verification engineering which is like creating acceptance tests like here's how you know for sure that the thing that exists the thing that was created is good again i'm not going to bore you with the technologies with going into this and also i think all of those are going to change because we're sort of working with what we've got right now but this will be a huge part of our industry now
- 37:39
where we make sure that we use automated systems to know that like a system is known to be good we had unit tests before we had static typing before which are sort of things at least static typing is sort of formal verification but the field of formal verification is now by far the most important field in engineering. Look, I've lived in this industry. I pride myself on knowing almost everything that's going on to the degree that one human can. Formal verification was a thing I had. I knew it existed in academia and knew mathematics was using things like lean to formalize proofs. But I probably knew this from AI research. And like, I had no idea that this was going to be the most important part of engineering in the future. And now it is. And so this is how quickly everything's changing. Wait, explain why it's going to be the most important
- 38:31
part of engineering? Because you can prove that some system is correct. This is, and this is extremely important for complex systems. Like I just like, let me say something about what I've learned here and about identically engineering. And this is specifically when you're rebuilding systems with agents and tying this back to David and Ruby and why David proclaimed pencils are down. We are no longer hand shizzling code. We are now working with agents. We didn't have enough engineers in the world, or even close, probably 0.1% of the amount of demand there was demand for.
- 39:04
Like, it's just too few people went into this. Maybe it's an aptitude thing, but like, it's just, I think for whatever reason, there was just like way more demand than a supply of engineers because there was so much demand for writing code. Therefore, the most important thing that most of us could work on, and this is why you hear so much about frameworks, like Shopify is built on top of Ruby and Rails.
- 39:25
I said this like three times already. That's a really, really important thing. What is Ruby on Rails? Ruby on Rails is, again, a framework that just sort of like constrains the possibility space. It just sort of says, here's a known good way of building a web application. It's full of abstractions. And abstractions are sort of pretension. Like you pretend that something is simpler than it is. You can just like make a, you can talk to the database by just making a new object and telling it to find, find by name one.
- 39:55
and like it does all this it does all the hard work of plumbing these things together and dealing with wire protocols and the complexities of retry logic and busy databases and like all these things are kind of pretended to not exist In an abstraction. So what are abstractions? Our entire industry was like build abstractions. Why? Because abstractions cause productivity. They actually, unfortunately, have a lot of negative consequences, but none of us mattered because we needed productivity, productivity over everything. We needed to get one engineer to be able to write 10x, 100x the code of an engineer who wouldn't use these abstractions. So productivity was absolutely everything.
- 40:36
and we invested one could say wasted almost all the advances of computers getting faster simply for productivity gains like we made higher and higher higher stacks of abstractions this is why when you find a really old computer and start it on like like start it like an old mac or so it just boots in a no time and you start an application it's there and it's like this thing is from like try this with a macintosh like it's this thing is from 84 and like the word processor opens instantaneously why does today when i start word have a splash screen that takes 30 seconds right it's because doing this i love the the he's like i bought a new apple computer it took 40 minutes and then his new um his new linux yeah yes yeah like you can install the entire thing uh faster than you can uh probably lord word right like and so why is this because
- 41:28
we were extremely wasteful because we had to be because we needed productivity okay all this to say we don't need productivity anymore so this is crazy right like so working with agent is actually in so many ways the opposite no engineer wants to work in a code base with insanely strict rules these are called linter rules right like rules which say yes your road valid code it might even work but it's not allowed around here for reasons of that are important to the code base so valid code becomes errors because every company has their own way of doing things and bans certain ways and allows certain ways these things are seen as tools of oppression you have to like not go too far otherwise no engineer wants to work on your code base anymore because it's like oppressive the agents love them because they give them rules they love rules but not abstractions
- 42:19
because they are perfectly happy to write tens of thousands of lines of code that are correct for the thing they're doing and they don't want to go through 50 files and read all the layers and layers and layers of uh uh that the abstract uh tower of barbell has built up to understand what the actual consequences are okay that's important so we need to write code entirely different now with agents how do we know that it's good because now they are producing too much code to review because another aspect of building abstractions is the end result of code is not that much therefore we can have humans reread this in the form of a code review to make sure that it's okay code review is basically our human run formal verification shitty version of it all this is changing now so formal verification now is actually specified you basically say this
- 43:09
system has these many states like that can exist here's like a model of the state machine that runs the Shopify checkout or something and now please verify that every single possible state the system can get into is actually thought through and is tested and is specified what you will invariably find is within if you ask your AI to like and everyone can try this everyone who