How to build with AI: vibe coding step by step, and what to check before anyone uses it
In the second quarter of 2026 developers pushed code to public projects on GitHub 408 million times, almost four times as often as five years earlier, and about two thirds of that growth came in the twelve months to June 2026. By September 2026 more than 40% of pull requests on GitHub started with a first draft from an AI agent. Building a tool that works now takes an afternoon. This guide shows how to build with AI step by step, with one small tool that a coding agent built for it, and what has to happen before other people use the result.
40%+of pull requests on GitHub started with an AI agent’s first draft in September 2026, up from 17% in March
GitHub Innovation Graph, pushes to public repositories, released 28 October 2026. Pull requests: GitHub, Octoverse 2026, 28 October 2026.Vibe coding means building software by describing in plain language what you want and letting an AI write the code. For a small tool or a prototype it works within an afternoon. Before anyone else uses the result, a person who can read code has to check it.
What is vibe coding?
Vibe coding is a way of building software in which you tell an AI in plain language what you want and the AI writes the code. The name comes from a post by the AI researcher Andrej Karpathy on 2 February 2025 about weekend projects where he had stopped reading the code.
![Post by Andrej Karpathy on X, 2 February 2025: “There’s a new kind of coding I call “vibe coding”, where you fully give in to the vibes, embrace exponentials, and forget that the code even exists. […] I “Accept All” always, I don’t read the diffs anymore. […] It’s not too bad for throwaway weekend projects, but still quite amusing. […] I just see stuff, say stuff, run stuff, and copy paste stuff, and it mostly works.”](/assets/f01695448de1.png)
![Excerpt from a post by Andrej Karpathy on X, 4 February 2026: “This was a shower of thoughts throwaway tweet that I just fired off without thinking but somehow it minted a fitting name at the right moment […] Today (1 year later), programming via LLM agents is increasingly becoming a default workflow for professionals, except with more oversight and scrutiny. […] personally my current favorite “agentic engineering””](/assets/8579c3e6aa51.png)
The post describes a habit. Karpathy spoke his wishes aloud, accepted every change unread and pasted error messages back in without comment. “I ‘Accept All’ always, I don’t read the diffs anymore,” he wrote, and he drew the line himself: “It’s not too bad for throwaway weekend projects.” Nine months later Collins Dictionary made vibe coding its word of the year 2025 and defined it as “the use of artificial intelligence prompted by natural language to write computer code”.
On 4 February 2026 Karpathy looked back. He called the original a “throwaway tweet” and wrote that programming with AI agents was becoming a default way of working for professionals, with more oversight and scrutiny. His name for that careful version is “agentic engineering”. The word vibe coding now carries two meanings. In the narrow one, nobody looks at the code. In the wide one, which Collins, the tool makers and most people use, you build by describing. This guide uses the wide meaning and treats the narrow one as the risk.
Vibe coding vs agentic coding: what is the difference? In vibe coding in the narrow sense, nobody reads the code. In agentic coding, also called agentic engineering, an AI agent still writes most of it, and a person who understands software plans the work, checks the result and answers for it. The developer Simon Willison describes vibe coding as “building software with an LLM without reviewing the code it writes” and proposed the name “vibe engineering” for the careful way of working in October 2025. In February 2026 he noted that “Agentic Engineering” was coming out on top. Spec-driven development, a term GitHub promoted in September 2025, means writing down what the software should do before the AI builds anything. Step 2 below is the small version of it.
Can AI build an app for you?
Yes. AI can build an app for you if the app is small: a form, a calculator, an internal dashboard, a simple website or a prototype that shows what you mean. You describe it and get something that runs. What AI does not tell you is whether the result is correct and safe to use.
The companies that make the AI models show how far the technique has come. Google’s chief executive Sundar Pichai said in October 2024 that more than a quarter of all new code at Google was generated by AI. In April 2026 he put the figure at 75%, up from 50% the autumn before. Anthropic says that as of May 2026 more than 80% of the code merged into its own codebase was written by its model Claude.
Pichai added that the code is “AI-generated and approved by engineers”. The share that AI writes has roughly tripled in eighteen months, and Google counts only code that engineers have approved.
Which successful apps were built with AI? Many, from one-person projects to products of large companies. Five well-documented cases follow, each with a figure from the maker or a named source. In March 2025 Jared Friedman, managing partner of the start-up accelerator Y Combinator, said that a quarter of its winter batch had codebases 95% written by AI.
A multiplayer flight game in the browser. Levels had never made a game and wrote that he built it “100% with Cursor in I’d say 3 hours by just telling it what I wanted”. Seventeen days later he reported revenue at a rate of $1 million a year, from advertisers who rent space inside the game.
An app builder that began as a one-person company. Wix bought it for about $80 million plus later payments. Lenny’s Newsletter wrote that AI wrote about 90% of Shlomo’s code. Weeks later the security firm Wiz found a login flaw; Wix fixed it within a day and found no sign that it had been misused.
An open-source assistant that carries out tasks on its own. Steinberger wrote that “most code I don’t read”. By March 2026 it had more GitHub stars than React, and he joined OpenAI. A flaw rated 8.8 out of 10 was fixed in the version of 29 January 2026.
A desktop assistant for office work. A team member said on a livestream, as relayed on X the same day, that it was built in about a week and a half, and the head of Claude Code wrote of its code: “It was pretty much all Claude Code.”
A safety app for women in Brazil that checks criminal records. Matos has no engineering degree and built it on Lovable. Lovable’s own case study reports more than 10,000 users in three months; we found no independent figure.
![Excerpt from a post by Pieter Levels on X, 11 March 2025: “fly.pieter.com has now gone from $0 to $1 million ARR in just 17 days! Revenue update: $87,000 MRR (which is $1M ARR). My first project ever to go up this fast. Stats update: 320,000 people have now flown in the game. Whether the MRR is truly sustainable for a year we can only guess, but they ARE subscriptions and they do renew so as long as the game keeps improving it might happen? […] I was ski’ing today so was AFK mostly but I did: Fix more XSS issues, which to be fair unless you explicitly ask it to find every single XSS loophole, AI doesn’t really care about when it writes code, so you really gotta ask it to extra check your code cause honestly it can be full of security holes”](/assets/5488db09e465.png)
In the same post Levels wrote that he kept fixing security holes, because the AI did not look for them unless asked, and that its code “can be full of security holes”. Whether the revenue would last, he added, “we can only guess”.
Can I vibe code without coding knowledge? Yes, and the app builders in the next section are made for people who have never programmed. Lovable, a Swedish app builder, had some 8 million users by March 2026, TechCrunch reported. Judging the result takes training: nobody can see from the outside whether a login really keeps strangers out.
Can ChatGPT build an app? A chat assistant such as ChatGPT, Claude or Gemini can write the code for a small app, and you then have to copy it out, save it and run it yourself. For anything larger than one file, the makers offer separate tools that create the files and run them: OpenAI’s is called Codex, Anthropic’s is Claude Code, and Google builds apps inside AI Studio.
Vibe coding tools: which one for which job
Vibe coding tools come in three kinds. Chat assistants write code that you copy out yourself. App builders such as Lovable, Bolt, Replit and v0 build, run and host the app from your description. Coding agents such as Claude Code, Codex, Cursor and GitHub Copilot work inside your own files and suit people who can read code.
Two of the ten come from Europe: Lovable from Stockholm and Vibe from Mistral AI in Paris. Names and owners change fast. Windsurf has been called Devin Desktop since June 2026, and Google’s Firebase Studio has taken no new sign-ups since June 2026 and closes in March 2027. Whichever tool you choose, check that you can take your code and your data with you. Lovable answers the question of who owns the projects built on it with “You do. You own your code”.
Google’s own search data shows that people look for the tool more than for the word. Searches for “claude code” in the United States started from zero in January 2025 and overtook “no code” in January 2026. Averaged over 2026 they were one and a half times as frequent as “no code” and more than ten times as frequent as “vibe coding”. The United Kingdom and Germany show the same order.
Is vibe coding free? Trying it is free. Lovable gives five build credits a day, v0 allows seven messages a day, and Codex, Cursor, GitHub Copilot and Vibe have free plans. A free allowance lasts for one short sitting. A month of regular use costs $20 to $30 with most tools, and the plans for people who build all day cost $100 a month or more. An app that other people use adds running costs for hosting and a database.
How to vibe code: seven steps
To vibe code, or to build an app with AI, follow seven steps: start with one small thing, write down what it should do, ask the AI for a plan, build in small steps, test with cases where you know the answer, keep passwords and real data out, and have the code reviewed before anyone else uses it.
The steps come from the tool makers’ own guides, which largely agree with each other. To show the steps on a real case, we had Claude Code, Anthropic’s coding agent, write the brief, propose a plan, and build and test a small tool for this guide: a notice-period calculator. You enter the day a contract ends and the notice period, and the tool shows the last day on which notice still counts. It is one file, holds no personal data and has two traps that calendars are known for: months of different length and weekends.
Step 1: Start with one small thing
Lovable’s guide says it in six words: “one user, one action, one outcome.” A tool that does one thing can be checked by one person. Our calculator has one user, the person who looks after the contracts, one action, entering two values, and one outcome, a date.
Step 2: Write down what it should do
One page is enough, written before any code exists: who the tool is for, what goes in, what comes out, the rules, and what it must never do. GitHub calls such a page the “shared source of truth” between you and the AI. If you cannot write the page, ask the AI to interview you until it could write it for you. The most useful part of our page was a list of ten cases with the expected answers written down before the tool existed.
Step 3: Ask for a plan and approve it
OpenAI’s guide for its own agent advises to “ask Codex to plan before it starts coding”, and Lovable has a plan mode for the same purpose. A plan costs a minute and shows what the AI has understood. The plan came back with a question about a case the brief had not listed:
A contract ends on 30 June, notice is one month. By the brief’s rule 30 June is the last day of its month, so the result is 31 May. Plain date arithmetic would say 30 May. I will follow the brief (31 May) and add the case to the tests. Please confirm.
The answer followed from the brief’s rule, 31 May, and the case went into the tests as number eleven. A person who works with contracts sees at once why the question matters. It is the kind of question to answer yourself, because only you know how your contracts count.
Step 4: Build in small steps and save each working state
“Small prompts compound,” says Lovable’s guide: ask for one part, look at it, then ask for the next. Every tool has a way to keep a version you can go back to, and it is worth using after each step that works. Our tool has two parts: the date calculation, marked off inside the file so that the tests run exactly that part, and the page around it.

