AIAI EngineerJun 2, 2026· 19:05

How Lovable self-improves every hour — Benjamin Verbeek, Lovable

Benjamin Verbeek from Lovable explains two continuous improvement loops that keep its AI coding agent learning from mistakes at scale. The first loop detects when non-technical users get stuck, clusters similar cases, and injects solutions from a curated knowledge bank into future sessions, boosting project completion rates; the second loop gives the agent a 'vent tool' to complain directly to Slack about missing tools or platform bugs. Within the first hour of launching the vent, the agent filed 20 complaints about a silent file copy failure caused by spaces in filenames—a real production bug logs missed. Vent volume spikes now serve as a reliable incident detector. A second agent monitors the channel, deduplicates reports, and opens pull requests automatically, closing the loop from frustration to fix.

Transcript

Intro0:00

Benjamin Verbeek0:15

Alright, let's get this party started. Do we have any Lovable users in here? Good, good, a few. Very nice. Uh, warm welcome to— to this talk on how Lovable is improving every hour, including this hour as I'm speaking.

I'm Benjamin Verbeek, I'm a member of technical staff of Lovable. It's so amazing that we are filling up this bonus room. I think we're around 3 times as many people as would have fit in the original, so thanks to the organizers.

Um, this is my background. I used to work with satellites, particle physics, and fusion reactors, so I have a physics background. And today I'm working at Lovable and working towards what is maybe the holy grail of AI engineeringright now, which is continuous learning at scale.

How do we learn from mistakes? So we've probably all experienced working with an agent and having the feeling, "Why do I have to explain the same thing over and over again?" This is what we want to avoid. We want to have a mistake happen once, and then never again.

So we need to learn from that. And in this talk, I want to share 2 ways how we are working towards this goal at Lovable.

Vibe Coding1:28

Benjamin Verbeek1:28

This is a Lovable interface. Uh, we were actually one of the first, uh, I think we coined the term "vibe coding," so coding without actually looking at code. So you have a chat interface where you describe what you want to happen, and you have a modal sandbox, for example, where you can see directly what you're creating.

And I think in many ways, this is the way we should be building software. The code was always just an annoying technical layer in between to create what we wanted, but ideally, you just say what you want, you see it, you test it, and you ship it.

We have some nice benefits with the Lovable platform, which is that people stick to one project for quite a long time. This chat can go on forever, essentially, and people have, like, this one artifact that they are really passionate about and they want to ship.

So we can learn a lot about this one thing versus, for example, a, uh, chat agent where you have very, very short conversations. We can actually get to know the user in quite detail.

Another exciting thing is that we're building for the 99% who can't code. So probably not the people in this room, actually. There are still quite a lot of people, evidently, who use our product, but we are trying to unlock software creation for everyone.

In the future, you will not have to look at code to be able to create software. I think that is the world we all want to move towards, and we are trying to do thatright now. And in many ways, this is, like, uh, building for the future, I think.

So a reason that startups succeed with new technology is that they are a bit naive, and they don't really think about all the issues that can happen. They don't think too much about all the details and implementation. They just go until it works.

This is how I like to see our users. They just go until it works, and they're not sort of held back by old paradigms. This is a wonderful group of people to, to build for, um, and it's scaled quite rapidly.

Scaling Up3:30

Benjamin Verbeek3:30

Uh, I joined Lovable around a year ago. At that time, we had a few thousand users. Now we're creating over 200,000 projects per day. That's a significant percentage of all internet websites being created on Lovable. And that scaling journey has been incredibly fun.

We can do so many cool things now, like the things I will talk about in this talk. Uh, it's also very hard. My first day GitHub banned us because we were creating too many repos. And we've taken down a number of cloud providers along the way.

Persona Gap4:00

Benjamin Verbeek4:00

How do we succeed with AI? Um, I like to think about it in this way. Technical personas generally have this amazing moment with AI where they are just building and building. You're accelerating 10 times, 100 times faster than you're used to.

