Chapter 9 of 13 · 17 min

Vibe Coding OS

Programming shifts from typing code to steering, reviewing, and orchestrating LLM workers.

Goal of this chapterAfter this chapter you will see how Karpathy connects prompts, coding agents, context management, tools, and human supervision into a new LLM-centered computing stack.
Watch this chapterAndrej Karpathy's key moments on vibe coding os, back to back
5 moments · 4 min
1 / 5
“…we're now programming computers in English…”
Conference keynote, March 2024 · 13:55

The lesson

Karpathy frames a new programming stack around language models. In his view, software has moved from handwritten code to neural nets and now to prompt-driven systems, where natural language becomes a real programming interface rather than just documentation1234. That shift matters because it changes the programmer’s job: less of the value comes from manually typing syntax, and more comes from specifying intent clearly enough that the model can act on it24.

To use this stack well, start with the right mental model of the model itself. Karpathy describes an LLM as a compact artifact with learned weights and runtime code, and he emphasizes that it carries compressed knowledge that can be queried but is not the same as a live, grounded system567. That is why prompting is not magic command issuance: you are steering a probabilistic system with limited context and imperfect recall, so clear task setup and realistic expectations are part of the craft78.

A big part of that craft is context management. Karpathy treats the context window as scarce working memory, which means irrelevant history actively hurts performance and cost instead of helping89. In practice, when the old tokens are no longer useful for the next task, the better move is often to start a fresh thread, keep only the needed state, and rebuild context intentionally around the current objective108.

From there, vibe coding becomes orchestration. Karpathy describes his own workflow as a shift away from writing code directly and toward delegating work to coding agents, letting them run, and reviewing what comes back1112. In that setup, productivity depends less on typing speed and more on how well you can keep multiple agents productively occupied, choose stronger reasoning modes when needed, and give tools such as search when the task depends on fresh information or external computation131415.

But he does not present this as full autonomy today. Karpathy thinks agents are the project of the coming decade, with important missing pieces such as durable memory and more robust operation over longer horizons161718. So the operating system of vibe coding is not 'let the model do everything'; it is human-supervised delegation, context curation, tool selection, and review of agent outputs inside a broader loop that still depends on human judgment171318.

5 principles from Andrej Karpathy

1

Program with prompts, not just code

Treat natural language instructions as a real programming surface for LLM-based systems. Your job is to specify intent, constraints, and desired behavior clearly enough that the model can execute useful work.

“…we're now programming computers in English…”
Conference keynote, March 2024
2

Guard the context window

Assume context is limited and valuable. Keep only information that helps with the next step, and start new conversations when old history is no longer relevant.

“…think of the tokens in the context window as a precious resource…”
Talk / online presentation, June 2023
3

Use agents as workers you supervise

Delegate substantial tasks to coding agents, but stay responsible for task definition, review, and composition. The leverage comes from managing parallel work and deciding what to trust, rerun, or refine.

“Yeah, I kind of feel like I was just in this perpetual I still am often in this state of AI psychosis just like all the time um because there was a huge unlock in what you can achieve as a person as an individual, right? Because you were bottlenecked by, you know, your typing speed and so on. But now with these agents it really, I would say in December is when it really just something flipped where I kind of went from 80/20 of like, you know, uh to like 20/80 of writing code by myself versus just delegating to agents. And I don't even think it's 20/80 by now. I think it's a lot more than that. I don't think I've typed like a line of code probably since December basically.”
No Priors interview, 2023answer page →
4

Match the model and tools to the task

Do not expect one default chat mode to solve everything. Switch to reasoning-capable models for hard math, code, or reasoning, and use tools like search when the answer depends on fresh information.

“…these models that are thinking and trained with reinforcement learning…”
Talk / online presentation, June 2023
5

Expect a long transition, not instant autonomy

Build workflows around partial reliability rather than assuming agents are already complete replacements for employees. Human oversight remains central because long-running memory, robustness, and sustained autonomy are still incomplete.

“…this is more accurately described as the decade of agents…”
Dwarkesh Patel interview, September 2024

In his own words

The quotes behind the lesson, word for word from the transcripts. Numbers match the lesson above.