Step 5: Test with cases where you know the answer
Run the cases from your page and compare each result with the answer you wrote down. The test run covered the eleven date cases and five wrong inputs, such as a notice period of zero and a 31 February. The first version passed all sixteen.
The first version got every date right, and the reason lies in steps 2 and 3: the traps had been named before any code was written. To see what they protect against, the same eleven cases went through JavaScript’s built-in one-line date arithmetic, which knows no end-of-month rule. Of the eight cases counted in months it got seven wrong; the three in days and weeks came out right. For a contract ending on 31 December with three months’ notice it returned 1 October, because there is no 31 September.
For anything with a login, Lovable’s guide adds one more test: “always test with two different users”, to make sure that one cannot see the other’s data.
Step 6: Keep passwords, keys and real data out
Access keys belong neither in the code nor in a prompt; Replit and GitHub both offer features whose stated purpose is to keep them out of the code. Use made-up data while you build, and check whether the tool trains on what you type (more on that under EU law below). Our calculator avoids the question by design: it stores nothing and sends nothing, and a search of the finished file for anything that loads, stores or sends data came back empty.
Step 7: Have the code reviewed before anyone else uses it
Lovable tells its users: “You are still responsible for your app’s security.” Google’s guide lists a review by a human expert as a step of its own, and the cyber security agencies of Germany and France wrote in a joint paper that AI coding assistants “are no substitute for experienced developers”. We gave the finished file, and nothing else, to a second, fresh AI session and asked it to find faults. It checked 52,608 combinations of end dates from 2024 to 2029 and notice periods of 1 to 24 months and found no wrong date for realistic input, and nothing that sends or stores data. Among its other findings: a year typed with two digits lands in the 1900s. For a notice period in months the tool picks the latest day that can be defended, 31 March for a contract that ends on 30 April with one month’s notice, and a contract worded differently could mean 30 March. “Last day to give notice” can be read as the day to post the letter, although it is the day the notice has to arrive. The notice period comes filled in with three months, so someone who only enters a date gets a confident answer for a period they never chose. And “Contract ends on” leaves open whether the last day of the term or the renewal date is meant. We left the calculation as it was, findings included.
A calculator in one file is quick to review, and this review was done by a machine. Anything that stores data, has a login or is used by customers has to be read by a person who can read code and whose job it is to find faults.
Vibe coding security risks: real cases
The security risks of vibe coding that have shown up in public are of three kinds: an AI agent that changes or deletes live data, an app that leaves its database open to strangers, and an agent holding an access key that allows more than the task needs. Each case below includes how the company answered.
An agent deletes a live database. The best-known case is one we described in What is an AI agent? Replit’s coding agent deleted data from the live database of an app that Jason Lemkin of the software community SaaStr was building, although he had declared a code freeze. Lemkin made it public on X on 18 July 2025. The Register reported that the agent had also told him the data could not be restored, which turned out to be wrong: the rollback worked. Two days later Replit’s chief executive Amjad Masad responded publicly: “Unacceptable and should never be possible.” He wrote that he had contacted Lemkin as soon as he saw the post. Replit began to separate test and live databases automatically and promised a mode for planning without changes, a refund and a postmortem.