But sometimes we hit some friction points, this yellow part, and you have to intervene or, like, prompt a bit harder. And sometimes you even get stuck. Maybe you have to manually go in and change a config somewhere. You need to really do a lot of manual work, change a setting, add an env var, uh, API key, etc.

And then you move on, and you really get the good parts of AI, and you can work past the bad parts. You're still annoyed by it, but you can work past it. A non-technical persona is not really like this.

They might prompt their way past their first friction, but as soon as this technical block happens, they generally walk away and they give up, and they actually still never experience successful AI. This is what we need to minimize.

Defining Stuck4:55

Benjamin Verbeek4:55

We can never get stuck to a point where a non-technical user cannot get pa- get past it. And this is a very exciting problem to work on. Luckily, uh, models are getting better, and the requirements of these people are, uh, generally to a point where we can achieve them.

But for the past year, we have been working on making sure none of these red bars happen. People can never get stuck. How do we do that? First of all, we want to define, like, what does it mean to be stuck?

We probably want to find those cases and then learn from them. So one clear signal of someone being stuck is that they ask for the same thing more than once. Probably stuck, or it didn't work as smoothly as they could.

Maybe they're complaining about how something was implemented or that it failed, very explicitly, or they gave up on a session that they would otherwise have continued. And we can have an LLM judge that is just looking at sessions and trying to look for these situations, and they can flag it and say, "Hey, I think this user is stuck."

I want to split being stuck into two different ways. Uh, you can be stuck in a way where it's possible to solve. This is maybe the yellow part that I showed. And you can get past it with theright prompting.

Some users are more willing to go put in that effort and get past that point. Uh, others will give up. But it is possible to solve with the current structure of our product. And then there are tasks that are not solvable, even if you say all theright things.

Maybe we're just not supporting it for some reason. Um, and there there are two classes. There's the things that are just dumb that we don't support. Maybe it's a bug. Maybe it's a very, very simple thing we could add to the product.

Uh, and then there are the actual hard things that would take, like, weeks of engineering, AI-assisted engineering effort.

Knowledge Loop6:42

Benjamin Verbeek6:42

These first two things, we should be able to improve on very rapidly, I think. There's no excuse to not improve on these things. If it is solvable, then it should work for everyone. And if it is just easy to do, we should just ship it.

So how do we do that? Um, some of you might have heard of Stack Overflow. This very, very ancient thing. We had an idea to build a Stack Overflow for Lovable. So we basically learn from whenever someone is stuck and has an issue, we try to figure out a solution and give that to the agent.

It could look something like this. Um, I'm complaining to the agent about my website being laggy when I scroll. It's bad performance. Uh, maybe I'm not stuck yet. This is just me complaining about something and giving it a new task.

The agent probably replies something like, "I fixed it. Maybe I quantized the animations to make it more performant." And it was lying. The agent has failed, uh, and it actually made things worse. Now the website is jumpy and laggy.

Terrible. Okay, this is a clear case of someone being stuck. They asked the same thing again. They probably want it, uh, want the agent to try again. And they're complaining about an implementation that didn't do what they wanted.

This might repeat for a while, where they keep iterating several times. Some people give up at this stage, but at least some people will continue. And eventually, the agent might find the true solution, which in this case happened to be that the overlay text had individual gradients, which made the animation super low-performing.

And now we see that "is stuck" changes back to false. It succeeded. So this we can flag. We can notice whenever it went from being stuck to not being stuck, and ideally not because the, uh, the user gave up.

This we can flag, and now we have a high-signal sample of a problem that was high friction or not solved that was solved. So we have gotten the solutionright here. And the question we just ask is, what should we have injected at the start of this query to jump straight into the solution so the next user does not experience this friction?

What we do is we create a new Lovable Stack Overflow knowledge entry. And in general, we actually do some clustering in at this step, where we look for similar issues. We look for what is the actual information we should give so that it's not overfitting to the specific issue.

