[{"data":1,"prerenderedAt":275,"buildId":276},["ShallowReactive",2],{"page-\u002Fbuild\u002Fwhat-is-vibe-coding":3},{"id":4,"title":5,"body":6,"description":258,"extension":259,"how_to_steps":260,"hub":240,"meta":261,"navigation":262,"path":263,"primary_keyword":264,"published_at":265,"schema_types":266,"seo":270,"status":271,"stem":272,"updated_at":260,"wave":273,"__hash__":274},"pages\u002Fbuild\u002Fwhat-is-vibe-coding.md","What Is Vibe Coding? Definition, History, and Limits",{"type":7,"value":8,"toc":243},"minimark",[9,14,18,21,24,28,39,42,45,49,52,55,58,102,105,109,112,115,126,133,136,147,150,173,177,180,183,186,189,192,197,200,204,207,210,213,216,220,223,227,230],[10,11,13],"h2",{"id":12},"the-definition","The definition",[15,16,17],"p",{},"What is vibe coding?\nIt's a way to build software by describing what you want to an AI tool, trying what it makes, and asking for changes in plain English.\nIn the original sense, you judge the result mostly by what it does when you run it and spend little or no time reading the code.\nPeople also use the term more broadly for building with AI, even when they review the code before keeping it.",[15,19,20],{},"Say you want a web page that shows when a library is open.\nYou give the tool a schedule and ask for a page someone could read on a phone outside the library.\nThe first version puts the opening times below a large photo.\nInstead of editing the file, you ask the AI to remove the photo and move the hours to the top.\nYou open the new version to see if it did what you asked.\nThe AI writes the code while you decide what to keep by trying the result.",[15,22,23],{},"That arrangement is handy while you're figuring out what the page should do.\nYou can try a short list of hours and a grid of day cards before deciding which one is easier to scan.\nIf you throw away both versions, the experiment still answered a question.\nThe work changes when you decide to give the page a public address and tell people to check it before they walk over.\nSomeone then needs to know where the hours are written, how to correct them, and whether the page still works after the correction.\nYou can start by looking at the preview and switch to reading the file once you have something you want to keep.",[10,25,27],{"id":26},"where-the-term-came-from","Where the term came from",[15,29,30,31,38],{},"Andrej Karpathy coined \"vibe coding\" in ",[32,33,37],"a",{"href":34,"rel":35},"https:\u002F\u002Fx.com\u002Fkarpathy\u002Fstatus\u002F1886192184808149383",[36],"nofollow","his February 2, 2025 post on X",".\nHe 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.\nA diff is the list of lines a tool added, removed, or changed.\nThe description was informal and deliberately loose: in his words, you \"forget that the code even exists.\"\nHe framed it as a way to make throwaway weekend projects.",[15,40,41],{},"The \"Accept All\" part is useful for understanding what was new about the phrase.\nA human had always been able to describe a program for someone else to write.\nIn 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.\nIf a change made the screen look right, he could move on to the next thing he wanted to try.\nHe also described letting some bugs go and asking for workarounds instead of finding out why the code failed.",[15,43,44],{},"In broader use, someone might say they vibe coded a page simply because they started with a prompt instead of a blank file.\nThat shorthand leaves out an important part of the story: what they did after the tool produced the page.\nDid they publish what they saw in the preview, or did they read the changes and test the parts that the preview couldn't prove?\nIf you're deciding whether to reuse the work, ask how it was checked before drawing conclusions from the label.",[10,46,48],{"id":47},"what-vibe-coding-is-not","What vibe coding is not",[15,50,51],{},"In its original sense, vibe coding is one kind of AI-assisted coding.\nA 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.\nThey might keep the HTML, which gives the page its structure, and remove a script that hides the schedule until the visitor taps a button.\nThey can use CSS, the language that controls how the page looks, to give the schedule room on a small screen.\nThat's AI-assisted work with a person making decisions about the implementation, not just the appearance.\nThe distinction holds even if the person never types a line of code from scratch.",[15,53,54],{},"Vibe coding also describes a way of working, not a type of tool.\nYou 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.\nAn editor that lets you approve every change gives you the chance to review it, but clicking approve does not tell anyone what you checked.\nA chat window can support careful work too, if you ask for one small change and compare it with the file you already have.",[15,56,57],{},"One way to tell the two approaches apart is to ask what happens when a change works and you still turn it down.\nSuppose the AI adds a badge that says \"Open now\" and the badge looks right on Wednesday afternoon.\nYou could leave it out because you don't want the page to calculate business hours in the first place.\nShowing 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.",[59,60,61,74],"table",{},[62,63,64],"thead",{},[65,66,67,71],"tr",{},[68,69,70],"th",{},"Way of working",[68,72,73],{},"What counts as done for the library board",[75,76,77,86,94],"tbody",{},[65,78,79,83],{},[80,81,82],"td",{},"Vibe coding in the original sense",[80,84,85],{},"The preview shows the hours where you wanted them, so you move on.",[65,87,88,91],{},[80,89,90],{},"Reviewed AI-assisted coding",[80,92,93],{},"You read what changed, confirm the hours against the schedule, and check that the page still works without a mouse.",[65,95,96,99],{},[80,97,98],{},"Editing by hand",[80,100,101],{},"You change the hours yourself and run the same checks before sharing the page.",[15,103,104],{},"A site builder with ready-made blocks is another option.\nIf it already has an hours block you can update, you may have no reason to generate a custom one.\nThink 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.",[10,106,108],{"id":107},"how-it-works-in-practice","How it works in practice",[15,110,111],{},"For a first experiment, make a notice board for the fictional Alder Street Library.\nIt needs a name, a weekly schedule, and a place for a short notice about a change in hours.\nUse made-up information and keep it in a local file you can open in a browser.\nLeave out the photo, the map, and the calendar for now so the first draft answers one question: when can someone come in?",[15,113,114],{},"A prompt can be short if it gives the tool both the facts and the limits of the job:",[116,117,123],"pre",{"className":118,"code":120,"language":121,"meta":122},[119],"language-text","Make one self-contained HTML file for the fictional Alder Street Library.\nShow these hours: Monday closed, Tuesday to Friday 10 a.m. to 6 p.m.,\nSaturday 10 a.m. to 2 p.m., Sunday closed.\nPut the hours near the top and use a heading called Opening hours.\nUse plain HTML and CSS with no JavaScript or external requests.\nReturn the file contents without creating other files.\n","text","",[124,125,120],"code",{"__ignoreMap":122},[15,127,128,129,132],{},"Save the result as ",[124,130,131],{},"library.html"," and open it in a browser.\nRead it from the top without looking back at the prompt first.\nIf you have to hunt for the hours, ask to move them above everything except the library name.\nNarrow the browser window and check whether the words still fit without scrolling sideways.\nIf they don't, describe what you see: \"At phone width, the Saturday closing time sits off the right edge.\"\nThat gives the tool something more specific to fix than \"make it mobile friendly.\"",[15,134,135],{},"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.\nBefore you ask for the edit, save a copy of the version that works.\nAsk the AI to put Wednesday on its own line without changing the other hours or the layout.\nIf 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?\nIt's possible to show the new closing time in a notice and accidentally leave the old time in the main schedule.\nRead both places as a visitor would rather than checking only for the words \"4 p.m.\"",[15,137,138,139,142,143,146],{},"This is a good point to look at the source file.\nUse Find for ",[124,140,141],{},"Wednesday"," and look at the text around it.\nA plain paragraph such as ",[124,144,145],{},"\u003Cp>Wednesday: 10 a.m. to 4 p.m.\u003C\u002Fp>"," gives you a change you can explain and repeat on your own.\nIf the AI has made a table, find the row and identify which cell is the day and which is the time.\nAsk the tool to explain the part you don't recognize without editing it, then compare the explanation with the actual file.",[15,148,149],{},"To check your understanding, change Wednesday to 5 p.m. in your copy and reload the page.\nIf the old time still shows, first check that the browser has the file you edited open.\nThen find out whether the hours are written more than once or the page is building the display from a separate set of values.\nFor a small notice board, you can ask for a simpler file with the schedule written directly in the HTML.\nPut the time back to 4 p.m. and reload again so the example ends with the schedule you intended.",[15,151,152,153,156,157,160,161,164,165,168,169,172],{},"If you want to try a second change, add a line above the schedule that links straight to it.\nIn an HTML link, an address starting with ",[124,154,155],{},"#"," points to a named spot on the same page.\nFor example, ",[124,158,159],{},"href=\"#hours\""," needs a matching ",[124,162,163],{},"id=\"hours\""," on the destination.\nOn a short page the browser may have no room to scroll, so look for ",[124,166,167],{},"#hours"," at the end of the address after you activate the link.\nRename the heading's ",[124,170,171],{},"id"," in your copy and see what happens, then make the two names match again.\nThat gives you something concrete to check the next time the AI writes a link you haven't seen before.",[10,174,176],{"id":175},"the-limits-that-matter","The limits that matter",[15,178,179],{},"A preview shows the version the browser drew in front of you.\nIt 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.\nTry the hours board at a narrow width and at higher zoom, and use Tab to reach any links and Enter to follow them.\nIf the page has a \"Skip to opening hours\" link, it should go to the actual schedule heading.\nThe 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.\nA page can fail those checks without showing an error.",[15,181,182],{},"Ask someone who hasn't seen the draft to find out whether they can come in at 5 p.m. on Wednesday.\nGive them the file or show them the page without telling them where to look.\nIf they find the wrong answer, note which line they used before asking for a redesign.\nIt might be enough to remove a stale notice or put \"Wednesday\" at the start of the right line.\nYou learn more from watching them use the board than from asking whether it looks good.",[15,184,185],{},"The code can also do more than the page appears to do.\nFor this board, a page that shows words should not need to load a package, use an account, or send information anywhere.\nIf 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.\nAn AI chat that returns text leaves you to decide what to save and run.\nA tool that can edit files or run commands may be able to act on the request directly, depending on the permissions you give it.\nFor 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.\nA prompt stating those limits is useful, but keep the tool's actual permissions just as narrow.",[15,187,188],{},"Think about what happens when you're wrong.\nA wrong opening time can cost a visitor a trip, even on a site with no login or forms.\nFor a public hours board, have a person responsible for the schedule compare the page with an approved copy before it goes live.\nMake sure that person can change the hours and restore the last working version if an edit goes wrong.\nThe AI can offer a checklist, but it can't know whether the branch manager approved a change you never told it about.",[15,190,191],{},"Once a site takes payments or stores personal records, you have to check how it handles information beyond what's visible on the page.\nA demo that accepts fake library card numbers can show what a form might look like.\nThat doesn't tell you where real numbers would be stored, who could read them, or what happens if the service goes down.\nKeep those features out of a first site and get qualified help before taking on that responsibility.\nFor the hours board, you can avoid collecting anything by pointing people to the library's existing contact page instead of adding a form.",[193,194,196],"h3",{"id":195},"can-i-publish-something-i-built-this-way","Can I publish something I built this way?",[15,198,199],{},"Yes, if you can check and maintain what you're publishing and the review matches the stakes.\nFor 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.\nIf 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.\nIf you can't explain what the site runs or what it collects, keep it as a private demo until someone can review it.",[10,201,203],{"id":202},"how-to-start-responsibly","How to start, responsibly",[15,205,206],{},"Choose something you can finish and check in one sitting.\nAn 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.\nUse fictional details until you know what you have and how it works.\nKeep 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.",[15,208,209],{},"If a project is going to outlast the afternoon, keep a short note with the file.\nFor the board, record where the official schedule comes from and which line you change when a day closes early.\nIf 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.",[15,211,212],{},"Write down how you'll know the page is ready before asking the tool for polish.\nFor 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.\nAdd a test for your next edit: change one time in the file and confirm that only the intended day changes in the browser.\nIf that is hard to do, ask for a smaller change or a simpler page instead of adding another feature.\nYou can usually tell whether a proposed simplification helped by trying that one edit again.",[15,214,215],{},"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.\nUse only the part of the error that explains what happened, leaving out private information and credentials.\nAfter the fix, repeat the original action and check something that used to work, such as the hours link.\nIf a fix touches several things you didn't ask to change, keep the working copy and ask for a narrower edit.\nYou should be able to say why you kept each change in a sentence you could repeat to the next person who opens the file.",[193,217,219],{"id":218},"do-i-need-to-know-how-to-code-before-i-start","Do I need to know how to code before I start?",[15,221,222],{},"You can start with a description and learn from the first file the tool makes.\nLearn enough HTML to find a heading, a link, and the text a visitor sees.\nThen learn what the styles change so you can tell a formatting problem from a mistake in the schedule.\nFor an hours board, that's enough to start asking useful questions and making small corrections without handing the whole page back to the AI.",[193,224,226],{"id":225},"is-a-better-prompt-enough-to-make-the-result-reliable","Is a better prompt enough to make the result reliable?",[15,228,229],{},"A better prompt gives the AI less room to guess, but the result still needs checking.\nIf 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.\nWhen a check fails, describe that one failure and try the same check after the edit.\nA longer prompt is worth writing when it names a constraint the draft missed, not when it repeats the request in louder terms.",[15,231,232,233,237,238,242],{},"For a guided first build, start with ",[32,234,236],{"href":235},"\u002Fbuild\u002Fvibe-coding-for-beginners","vibe coding for beginners",".\nThe ",[32,239,241],{"href":240},"\u002Fbuild","Build with AI hub"," collects other ways to practice once you can explain and change a small page yourself.",{"title":122,"searchDepth":244,"depth":244,"links":245},2,[246,247,248,249,250,254],{"id":12,"depth":244,"text":13},{"id":26,"depth":244,"text":27},{"id":47,"depth":244,"text":48},{"id":107,"depth":244,"text":108},{"id":175,"depth":244,"text":176,"children":251},[252],{"id":195,"depth":253,"text":196},3,{"id":202,"depth":244,"text":203,"children":255},[256,257],{"id":218,"depth":253,"text":219},{"id":225,"depth":253,"text":226},"Vibe coding explained: where the term came from, what it means in practice, what it is not, and how to do it without shipping code you cannot read.","md",null,{},true,"\u002Fbuild\u002Fwhat-is-vibe-coding","what is vibe coding","2026-12-01T05:35:41Z",[267,268,269],"Article","BreadcrumbList","FAQPage",{"title":5,"description":258},"draft","build\u002Fwhat-is-vibe-coding","1","GLcbsHk8qh0xxLhuVDQLOZk-fuWbq-cPfIgUcWEIUGQ",1796185435706,"a1d53563-3a78-4678-8315-e5bd6a5bd80c"]