1
“…software 2.0 are basically neural networks…”
Conference keynote, March 2024
2
“…we're now programming computers in English…”
Conference keynote, March 2024
3
“The hottest new programming language is English.”
Stanford lecture, 2024
4
“Okay, so software 3.0 is prompts, huh? And so I—I see this as quite new, unique. It's a new kind of a computer, and, uh, so in my mind it's, uh, worth giving it a new designation of software 3.0. And basically your prompts are now programs that program the LLM. I would argue that software 3.0 is actually…”
Conference keynote, March 2024answer page →
5
“…a large language model is just two files…”
Intro to Large Language Models, YouTube interview, 2024
6
“…we kind of understand that they build and maintain some kind of a knowledge database…”
Intro to Large Language Models, YouTube interview, 2024
7
“…you're talking to a zip file…”
Talk / online presentation, June 2023
8
“…think of the tokens in the context window as a precious resource…”
Talk / online presentation, June 2023
9
“…don't overload it with irrelevant information…”
Talk / online presentation, June 2023
10
“…if it is the case that those tokens are not any more useful to your next query, I encourage you to do this…”
Talk / online presentation, June 2023
11
“I don't think I've typed like a line of code probably since December basically.”
No Priors interview, 2023
12
“Yeah, I kind of feel like I was just in this perpetual I still am often in this state of AI psychosis just like all the time um because there was a huge unlock in what you can achieve as a person as an individual, right? Because you were bottlenecked by, you know, your typing speed and so on. But now with these agents it really, I would say in December is when it really just something flipped where I kind of went from 80/20 of like, you know, uh to like 20/80 of writing code by myself versus just delegating to agents. And I don't even think it's 20/80 by now. I think it's a lot more than that. I don't think I've typed like a line of code probably since December basically.”
No Priors interview, 2023answer page →
13
“The name of the game is how can you get more agents running for longer periods of time without your involvement doing stuff on your behalf?”
No Priors interview, 2023
14
“…these models that are thinking and trained with reinforcement learning…”
Talk / online presentation, June 2023
15
“Today, so in particular, we saw that this is very useful and gives additional accuracy in problems like math, code, and reasoning. So try without reasoning first, and if your model is not solving that kind of, kind of a problem, try to switch to a reasoning model and look for that in the user interface on top of that. Then we saw that we are rapidly giving the models a lot more tools. So as an example, we can give them an internet search. So if you're talking about some fresh information or knowledge that is probably not in the zip file, then you actually want to use an internet search tool. And not all of these apps have it.”
Talk / online presentation, June 2023answer page →
16
“…this is more accurately described as the decade of agents…”
Dwarkesh Patel interview, September 2024
17
“My reaction is we'll be working with these things for a decade. They're going to get better, and it's going to be wonderful. I was just reacting to the timelines of the implication. What do you think will take a decade to accomplish? What are the bottlenecks? Actually making it work. When you're talking about an agent, or what the labs have in mind and maybe what I have in mind as well, you should think of it almost like an employee or an intern that you would hire to work with you. For example, you work with some employees here. When would you prefer to have an agent like Claude or Codex do that work? Currently, of course they can't.”
Dwarkesh Patel interview, September 2024answer page →
18
“These models, when you boot them up and they have zero tokens in the window, they're always restarting from scratch where they were. So I don't know in that worldview what it looks like. Maybe making some analogies to humans—just because I think it's roughly concrete and interesting to think through—I feel like when I'm awake, I'm building up a context window of stuff that's happening during the day. But when I go to sleep, something magical happens where I don't think that context window stays around. There's some process of distillation into the weights of my brain. This happens during sleep and all this stuff. We don't have an equivalent of that in large language models. That's to me more adjacent to when you talk about continual learning and so on as absent.”
Dwarkesh Patel interview, September 2024answer page →

Reflect

  1. Pick one task you usually do by hand. How would you split it into: prompt specification, tool access, agent execution, and human review?
  2. Where are you currently wasting context window on background that does not help the next step? What would a cleaner context strategy look like?
  3. In your work, which tasks need a stronger reasoning model or external tools, and which are simple enough for a lightweight default model?

Check your understanding

1. What most changes in Karpathy's picture of vibe coding?
2. Why does Karpathy emphasize starting a new chat when topics change?
3. According to this chapter, when should you add tools like search or stronger reasoning models?

Go deeper

Search every transcript
Open the full search page →