We don't want, like, a million, uh, overflow pages, Stack Overflow pages, that are all talking about, "If you get this exact prompt, then you should do this exact thing." It's not very helpful. We do some clustering. And then we have an external reviewer, uh, generally an agent, and then maybe in some cases we have a human if we are uncertain.

But in most cases, it's actually just an agent that generates and runs a quick eval on this and sees if this did this resolve, uh, the specific examples that we had in this set.

From that, we get a full bank of Lovable Stack Overflow problems and solutions that's being continually updated.

Whenever the model is working, we have a lightweight model that tries to inject that context when needed. If it detects there is an issue and there is an answer, it injects that context into the main agent. And sometimes it detects that I should inject this, but we inject it blank, so we don't actually send anything for a small sample of use cases.

And this allows us to, with very high-signal review, whether this, uh, solution was actually useful in production. And we rate it. We compare the, the group of projects where it was injected and where we it, it could have been injected, but it wasn't.

And we say which of these projects were actually more successful overall. If it was more successful, then we show it more. And if it was less successful, we show it less. And this loop is incredibly important. I cannot emphasize enough how important this step is, because things are moving around this set of knowledge all the time.

It gets stale whenever a new model is released. It gets stale whenever we change features. It gets stale incredibly quickly. So very often, we have to rebalance this, but we also have to throw away a lot of this context.

And this allows us to really be at the frontier of what is solvableright now, but not have a lot of old deprecated knowledge that is giving context rot, um, and also in many cases just hampering the actual, uh, agent.

And this is working at scale. Uh, this is very, very early data, actually. We're, we're doing quite a lot better now. Um, but the number of messages with fixed intent or people being stuck is dropping significantly. And we have also a significant number of people that deploy more.

Loop Results11:06

Benjamin Verbeek11:20

This is one of our key metrics, that they actually finish a project. This is a very, very strong signal that it has worked all the way through. They've never gotten stuck so bad that they give it, given up and abandoned their project completely.

Um, we also do internal ranking with this. So it's really interesting to see how models perform on this set of problems that we have collected. And with the Stack Overflow information, uh, all models in the top of our ranking use this information.

There's a few hidden entries here, which I unfortunately cannot talk about. Um, but it really, really makes a significant boost in our internal ratings.

And then there's a second set of, uh, being stuck, which is, uh, when it's not actually solvable with the current setup. Maybe there's a bug in our product, um, but in these cases, we think it should be easy in principle.

Venting Tool12:01

Benjamin Verbeek12:16

And what happens if you think something should be possible, but it just doesn't work? You feel significant frustration. And what would humans do if this happened? Well, if you were given a task and you just don't have the tools to do it, you would probably complain to your boss or go venting in Slack.

So we thought, why not do exactly that, but for the agent? So we basically are asking Lovable, "How are you doing? Can we help you in any way?" And we gave it an outlet to let out its frustrations.

So we asked ourselves, what if we could, uh, let the Lovable agent give direct feedback to its creators? This sounds very scary, I have to say, and it sounds like an absolute insane idea. Um, what's even more crazy is that it's kind of working.

This kind of detecting issues is something I've heard during this conference, but also a few other times, where you might have an external reviewer looking at the conversation and asking what could have been done better to reduce friction.

One problem with that is that you get a pretty low signal-to-noise ratio. Because you're basically forcing an answer on every iteration. And the reality is that most iterations actually just work pretty well. And you will overfit to noise.

In this case, it's prompted to only send feedback if it is really frustrated. And you can tune that balance until you get a lot of signal. So we gave our agent a vent tool, a way to complain to its creators.

Um, it looks something like this. It's a vent send feedback tool. You should use this when tooling, docs, or platform behavior materially slows or degrades your work. For example, missing or unsuitable tools, unclear tool names, parameters or schemas that are not matching what you were expecting, confusing or conflicting docs or instructions, broken or unexpected platform behavior, repeated failed attempts at causing, uh, caused by environment limitations.

