How a professional vibe coder works (Lenny's Podcast)

Plan 80% of the time, give the AI references and rules, and debug like a pro.

playbook
Last updated Oct 28, 2026

This article was originally posted on Lenny's Newsletter

I don't code, and I build with AI every day at Lovable. Here is what I've learned about building good products this way: why clarity matters more than code, how I plan, and what I do when I get stuck.

The problem is clarity, not code

Very early I understood that coding is not the problem we're solving. AI already outputs much faster than any human. The problem is clarity. To this day I spend 80% of my time planning and chatting, and only 20% executing. Most people optimize for the wrong kind of speed.

It doesn't matter if you use Lovable, Cursor or Claude Code. These are still tools, and you're steering the ship. Treat them like technical co-founders and teachers, learn while you build, and religiously read the agent's output, not the code. I don't care about the syntax. What the agent tells me is what matters.

There are two limits when you work with AI.

The machine limit: the context window. Think of Aladdin and the genie. The genie grants three wishes at a time, not 3,000. AI can only handle so much in one request. It has a token budget, say 100,000 tokens, split between reading, browsing, thinking and writing code.

The human limit: being specific. I ask the genie to make me taller, and he makes me 13 feet tall. Now I can't sit in my car or get into my house, because I wasn't specific. AI doesn't have 36 years of human experience to know what you mean. You need to be specific, give references and give the right context. You can't control the first limit, but you control this one 100%.

Build taste through exposure

For me, clarity means knowing what good enough looks like versus world class versus magical. I build that through exposure time: deliberately spending time with great products, people and content in the areas where I need to level up.

My journey went: "I can build!" Then "I can build, but not fast enough." Then "Wait, should I have built this at all?" AI solved the how. Now everything else matters: good design, good taste, good user experience. You're building for humans, and humans decide on emotion.

If you haven't learned to code yet, I'd honestly say don't. We won't be rewarded for faster raw output. We'll be rewarded for better judgment.

Everyone now produces good enough with AI, so the gap is between good enough and world class. That's where to focus. I think PMs are winning with AI today because they bring clarity, and designers are next, because design is about emotion. Working with Lovable's designers was my biggest level-up. I once tried to copy what looked like a simple gradient from one of their Figma files, and it was 50 layers with different opacities.

To learn design: follow great designers, learn the design styles (I had no idea what Bauhaus or glassmorphism meant), and learn how to prompt for each one. I built an app in Lovable just to learn 18 UI styles and the prompts to replicate them.

Start with several projects in parallel

If you only have a vague idea, let that be version one. Then start more projects as things get clearer:

  1. Brain dump. Open your tool and just talk. Lovable has a voice function. Dictate, press send, and don't wait for it to finish.

  2. Clearer prompt. In a new project, write it out with the features and pages you now know you want.

  3. Visual reference. Find a screenshot or animation on Mobbin or Dribbble and attach it.

  4. Code reference. Find a code snippet or template from a library like 21st.dev. Even though English is now the top programming language, these tools still understand code best. If you want pixel-perfect results, give them code.

You end up with four or five concepts to compare, and more clarity than you'd ever get from a blank page. It also fixes design "AI slop", because you get several design options. Some people say it costs more credits. Up front, maybe. But if you want to finish the project, starting from better clarity saves you hundreds of credits, maybe hundreds of dollars, and days of work. It's also how I ship so much: I always have five or six Lovable tabs open.

Plan with a set of documents

After a few hundred projects, the winner is usually obvious. Calibrate it with a prompt or two. Then I spend up to a full day planning before building. I ask the tool, or ChatGPT, to write a set of documents (PRDs, or as I call them, sources of truth):

  • Master plan: the 10,000-foot view. Why I'm building this, who it's for, how I want them to feel. It points to the other docs for details.

  • Implementation plan: the order of building, like back end and tables first, then authentication, then the API. Like a technical co-founder telling you how they'd sequence your idea.

  • Design guidelines: how the app looks and feels. I like to see some CSS in here, because AI is sometimes over-creative with design.

  • User journeys: a user registers, then what? What's the second step, the third?

I read all of them. Then I make one more file, tasks.md, with the actual tasks and subtasks to reach the finish line. I use markdown because AI likes to read it.

The last layer is the rules or agent file (rules.md, agents.md, or project knowledge in Lovable's settings), so I don't repeat myself every prompt. Mine says: read all the files before doing anything, check tasks.md for the next task, do it, then tell me what you did and how to test it.

From there my prompts become "proceed with the next task." I just read the output and test. That's how I build five projects at once. I keep the docs updated over time.

To start, I built custom GPTs in the ChatGPT store (search "Lovable PRD generator"). Brain dump into one, it asks a few questions and gives you the files.

Why this matters: don't waste the genie's tokens

Say you skip all this and just vibe. Something breaks, and there's no documentation. You describe the issue without pointing to any file. When you started you had 20 files. Now you have 60 or 70 edge functions. The agent reads all of them and spends maybe 80% of its tokens just reading, leaving 20% to think and fix.

These tools are very agreeable. They'll often tell you they fixed it when they didn't. Then people get mad and start yelling, and the AI spends even more tokens on apologizing instead of the problem. My guess, as someone with no formal background, is that when the request is unclear and it's running low on space, it takes the easiest fix.

When I find the right file, reference it and say "I think this is the problem file", it actually fixes it. The ceiling on AI isn't the model's intelligence. It's what the model sees before it acts.

Vibe your way for fun and for prototyping. Once exploration is done, use docs, references and agent files.

When you get stuck: the 4x4 method

Try each of these once.

  1. Let the tool fix it. In Lovable, when the agent knows it made a mistake, it shows a "Try to fix" button. For small issues, that usually works.

  2. Add awareness. Sometimes the agent doesn't know it's broken, often with a third-party integration. Open the preview, run the broken function, right-click and read the console log. If there's nothing useful, ask: "I don't think you're seeing the problem. Let's find it together. Add console logs in the relevant files so we can monitor every step." Run it again and paste the logs into the chat. That's usually enough.

  3. Get outside help. Export your code to GitHub and open it in Codex, only to diagnose, not to change code (I don't know its agent well enough to steer it). The older way: use Repomix to pack your whole codebase into one file and upload it to Claude or ChatGPT with the problem and the logs. Like hiring an outside consultant.

  4. Revert and rethink. Most of the time it's your fault. You premised the request wrong. Use version control to go back a few steps, take a walk, come back with a clear head and ask again. Sometimes AI just trips on a small rock once.

Then the key step: once it's fixed, switch to chat mode and ask, "I needed four tries to fix this. How can I prompt you better so we do it in one go next time?" Then tell it to add what you learned to rules.md, since it reads the rules every time anyway. You won't remember to prompt better in two days, so let it learn instead.

If you don't know what to ask, it's 10 p.m. and you're stuck, switch to chat mode, brain dump, and say "help me write a better prompt." Let the tool prompt itself.

Prototyping still counts

Even if you can't push to production, maybe because you're in healthcare or finance, prototyping is one of the best uses. Our motto was "demo, don't memo." At a previous job I needed something enterprise grade. I built the prototype in four hours, and our engineers rebuilt it for production months later. Writing it up would have taken me a week or two.

Planning for a day so AI can build in hours what used to take weeks is an absurd return. That's what professional vibe coding looks like.

Comments

Login to leave a comment