The definition

Say you want a web page that shows when a library is open. You give the tool a schedule and ask for a page someone could read on a phone outside the library. The first version puts the opening times below a large photo. Instead of editing the file, you ask the AI to remove the photo and move the hours to the top. You open the new version to see if it did what you asked. The AI writes the code while you decide what to keep by trying the result.

That arrangement is handy while you're figuring out what the page should do. You can try a short list of hours and a grid of day cards before deciding which one is easier to scan. If you throw away both versions, the experiment still answered a question. The work changes when you decide to give the page a public address and tell people to check it before they walk over. Someone then needs to know where the hours are written, how to correct them, and whether the page still works after the correction. You can start by looking at the preview and switch to reading the file once you have something you want to keep.

Where the term came from

Andrej Karpathy coined "vibe coding" in his February 2, 2025 post on X. He described talking to an AI coding tool, always choosing "Accept All" without reading the diffs, and pasting error messages back into the tool to get a fix. A diff is the list of lines a tool added, removed, or changed. The description was informal and deliberately loose: in his words, you "forget that the code even exists." He framed it as a way to make throwaway weekend projects.

The "Accept All" part is useful for understanding what was new about the phrase. A human had always been able to describe a program for someone else to write. In Karpathy's account, the feedback loop could run almost entirely through conversation and a preview, without the person stopping to work out what the source code said. If a change made the screen look right, he could move on to the next thing he wanted to try. He also described letting some bugs go and asking for workarounds instead of finding out why the code failed.

In broader use, someone might say they vibe coded a page simply because they started with a prompt instead of a blank file. That shorthand leaves out an important part of the story: what they did after the tool produced the page. Did they publish what they saw in the preview, or did they read the changes and test the parts that the preview couldn't prove? If you're deciding whether to reuse the work, ask how it was checked before drawing conclusions from the label.

What vibe coding is not

In its original sense, vibe coding is one kind of AI-assisted coding. A developer can ask an AI tool for the same library page, read the code it produces, and reject a change that adds more than the page needs. They might keep the HTML, which gives the page its structure, and remove a script that hides the schedule until the visitor taps a button. They can use CSS, the language that controls how the page looks, to give the schedule room on a small screen. That's AI-assisted work with a person making decisions about the implementation, not just the appearance. The distinction holds even if the person never types a line of code from scratch.

Vibe coding also describes a way of working, not a type of tool. You can do it in a chat window by copying code into a file, or in an editor by letting the tool make a change for you. An editor that lets you approve every change gives you the chance to review it, but clicking approve does not tell anyone what you checked. A chat window can support careful work too, if you ask for one small change and compare it with the file you already have.

One way to tell the two approaches apart is to ask what happens when a change works and you still turn it down. Suppose the AI adds a badge that says "Open now" and the badge looks right on Wednesday afternoon. You could leave it out because you don't want the page to calculate business hours in the first place. Showing a schedule meets the original need, and now nobody has to update a second set of rules for holidays or check what happens when a visitor's device is set to a different time zone.

Way of workingWhat counts as done for the library board
Vibe coding in the original senseThe preview shows the hours where you wanted them, so you move on.
Reviewed AI-assisted codingYou read what changed, confirm the hours against the schedule, and check that the page still works without a mouse.
Editing by handYou change the hours yourself and run the same checks before sharing the page.

A site builder with ready-made blocks is another option. If it already has an hours block you can update, you may have no reason to generate a custom one. Think about the person who will make the next change: editing a row in a tool they already use might suit them better than asking an AI to rewrite a file each time the library closes early.

How it works in practice

For a first experiment, make a notice board for the fictional Alder Street Library. It needs a name, a weekly schedule, and a place for a short notice about a change in hours. Use made-up information and keep it in a local file you can open in a browser. Leave out the photo, the map, and the calendar for now so the first draft answers one question: when can someone come in?

A prompt can be short if it gives the tool both the facts and the limits of the job:

Make one self-contained HTML file for the fictional Alder Street Library.
Show these hours: Monday closed, Tuesday to Friday 10 a.m. to 6 p.m.,
Saturday 10 a.m. to 2 p.m., Sunday closed.
Put the hours near the top and use a heading called Opening hours.
Use plain HTML and CSS with no JavaScript or external requests.
Return the file contents without creating other files.

Save the result as library.html and open it in a browser. Read it from the top without looking back at the prompt first. If you have to hunt for the hours, ask to move them above everything except the library name. Narrow the browser window and check whether the words still fit without scrolling sideways. If they don't, describe what you see: "At phone width, the Saturday closing time sits off the right edge." That gives the tool something more specific to fix than "make it mobile friendly."

Then try a change with a fact you can verify: on Wednesday the library closes at 4 p.m., and every other day stays the same. Before you ask for the edit, save a copy of the version that works. Ask the AI to put Wednesday on its own line without changing the other hours or the layout. If the old schedule grouped Tuesday to Friday, you now have a useful test: does the new page give Wednesday its own hours without changing any other day's times? It's possible to show the new closing time in a notice and accidentally leave the old time in the main schedule. Read both places as a visitor would rather than checking only for the words "4 p.m."

This is a good point to look at the source file. Use Find for Wednesday and look at the text around it. A plain paragraph such as <p>Wednesday: 10 a.m. to 4 p.m.</p> gives you a change you can explain and repeat on your own. If the AI has made a table, find the row and identify which cell is the day and which is the time. Ask the tool to explain the part you don't recognize without editing it, then compare the explanation with the actual file.

