Module 2: Uses · 3 min read
Coding with AI: From Autocomplete to Vibe Coding
Three generations of code tools, what Karpathy's term really means, and when it's risky.
Code is one of the areas where language models are strongest. The reason is simple: training data contains huge amounts of open-source code, and code can be checked: it either runs or it doesn't.
Three generations of tools
1. Autocomplete. GitHub Copilot, launched in 2021, suggests the next line or function while the developer types. The developer still runs everything.
2. Code editors with chat. Tools like Cursor let you request a change in plain language, and the model edits several files at once while understanding the whole project.
3. Code agents. Tools like Claude Code and OpenAI's Codex take a task, read the code, run tests, fix and come back with a result. This is already a special case of AI agents.
"Vibe coding"
On February 2, 2025, Andrej Karpathy, an OpenAI co-founder and former head of AI at Tesla, wrote that there's a new kind of coding: you give in to the vibes, ask the model for what you want, and almost forget the code exists. He himself noted it suits throwaway weekend projects. The term caught on very quickly and became a general name for building software in plain language.
In a June 2025 talk Karpathy expanded the idea: natural language is becoming a programming language, and language models are a new kind of computer programmed with it.
Who it's for
- Professional developers: less routine code, more time for planning and review. What the research says about the actual time savings comes up in the lesson on productivity.
- Non-developer professionals: small scripts, file processing, internal tools. Anyone who wants a full app without touching code at all will move to no-code platforms.
How to work well with a code agent
- Plan before code. First ask for a work plan, approve it, and only then let it execute.
- Small changes. One task at a time, with a save point (Git) before each step.
- Automated tests. Ask the agent to write and run tests. Code that passes tests is more trustworthy than code that "looks good."
- Read what it changed. Even without understanding every line, you can see which files were touched and ask about anything that looks odd.
The risks
- Security: code written without review can expose keys, give access to other users' data, or use libraries that don't exist.
- Technical debt: code nobody understands is very hard to maintain when it breaks.
- Real data: an app that handles money or personal information needs a professional eye before it goes live.
Bottom line: AI has dramatically lowered the cost of writing code. What remains expensive is deciding what to build, checking that it works, and keeping it secure. Vibe coding is great for experiments, but a product people rely on needs an organized workflow.