Apps built with one app builder left data open in 2025. In March 2025 Matt Palmer, who worked at Replit at the time, a competitor of Lovable, and a colleague examined 1,645 apps built with Lovable and found that 170 of them let outsiders read or change data, because the rules on who may access the database were missing or too weak. The finding was entered in the public register of security holes as CVE-2025-48757, rated 9.3 out of 10. The same entry records Lovable’s objection: the company disputes the finding, because each customer is responsible for protecting the data of their own app. Lovable introduced a check that scans an app for security problems before it is published, and wrote in June 2025 that wrong database settings can still slip through.
An agent with a master key. In April 2026 the hosting company Railway described how an AI coding agent had found an access key for a customer’s Railway account stored on the customer’s computer and used it to delete a database. The key allowed everything the account allowed. Railway recovered the data and changed its service so that every deletion can be undone for 48 hours.
Researchers who audited 200 publicly deployed vibe-coded apps, in a paper first posted in June 2026 and revised in September, found at least one security hole in 91% of them, and rated about two thirds of the holes as critical or high. The paper is a preprint, and a hole that is online is enough for an attacker.
Is vibe coding good or bad?
Vibe coding is good for trying an idea, for a tool that only you use and for showing a developer what you mean. Vibe coding is bad as the only step between an idea and software that customers rely on. People who build software for a living use AI every day and check what it writes.
In Stack Overflow’s 2026 survey, which drew 30,903 responses, 73% of those asked said they use AI coding assistants and agents daily. Asked how far they trust what the AI produces, more than 87% expressed some level of trust, against 31% a year earlier by Stack Overflow’s count, when the question was worded differently. The largest group, 48%, trusts the output only when it can be verified. 7% trust it for many tasks including important decisions.
Whether AI makes experienced developers faster is less certain than it feels to them. The research group METR ran a controlled trial in 2025 with 16 experienced developers and 246 real tasks. With AI tools they took 19% longer, and afterwards they still believed they had been 20% faster. METR’s follow-up of February 2026 points to a speed-up, within a margin that includes none, and METR itself calls the new data an unreliable signal, because many developers no longer wanted to work without AI.
Will AI replace programmers? The figures in this guide do not show it. At Google three quarters of new code comes from AI and engineers approve it; in Stack Overflow’s survey nearly half of the developers trust AI output only where they can check it. The work is shifting from typing code to deciding what should be built and judging whether it was built right. Karpathy’s line for it, from February 2026: “It’s not magic, it’s delegation.”
Is vibe coding legal? What EU law asks of a company
Vibe coding is legal, and EU law makes no difference between code written by a person and code written by AI: the company that offers the software answers for it. GDPR applies as soon as the app processes personal data, new product liability rules apply from 9 December 2026, and the Cyber Resilience Act covers software that customers install.
Where your prompts and your code go. Whether a maker trains its AI models on them depends on the tool and the plan. Lovable’s privacy policy says they are, on its non-business plans, unless you opt out. Mistral says the same for the Free, Pro and Teams plans of Vibe. Anthropic does not train on code sent to Claude Code under its commercial terms; on plans for private users it depends on a setting. Cursor does not use customer data for training when its Privacy Mode is on. The maker’s home country settles little: Mistral says it prefers providers within the European Union and allows others in exceptional cases, and Lovable processes data in several countries, including the United States.
The contract GDPR asks for. As soon as the app stores data about people, the tool maker and the database host work on your behalf. Lovable includes the data processing agreement this requires in its Business and Enterprise plans; on a cheaper plan, ask before real data goes in.
Liability. Under the new product liability directive, the manufacturer of software, which includes a company offering its own app, is liable for damage a defect causes to people, such as injury or lost private data, without the injured person having to prove fault. Germany published its law to that effect in October 2026. The duty to label a chatbot comes from the AI Act, and the dates are in our overview of the EU AI Act.
Vibe coding for small business: build it, or use what exists?
For a small business, vibe coding pays off for a tool that nobody sells: a calculator for your own price list, a form for your own process. For common office jobs, finished products exist, and using one spares you the building.
Zedar is such a product: over 140 ready-made agents and tools for office work. Every answer shows the source passage, files and answers are never saved on Zedar’s servers, and each seat is billed at €200 per month, with no throttling. The agents and tools run on EU servers that Zedar operates itself, or on one in your office.
Name the job you wanted a tool for, and we show you what Zedar has ready-made.
Request a callAll sources checked in November 2026.
- Our own data and example: Google Trends, web search, United States, United Kingdom and Germany, to October 2026; the notice-period calculator with its brief, plan and test runs, built for this guide with Claude Code
- GitHub Innovation Graph: data on public activity on GitHub, git pushes per economy and quarter, release of 28 October 2026 (CC0)
- GitHub: Octoverse: Commits, pushes reach new highs in 2026 as developers build with agents, 28 October 2026
- Apps built with AI: Pieter Levels on X, 22 February 2025 and 11 March 2025; Wix, acquisition of Base44, 18 June 2025; Lenny’s Newsletter, The Base44 bootstrapped startup success story, 6 July 2025; Wiz, Critical vulnerability in Base44, July 2025; Peter Steinberger, Shipping at inference speed, 28 December 2025, and OpenClaw, OpenAI and the future, 14 February 2026; Star History, OpenClaw surpasses React, 1 March 2026; CVE-2026-25253; Boris Cherny on X, 12 January 2026, and the build time as relayed on X the same day; Lovable, How Sabrine Matos built Plinq, 18 September 2025; Y Combinator’s winter batch: A quarter of startups in YC’s current cohort have codebases that are almost entirely AI-generated, TechCrunch, 6 March 2025
- Andrej Karpathy on X: post of 2 February 2025, post of 4 February 2026 and reply of 25 February 2026
- Collins Dictionary: Collins’ Word of the Year 2025, 6 November 2025
- Simon Willison: Not all AI-assisted programming is vibe coding (but vibe coding rocks), 19 March 2025, and Vibe engineering, 7 October 2025
- GitHub: Spec-driven development with AI: get started with a new open source toolkit, 2 September 2025
- Google: Alphabet Q3 earnings call: CEO Sundar Pichai’s remarks, 29 October 2024, and Sundar Pichai shares news from Google Cloud Next 2026, 22 April 2026; Google Cloud, Vibe coding explained: tools and guides, updated 13 October 2026
- Anthropic: When AI builds itself (share of merged code as of May 2026) and Claude Code: data usage
- Lovable’s users: Lovable says it added $100M in revenue last month alone, with just 146 employees, TechCrunch, 11 March 2026
- Prices and plans: Lovable with its plan documentation, Bolt, Replit, v0, Google AI Studio and its Build mode, Claude, Codex, GitHub Copilot, Cursor (archived copy of 17 November 2026) and Mistral, checked in November 2026
- Renames and owners: Cursor, Cursor is now a part of SpaceX, 14 August 2026; Cognition, Devin Desktop FAQ; Google, Firebase Studio sunset and project migration
- The tool makers’ guides: Lovable, How to build a real product with Lovable and Security overview; OpenAI, Codex best practices; Replit, Secrets; GitHub, About push protection
- BSI and ANSSI: AI Coding Assistants, September 2024
- Replit, July 2025: post by Jason Lemkin, 18 July 2025; post by Amjad Masad, 20 July 2025; Vibe coding service Replit deleted production database, The Register, 21 July 2025
- Lovable, CVE-2025-48757: Matt Palmer, Statement on CVE-2025-48757, 29 May 2025; entry in the US National Vulnerability Database; Semafor’s report on the finding, 29 May 2025; Lovable, Secure vibe coding, 9 June 2025
- Railway: Your AI wants to nuke your database. Guardrails fix that., 29 April 2026
- Deng and others: Understanding the (in)security of vibe-coded applications, preprint, 22 June 2026, revised 14 September 2026
- Stack Overflow: 2026 Developer Survey and its AI section
- METR: Measuring the impact of early-2025 AI on experienced open-source developer productivity, 10 July 2025, and We are changing our developer productivity experiment design, 24 February 2026
- Training on prompts and code: Lovable, privacy policy, and data processing agreement; Mistral, help centre, and privacy policy; Cursor, privacy overview
- EU law: GDPR, Regulation (EU) 2016/679; Product Liability Directive (EU) 2024/2853; Cyber Resilience Act, Regulation (EU) 2024/2847; European Commission, guidance on the Cyber Resilience Act, 27 July 2026; AI Act, Regulation (EU) 2024/1689; Germany, Federal Law Gazette 2026 I No. 321