MIT Technology Review Explains: Let our writers untangle the complex, messy world of technology to help you understand whatâs coming next. You can read more from the series here . When OpenAI cofounder Andrej Karpathy excitedly took to X back in February to post about his new hobby, he probably had no idea he was about to coin a phrase that encapsulated an entire movement steadily gaining momentum across the world. â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,â he said . âIâm building a project or webapp, but itâs not really codingâI just see stuff, say stuff, run stuff, and copy paste stuff, and it mostly works.â If this all sounds very different from poring over lines of code, thatâs because Karpathy was talking about a particular style of coding with AI assistance. His words struck a chord among software developers and enthusiastic amateurs alike. In the months since, his post has sparked think pieces and impassioned debates across the internet . But what exactly is vibe coding? Who does it benefit, and whatâs its likely future? So, what is it? To truly understand vibe coding, itâs important to note that while the term may be new, the coding technology behind it isnât. For the past few years, general-purpose chatbots like Anthropicâs Claude, OpenAIâs ChatGPT, and Google DeepMindâs Gemini have been getting better at writing code to build software, including games, websites, and apps. But itâs the recent advent of specially created AI coding assistants, including Cursorâs Chat (previously known as Composer) and GitHub Copilot, that really ushered in vibe coding. These assistants can make real-time predictions about what youâre trying to do and offer intuitive suggestions to make it easier than ever to create software, even if youâve never written code before. âOver the past three or four years, these AI autocomplete tools have become better and betterâthey started off completing single lines of code and can now rewrite an entire file for you, or create new components,â says Barron Webster, a software designer at the interface company Sandbar. âThe remit of what you can take your hands off the wheel and let the machine do is continually growing over time.â ⌠and what doesnât count as vibe coding? But not all AI-assisted coding is vibe coding. To truly vibe-code, you have to be prepared to let the AI fully take control and refrain from checking and directly tweaking the code it generates as you go alongâsurrendering to the vibes. In Karpathyâs longer post he explained that when heâs vibe coding, he breezily accepts all suggestions that Cursorâs tool gives him and puts his trust in its ability to fix its own mistakes. âWhen I get error messages I just copy paste them in with no comment, usually that fixes it,â he wrote. âSometimes the LLMs canât fix a bug so I just work around it or ask for random changes until it goes away.â Essentially, vibe coding is interacting with a code base through prompts, so that the engineerâs role is simply to converse with the tool and examine its outcome, explains Sergey Tselovalnikov, a software engineer at the design platform Canva who regularly uses AI assistive tools. âAndrej is a bit of an influencer, and he defined that term very intentionally,â he says. âHe just posted a joke of sorts, but because he highlighted what was going on in the industry more or less correctly, it just took off.â Is vibe coding right for my project? The people most likely to benefit from vibe coding fall into two camps, says Tobin South, an AI security researcher at the MIT Media Lab. One is people like Karpathy, who already have a good grasp of coding and know how to fix any errors if anything goes seriously wrong if theyâre using it to build anything important; the other is absolute amateurs with little to no coding experience. âIâd define vibe coding as having a vision that you canât execute, but AI can,â he says. The major appeal of vibe coding lies in how easy and accessible it is. The AI assistive tools make it much quicker to produce code and to whip up small projects like a prototype website, game, or web app than it would be for a human. But while this hands-off approach may make sense when it comes to creating these kinds of low-stakes, simple digital products, itâs far riskier in bigger, more complex systems where the stakes are much higher. Because AI coding tools are powered by LLMs, the code they generate is just as likely to contain errors as the answers LLM-powered chatbots spit out . Thatâs a big problem if what youâre trying to code requires access to large databases of information, security measures to protect that data, large numbers of users, or data inputted from users, says Tselovalnikov. âVibe coding can make a lot of errors and problems, but in the environment of a tiny game or a small app that doesnât store any data, itâs a lot less relevant,â he says. âIâd personally be a lot more careful with larger projects, because if you donât know if there are any security vulnerabilities and you didnât test the code yourself, thatâs very dangerous.â This is particularly applicable to non-coders. Leo, a user on X and a champion of vibe coding, found this out the hard way when he posted about having built a SaaS application (software that runs over the internet, instead of being downloaded to a userâs device) solely using Cursor last month. The post immediately caught the attention of mischievous web users, who instantly started poking holes in his serviceâs security. âGuys, Iâm under attack,â he posted two days later. âIâm not technical, so this is taking me longer than usual to figure out. For now, I will stop sharing what I do publicly on X. There are just some weird ppl out there.â Ultimately, while vibe coding can help make a vague idea for a website or a game into a reality, it canât make it reliable or secure. But there are already plenty of existing tools to do this, helping you with everything from creating databases to adding authentication measures. So while you canât vibe-code real, valuable, secure, robust apps into existence, it can be a useful place to start so long as youâre careful, says South. He believes that AI-assisted coding assistants are going to keep becoming more capable and that web hosting companies will keep integrating AI into their tools to make them easier to use, meaning the barriers to creating software will keep falling. âIt takes the cost of producing software and dramatically reduces it to an exponential degree,â he says. âThe world will have to adapt to this new reality. It isnât going anywhere.â
đ¤ What is vibe coding, exactly?
Back to all articles
HUGEAINEWS