To check your understanding, change Wednesday to 5 p.m. in your copy and reload the page. If the old time still shows, first check that the browser has the file you edited open. Then find out whether the hours are written more than once or the page is building the display from a separate set of values. For a small notice board, you can ask for a simpler file with the schedule written directly in the HTML. Put the time back to 4 p.m. and reload again so the example ends with the schedule you intended.

If you want to try a second change, add a line above the schedule that links straight to it. In an HTML link, an address starting with # points to a named spot on the same page. For example, href="#hours" needs a matching id="hours" on the destination. On a short page the browser may have no room to scroll, so look for #hours at the end of the address after you activate the link. Rename the heading's id in your copy and see what happens, then make the two names match again. That gives you something concrete to check the next time the AI writes a link you haven't seen before.

The limits that matter

A preview shows the version the browser drew in front of you. It can't tell you that a visitor can reach a link with a keyboard, or that you've used the right source for a date. Try the hours board at a narrow width and at higher zoom, and use Tab to reach any links and Enter to follow them. If the page has a "Skip to opening hours" link, it should go to the actual schedule heading. The text that looks like a heading should also be marked as a heading in the file, so people using a screen reader can navigate by headings. A page can fail those checks without showing an error.

Ask someone who hasn't seen the draft to find out whether they can come in at 5 p.m. on Wednesday. Give them the file or show them the page without telling them where to look. If they find the wrong answer, note which line they used before asking for a redesign. It might be enough to remove a stale notice or put "Wednesday" at the start of the right line. You learn more from watching them use the board than from asking whether it looks good.

The code can also do more than the page appears to do. For this board, a page that shows words should not need to load a package, use an account, or send information anywhere. If the draft comes back with a remote font or a script, ask what it does and request a version without it if it isn't needed. An AI chat that returns text leaves you to decide what to save and run. A tool that can edit files or run commands may be able to act on the request directly, depending on the permissions you give it. For the board, keep the tool in a folder set aside for the experiment and decline permission to install software, read unrelated files, or publish the site. A prompt stating those limits is useful, but keep the tool's actual permissions just as narrow.

Think about what happens when you're wrong. A wrong opening time can cost a visitor a trip, even on a site with no login or forms. For a public hours board, have a person responsible for the schedule compare the page with an approved copy before it goes live. Make sure that person can change the hours and restore the last working version if an edit goes wrong. The AI can offer a checklist, but it can't know whether the branch manager approved a change you never told it about.

Once a site takes payments or stores personal records, you have to check how it handles information beyond what's visible on the page. A demo that accepts fake library card numbers can show what a form might look like. That doesn't tell you where real numbers would be stored, who could read them, or what happens if the service goes down. Keep those features out of a first site and get qualified help before taking on that responsibility. For the hours board, you can avoid collecting anything by pointing people to the library's existing contact page instead of adding a form.

Can I publish something I built this way?

Yes, if you can check and maintain what you're publishing and the review matches the stakes. For a plain page, check the actual content, confirm the page works on the devices people are likely to use, and read the code that makes it work. If a real service will depend on it, decide who owns changes and how they'll put the previous version back before anyone depends on the new one. If you can't explain what the site runs or what it collects, keep it as a private demo until someone can review it.

How to start, responsibly

Choose something you can finish and check in one sitting. An hours board is a good first project because you can put the whole schedule on paper and compare it with the page, day by day. Use fictional details until you know what you have and how it works. Keep a clean copy from before each meaningful change so you can see where a mistake came from and go back without having to describe the old version to the AI.

If a project is going to outlast the afternoon, keep a short note with the file. For the board, record where the official schedule comes from and which line you change when a day closes early. If you worked with an AI chat, put that information in the project itself so the next person doesn't need your account or the original conversation to make a correction.

Write down how you'll know the page is ready before asking the tool for polish. For this board, the test is whether you can find Wednesday's closing time at phone width, distinguish closed days from days with hours, and reach any links by keyboard. Add a test for your next edit: change one time in the file and confirm that only the intended day changes in the browser. If that is hard to do, ask for a smaller change or a simpler page instead of adding another feature. You can usually tell whether a proposed simplification helped by trying that one edit again.

When you get an error, keep a note of what you were doing and what you expected before you ask the AI to fix it. Use only the part of the error that explains what happened, leaving out private information and credentials. After the fix, repeat the original action and check something that used to work, such as the hours link. If a fix touches several things you didn't ask to change, keep the working copy and ask for a narrower edit. You should be able to say why you kept each change in a sentence you could repeat to the next person who opens the file.

Do I need to know how to code before I start?

You can start with a description and learn from the first file the tool makes. Learn enough HTML to find a heading, a link, and the text a visitor sees. Then learn what the styles change so you can tell a formatting problem from a mistake in the schedule. For an hours board, that's enough to start asking useful questions and making small corrections without handing the whole page back to the AI.

Is a better prompt enough to make the result reliable?

A better prompt gives the AI less room to guess, but the result still needs checking. If you say Wednesday closes at 4 p.m., you have a specific fact to verify and can spot it if the tool keeps the old closing time somewhere else. When a check fails, describe that one failure and try the same check after the edit. A longer prompt is worth writing when it names a constraint the draft missed, not when it repeats the request in louder terms.

For a guided first build, start with vibe coding for beginners. The Build with AI hub collects other ways to practice once you can explain and change a small page yourself.