AI AgentsExplainer

What Is Vibe Coding? I Built a Site That Way and Counted What It Cost

Vibe coding is describing what you want in words and taking the result without reading every line. I built besk.tech that way across eight months. Of 18,257 line additions in my own code, 9,386 were later undone. Here is what the git history shows, and where I stop letting the model decide.

By Vladimir Beskorovainyi

9 min read

Illustration: BESK TECH

Vibe coding is writing software by describing the goal in plain language and taking what the model produces without reading every line. The term comes from Andrej Karpathy, who posted it on X on February 2, 2025, and who limited his own approval to throwaway weekend projects. It works where a wrong line cannot reach far. On my own site, 9,386 of 18,257 line additions were later undone, and that was affordable only because every commit went past me as a diff.

I built besk.tech by describing what I wanted and taking what came back, without reading every line as it landed. Every commit still went past me as a diff. The git history kept the receipt: 18,257 line additions in my own code, 9,386 of them later undone, 8,871 standing today. The site works and has been live for months. I would build it the same way again.

What vibe coding is

Vibe coding is writing software by describing the goal in plain language and taking the result without reading every line. You stay in the conversation, not in the code. When something breaks, you describe the breakage rather than open the file.

The term is Andrej Karpathy's, from a post on X on February 2, 2025, in which he described a way of working where, in his words, you "fully give in to the vibes" and forget the code exists. He was specific about what that meant in practice: accepting every change, no longer reading the diffs, and, when a bug will not yield, asking for random changes until it goes away. He was equally specific about the scope of his approval, calling it fine for "throwaway weekend projects".

It is not the same as autocomplete in your editor, but the honest distinction is not the tool. An agentic editor that rewrites ten files while you read the diff is a different thing from the same editor once you stop reading. The axis is how much you review, and how far a wrong line can reach.

What it cost on a real project

My site runs on Next.js with two locales, a publication section, an assistant and the usual legal pages. It is not a static site: three API routes sit behind it, a contact form and a subscription form among them. I worked on it across 56 days with code changes, spread from March 5 to November 22, 2026, in 239 commits.

Line additions in my own code18,257
Deletions9,386
Lines standing today8,871
Share of additions later undone51.4%
Commits239
Explicit reverts3

One thing about that 51.4%, because it changes how the number reads. Git records an edited line as one deletion plus one addition, so 9,386 mixes code I threw away with code I rewrote in place. Half of what I wrote did not survive as written, which is weaker than "half the code was wasted" and is what the data supports. A deleted line is not a mistake either: products change and sections get dropped. This is the price of the method, not a defect rate. I counted with git log --numstat; the command and its caveats are at the end.

Three explicit reverts is a floor, not a count of abandoned directions. A direction that was quietly rewritten leaves no trace of that kind.

The file that changed most is App.jsx: 7,134 lines touched, 1,950 standing. Second is the file holding both locales' copy, 2,833 lines touched across 114 commits on 50 separate days, 707 lines in it now. On November 19 I moved one block about the AI ecosystem three times in a single day: removed it, brought it back as a list, then pushed it into another section as an index. 390 lines of that file changed that day. The same day I reverted my own change that had put products on the first screen, and the next day I reverted pointing two conference links at their recordings.

That is the method from the inside. Trying a direction is cheap and so is abandoning it, so you try more directions than you would if each cost an evening of typing.

What the session logs add

The repository shows what landed. The session logs show what it took. They start on June 1, 2026, three months into the project, so they cover 34 of the 56 working days.

Messages I typed402
Model turns, each tool call being one5,773
File edits by the model417
Shell commands run1,534

Fourteen model turns per message I typed: most of the work is the model running a command, reading the output and trying again. And nearly four shell commands per file edit. The typing is not the expensive part. The checking is.

Where the line is

The usual framing is a simple site versus a service. It is too comfortable, and my own project is the counterexample: it looks like a brochure and it has three API routes, two forms and a provider key behind it. The moment a page has an input, a credential or an inbox, it has stopped being a brochure.

The better question is blast radius. What is the worst thing a wrong line can reach, who does it reach, and would I find out. A misaligned footer reaches the eye. A missing permission check reaches someone else's record, and nothing on the page will tell you.

This is measurable, and the measurements are not flattering. BaxBench, from ETH Zurich, builds 392 backend tasks with functional tests and working exploits attached. Roughly half of the programs that passed the functional tests were still exploitable, and the flagship models of the time did not pass 35% on correct and secure together. Apiiro, looking at enterprise repositories, reported the shape rather than the size: syntax errors down 76%, logic bugs down 60%, privilege escalation paths up 322%. That one is vendor research from a company selling security tooling, so take the shape, not the decimals.

