# How Lovable self-improves every hour — Benjamin Verbeek, Lovable <!-- ref: @content/youtube/aie/2026-06-02-how-lovable-self-improves-every-hour version: 3 updated_at: 2026-10-31T18:18:29.466Z --> Benjamin Verbeek (AI Engineer, 2026-06-02): Verbeek's target is a single property: a mistake should happen once and then never again. Lovable pursues that with two production loops that both mine the same raw material — moments where users get stuck — but from opposite ends. *Synthesized from Benjamin Verbeek on AI Engineer, 2026-06-02.* Benjamin Verbeek is a member of technical staff at Lovable, with a prior background in satellites, particle physics, and fusion reactors; he works on what he calls the holy grail of AI engineering right now — continuous learning at scale. ## Core Thesis Verbeek's target is a single property: a mistake should happen once and then never again. Lovable pursues that with two production loops that both mine the same raw material — moments where users get stuck — but from opposite ends. One loop harvests solved friction into an internal knowledge bank that gets injected into future sessions; the other gives the agent itself a channel to complain to its creators when the platform is what's broken. Both are built around continuous eval and aggressive deletion, because the knowledge goes stale faster than it accumulates. ## Key Insights - Scale context: Verbeek joined Lovable about a year before the talk, when it had a few thousand users. Lovable now creates **over 200,000 projects per day** — a meaningful percentage of all websites being created on the internet. On his first day, **GitHub banned Lovable** for creating too many repos, and they have taken down several cloud providers since. - Lovable's data shape is unusually favorable for learning: users stay on one project for a very long time and the chat can run effectively forever, so the system builds deep knowledge of one artifact and one user — the opposite of a chat agent's short, disconnected conversations. - The failure mode that matters is persona-specific. Technical users hit friction, drop into manual work (edit a config, add an env var or API key), grumble, and continue. Non-technical users prompt past soft friction but **walk away permanently** at the first hard technical block — so they never experience the good part of AI at all. Eliminating hard blocks is the whole product problem. - Operational definition of "stuck," detectable by an LLM judge watching sessions: the user asks for the same thing more than once; the user complains about how something was implemented or that it explicitly failed; or the user abandons a session they would otherwise have continued. - Stuck splits into two classes with different remedies: **solvable with the right prompting** (fixable by injecting knowledge) and **not solvable in the current product** — the latter further splitting into dumb gaps or bugs versus genuinely hard work costing weeks of AI-assisted engineering. Verbeek's position is that there is no excuse for not fixing the first two rapidly. - **Loop 1 — "Stack Overflow for Lovable."** The system watches for a stuck flag flipping back to not-stuck *without* the user giving up, which yields a high-signal pair: a hard problem plus its verified solution. The question then asked is precisely: what should have been injected at the start of this query to jump straight to the solution? His worked example is a user complaining about laggy scrolling; the agent claims it quantized the animations, makes it worse, and the true fix eventually turns out to be that overlay text carried individual gradients that destroyed animation performance. - Entries are **clustered before being written** so the bank doesn't overfit into a million pages of "if you get this exact prompt, do this exact thing." An external reviewer — usually an agent, a human only when uncertain — generates and runs a quick eval to confirm the entry resolves the examples in its set. - **Injection is a live A/B with a deliberate blank arm.** A lightweight model decides when to inject a knowledge entry into the main agent, but for a small sample of cases where it decides to inject, it injects nothing. Comparing project success across the injected and could-have-been-injected-but-wasn't groups yields a production-grade usefulness rating: promote what wins, show less of what loses. - Verbeek stresses the ranking loop above everything else in the design, because the bank **goes stale extremely fast** — a new model release or a feature change invalidates entries. Large amounts of knowledge must be thrown away, not just re-ranked, or you accumulate deprecated context that causes context rot and actively hampers the agent. - Measured results: messages containing fix-it intent or stuck signals dropped significantly, and materially more users **deploy** — Lovable's key metric, since deployment means the user never got stuck badly enough to abandon the project. The knowledge bank also boosts internal model rankings; every model at the top of Lovable's internal ranking uses this information. - **Loop 2 — the vent tool.** Reasoning by analogy to a human given a task without the tools to do it, Lovable gave the agent `vent_send_feedback` and told it to use the tool when tooling, docs, or platform behavior degrade its work: missing or unsuitable tools, unclear tool names, parameters or schemas that don't match expectations, conflicting docs, broken platform behavior, or repeated failures caused by environment limits. Vents go **straight to Slack**. - The critical prompt-design choice is that the agent only vents when genuinely frustrated. A generic external reviewer asked "what could have been better?" on every iteration produces terrible signal-to-noise, because most iterations work fine and the reviewer overfits to noise. Making the trigger discretionary — and tuning that threshold — is what makes the channel usable. - The asymmetry that makes this work: users don't know the cause of their problem, but the agent has been working the issue for several turns and holds far more context on it. Vents also read as relatable engineering complaints, so engineers already carry the implicit context needed to fix them. Sample vent: the agent objecting to Framer Motion's TypeScript types for cubic-bezier values, wanting to pass four numbers without casting gymnastics. - The bug this caught that nothing else did: Lovable's copy tool silently failed on certain filenames — **~20 complaints in the first hour** after the vent tool launched, for a tool the team believed was working. The cause was spaces in filenames. They fixed it by replacing spaces with underscores, and reports continued — because screenshots taken on macOS and in WhatsApp embed a **non-breaking space** their regex didn't catch, followed by further special characters until it was solved properly. - **Vent volume is an incident detector.** Spikes in vents per unit time mapped to real platform incidents — servers down, sandboxes broken — and the agent's complaints described the problem accurately enough to be diagnostic. - Cost argument for in-line over external review: you generally don't want frontier-level intelligence re-reading large volumes of context after the fact, but having the working agent flag issues inline is comparatively very cheap, because the strong model is already there holding the context. - The loop is now largely closed: an agent monitors the vent stream, deduplicates, investigates, and opens PRs. Verbeek gets automated review requests on his phone, skims, and merges. In one case the agent gave meta-feedback on the vent tool itself — that sending was too easy and irreversible, and it felt embarrassed about what it had posted to Slack. ## Actionable Takeaways 1. Define "stuck" as an observable event before trying to learn from it. Verbeek's three detectors — repeated request, complaint about the implementation or an explicit failure, and premature session abandonment — are cheap for an LLM judge to run over session logs. 2. Harvest knowledge only from stuck → unstuck transitions where the user did *not* give up. That transition is the high-signal sample; everything else is noise. 3. Frame the extraction question narrowly: what context, injected at the start of the query, would have jumped straight to the solution? Then cluster across similar incidents before writing the entry so it generalizes. 4. Gate every entry on a generated eval run by a reviewer agent against the incidents it came from, with human review reserved for uncertain cases. 5. Build the blank-injection holdout into the retrieval path from day one — when the injector decides to inject, sometimes inject nothing, and rank entries by downstream project success across the two arms. Without this you cannot tell useful context from context rot. 6. Budget for deletion, not just accumulation. Re-rank and prune the bank on every model release and feature change; stale entries actively degrade the agent. 7. Give the agent a vent tool with an explicit trigger list (missing tools, mismatched schemas, conflicting docs, broken platform behavior, repeated environment-caused failures) and instruct it to fire only when genuinely frustrated. Route the output to a Slack channel a real owner reads. 8. Watch vent volume over time as an incident signal — spikes correlate with platform outages and arrive with a usable description of the fault. 9. Measure completion, not satisfaction. Lovable's headline metric is whether users deploy, because deployment proves nobody got stuck badly enough to abandon the project. ## Notable Quotes > "We want to have a mistake happen once and then never again." — Benjamin Verbeek > "Why do I have to explain the same thing over and over again?" — Benjamin Verbeek, on the experience the work is meant to eliminate > "It gets stale whenever a new model is released. It gets stale whenever we change features. It gets stale incredibly quickly." — Benjamin Verbeek > "We gave our agent a vent tool. A way to complain to its creators." — Benjamin Verbeek > "Most iterations actually just work pretty well. And you will overfit to noise." — Benjamin Verbeek --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*