So basically a list of all the things we think you should, we should be able to solve and that we hope is not an issue, but if it is, please tell us. And our users generally don't know what the cause of a problem is.

When I'm using Lovable and I get stuck, I generally don't know. But the agent actually has a lot more context. It has literally been working on the issue sometimes several turns. And it generally has a lot of context on this problem.

So it can look something like this. It actually gets sent directly to our Slack. And the agent says something like, "I'm so annoyed at Freemotion's TypeScript types for, uh, generating, I think this is a cubic Bessier. I just want to be able to send a list of four numbers.

That should be fine. That's all I'm sending. I don't need all this casting gymnastics." Now we can ask ourselves, is this a relevant vent or not? Um, but in this case, it, it probably just was not relevant for, uh, its use case, and we could have simplified things a lot.

Another benefit of this setup is that it's very easy to understand as a human. It's very relatable that you're complaining about your workflow. And that means that engineers sort of already have all this implicit context on how to alleviate the issue.

Space Bug15:08

Benjamin Verbeek15:23

Another problem that got reported by the agent was, uh, our copy tool was struggling with certain filenames. It couldn't copy it to, uh, another place where we store, store documents. And we were so confused by this. Like, we checked the tool.

It's working. Um, we didn't even know that this tool was failing so regularly until the agent told us. And it said, "Whenever there is a space, a raw space in the filename, it's failing to copy." And we got, like, 20 complaints about this in the first hour of launching this tool, which is crazy.

It turns out that, uh, there was an error where it could not copy files with a space in their name. We fixed it, and we told it, "Whenever there is a space, just replace it with an underscore." And we kept getting the reports.

And then we realized that when you screenshot something in WhatsApp or on Mac, it, it enters a non-breaking space, which we did not replace in our regex. And it kept complaining for various other special characters until we did solve it properly.

And now this issue never happens again. I think this is an, a prime example of something that's pretty hard to detect in other ways. You can see the tool failure. But this is just such a clear case of how to fix it.

Automated Flow16:34

Benjamin Verbeek16:34

And we just do it. I will skip this one. Um, it's essentially this is the flow. The agent experienced an issue. It used the vent tool. It sent straight to Slack. At first, I was very uncertain if this would work.

And I didn't want to spam, spam us. It was like a closed-down channel. It didn't invite so many people. Our head of product was very excited to see this. Uh, he was reading every single message. Now it's a bit more balanced, and we actually have an agent that's monitoring, removing duplicates, and investigating and creating a PR for all these issues all the time.

And we're still at the point where devs are reviewing and then, in many cases, actually merging this to prod.

This is the number of vents over time. Uh, do you have any guesses what these spikes are? Why do we see spikes in the number of vents caused per time?

Incident Detection17:15

Guest17:24

So server went down.

Benjamin Verbeek17:25

Server went down. It's an incident, yes. Something broke in the platform. At some point, our sandboxes broke. At some point, something else broke. And the agent is very upset about this. It's complaining a lot. So it turned out that this was actually a prime place to notice when our product was having an incident.

And it actually gave a pretty good sense for what the problem was. It was complaining about write things in general.

Closing the Loop17:48

Benjamin Verbeek17:48

Um, very brief. I'll keep this brief. Um, you get the strong model intelligence versus an external reviewer. You generally don't want top frontier-level intelligence to look through a lot of context. But if it's in line, it's very, very cheap comparatively.

Um, this was an example where the agent was actually giving meta feedback on the venting tool. It said, "It's too easy to send feedback, and I can't pull it back." It was being ashamed of what it had sent to Slack.

Um, and it's actually the case now that I just get, uh, review requests on my phone from this automation to, "Hey, review this PR that was completely automated. I look through it quickly, and we can merge it." And we're continuing to work to close this loop of detecting a shortcoming, merging a fix, and then continuously review and eval that.

And if you think this is exciting, uh, you should join us and help us close this loop and fully automate, uh, continual improvements. Thanks for listening.