The most expensive places are authentication, permissions, and who is allowed to read which record. They are expensive because a mistake there does not look like a bug. It looks like a working page. And that list is not the whole list: the data layer, what the database actually allows, and a dozen other things worth looking at directly are on it too.

I have been wrong many times about what a description covers, on this project and others. The reason is not a careless model or a lazy prompt. You cannot write a prompt that covers everything. Whatever you specify, the unspecified part is where it breaks, and the only way I know to find that is to go and look.

The market is pricing this in. On November 18, 2026, the Swedish company CloudBackend raised €6.6 million, led by the family office of Carl-Henric Svanberg, the former Ericsson chief executive, to sell the part a prototype does not have: a database, authentication, subscriptions and payments, CRM, support and analytics. The way I read that round, the money is not going into writing code faster. It is going into the distance between a prototype that demos and a service that can hold customers.

How to get a usable result

A caveat before the list. What I do is not vibe coding in Karpathy's sense: he accepts every change and stops reading diffs, I describe the work the same way and then refuse to take it on trust. The rules below are the switch between the two. They are what works on my projects, not a security standard.

  1. Set the architecture and the security model first, before any code. What stores what, who can reach it, what is public. Leave it unstated and the model will invent all three, differently in each session.
  2. Put it in git from the first commit and read the commits like a team lead. Not the summary. The diff.
  3. Describe as much as you can, and do not expect the description to be enough. A vague request produces a plausible answer to a question you did not ask, so the result tracks the description more than it tracks the model. But no prompt covers everything, which is why rule 4 exists and why it is not negotiable.
  4. Check everything after the model reports success. A report that the work is done and done well is a sentence, not evidence. This is the rule I have paid for most often.
  5. Use agents and automated tests for the checking, knowing what they miss. An agent catches the mechanical. It does not catch a permission check that was never written: the scanners I use flag what is there, not what is missing. Where there is no test suite, this is a rule you hold yourself to, not a report you can show.
  6. Never show it secrets. Keys and tokens live in environment variables, never in the conversation, never in client-side code, never in the repository. Put a secret scanner on the push path rather than trusting yourself to notice.
  7. Give it the smallest rights that work. A read-only key, a development database, a separate provider project for anything experimental.
  8. Accept work by diff, not by report.
  9. Ask for the plan and the list of files it intends to touch before the code. This is where you catch the wrong direction while it is still free.
  10. Run the build after every large change, and the tests if the project has them.

Two gaps worth naming, because the list does not cover them. The model picks your dependencies with the same confidence it writes a footer, and nothing above audits them. And a rule that lives only in your head is a habit, not a gate: in a team, the gate belongs in CI.

What not to expect

A service. You get something you can show, which is already a lot, and the distance to the rest is what that €6.6 million is chasing.

Saved time, all of it. What you save is typing. The checking stays with you, and it grows with the size of what you built.

A warning when it is wrong. The model reports that the work is finished in the same tone either way.

What the numbers do not show

One person, one project, one toolchain, eight and a half months. There is no control group: I did not build the same site by hand, so none of this says whether the method is faster. I also have no baseline. Roughly half the line changes in a live product being rewrites may be ordinary for any project by any method. I did not find a figure I trust to compare against, so I am not claiming mine is high. I am claiming I know what mine is.

How I counted. git log --numstat over my own files, with node_modules, dist, .next and build excluded by pathspec, summing the added and deleted columns. Three caveats: with node_modules the same command reports 1,542,002 additions, a number about other people's libraries; across every file I wrote the share is 48.2% rather than 51.4%; and with --no-renames the repository reports 18,716 and 9,845. The repository is private, so these are numbers I can show you how to compute rather than numbers you can check.

Sources

  1. Andrej Karpathy introduces the term, X, February 2, 2025
  2. BaxBench: Can LLMs Generate Correct and Secure Backends? arXiv:2502.11844
  3. 4x velocity, 10x vulnerabilities, Apiiro
  4. CloudBackend raises €6.6M for the backend behind AI-built apps, SiliconANGLE, November 18, 2026
  5. CloudBackend raises €6.6 million, Dataconomy, November 20, 2026
  6. MCP Tools: I Have 738 Connected and Called 39 in a Month, BESK TECH

Vladimir Beskorovainyi

Vladimir Beskorovainyi, Enterprise AI Architect & CTO, author of the Amazon bestseller "Enterprise AI: The KATA Way", founder of Besk Tech (besk.tech)

More in this section

AI AgentsExplainer

MCP Tool Search: Does the Model Pick the Right Tool Out of 738?

Readers asked whether 738 connected tools make the model pick the wrong one. I ran 71 tasks three times, twice with every server connected and once with 12 servers blocked. In 189 scored picks it never took a tool from the wrong server. It took the shell 19 times.

Get new articles by email

One message when something new is published. No other mail, and you can stop at any time.

The address is used for this one letter and nothing else. Privacy

← All articles