Topic guide · 6 recordings · 19 verbatim quotes

Andrej Karpathy on Prompting

Karpathy treats prompting as a new kind of programming: success comes from managing context, choosing the right model and tools, and keeping humans in the loop.

In short
  • Prompting is programming in English for a new kind of computer.
  • Good prompting is mostly context management: keep the window relevant, short, and efficient.
  • Use the right model for the task, especially reasoning models for math, code, and hard problems.
  • Prompts are not enough by themselves; tools like search and Python matter when facts are fresh or calculations are needed.
  • As systems become agentic, prompting expands into orchestration and human supervision, not just writing one clever instruction.

Prompting is a form of programming

Karpathy’s central idea is that prompting is not a trick for chatbots; it is a real programming interface. He describes the shift to large language models as a new software layer where natural language becomes the control surface for computation. In that view, a prompt is less like a casual request and more like a program that steers a model toward a task.123

This matters because it changes what skill is being developed. If software used to mean writing explicit code, prompting means specifying behavior in language for a model that can interpret instructions, examples, and constraints. Karpathy frames that as a new paradigm alongside earlier software paradigms built from hand-written code and neural networks.453

Most prompting gains come from context management

Karpathy emphasizes that the context window is the scarce resource you are programming with. The model only works with the tokens currently in play, so prompt quality is not mainly about fancy phrasing; it is about making sure the right information is present and the wrong information is absent.67

That leads to a practical rule: do not keep dragging irrelevant chat history forward. When the previous tokens no longer help with the next task, start fresh so the model can focus on the current problem. This keeps prompts cheaper, clearer, and more effective.867

His mental model is that answers emerge from what is already inside the active token window plus what the model has compressed from training. If the needed setup is not in context, performance suffers; if distracting material crowds it out, performance also suffers.96

Prompt well, but also pick the right model and tools

Karpathy does not treat prompting as all-powerful. Different models have different strengths, and for math, coding, or difficult reasoning, he recommends switching to models designed to spend more effort on reasoning when a standard model is not enough.1011

He also stresses that language models are limited by their built-in knowledge and by the fact that they generate likely text. When a task depends on current information or reliable computation, the right move is to give the system tools such as search or Python instead of hoping a prompt alone will fix the problem.121311

This is why he presents LLM use as workflow design, not just prompt writing. The practical question is: what belongs in the prompt, what should be delegated to a stronger model, and what requires an external tool.131110

Prompting works because models compress and expose knowledge

Karpathy often explains LLMs in mechanistic terms: they are learned weights run by code, and pretraining compresses enormous amounts of text into those weights. Prompting is effective because it can elicit and organize patterns already latent in that compressed system.1415

At the same time, he warns against pretending the model is a fully reliable thinker with live access to the world. His description of the model as a compressed package of prior knowledge is a reminder that prompts draw on what has been learned already, not on a perfect external ground truth.121615

That view helps explain both the power and the limits of prompting. A good prompt can unlock knowledge and capabilities the model has, but it cannot create fresh facts, guarantee correctness, or replace verification.121311

As prompting scales up, it becomes orchestration with supervision

Karpathy’s view of prompting expands beyond single-turn chat. In agentic systems, the real work becomes assigning tasks, letting systems run, checking outputs, and composing larger actions from many model calls.

This is where prompting starts to look like software architecture. You are no longer only writing one instruction; you are shaping loops, handoffs, context, and review. Karpathy describes a world where agents increasingly do the execution while humans supervise, redirect, and decide what to trust.

So the practical lesson is that prompting is moving up the stack. The highest-leverage skill is not clever wording alone, but designing systems in which prompts, tools, and human oversight work together.3

Karpathy on prompting, in his own words

“…don't overload it with irrelevant information…”
Talk / online presentation, June 2023

Where to watch

  1. Andrej Karpathy on Using LLMs: Tools, Models, and Workflows2023 · 131 min · full transcriptBest practical guide to prompting as workflow: context windows, chat hygiene, model choice, and tools.
  2. Andrej Karpathy on Software 2.0 to 3.0: AI Changes Everything2024 · 121 min · full transcriptBest statement of the big idea that prompts are a new programming interface for software 3.0.
  3. Andrej Karpathy on AI Engineering: Programming Is Changing Fast2024 · 69 min · full transcriptShows how prompting fits into Karpathy’s broader view that programming is shifting toward natural-language control.
  4. Andrej Karpathy on Code Agents: The Loopy Era of AI2023 · 67 min · full transcriptBest for understanding how prompting evolves into agent orchestration and human supervision.
  5. Andrej Karpathy on Large Language Models: from pretraining to agents2024 · 60 min · full transcriptUseful for understanding why prompting works at all: models compress knowledge into weights that prompts can elicit.

Questions people ask

Go deeper · free courseThe Andrej Karpathy Course13 chapters on everything Karpathy taught, with a certificate at the end.Start learning →

Sources

Every quote above, word for word from the transcripts. Numbers match the text.

1
“…we're now programming computers in English…”
Conference keynote, March 2024
2
“The hottest new programming language is English.”
Stanford lecture, 2024
3
“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 →
4
“…software 2.0 are basically neural networks…”
Conference keynote, March 2024
5
“I call it software 2.0.”
Stanford lecture, 2024
6
“…think of the tokens in the context window as a precious resource…”
Talk / online presentation, June 2023
7
“…don't overload it with irrelevant information…”
Talk / online presentation, June 2023
8
“…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
9
“…the answer is already created, it's already in the token window…”
Deep Dive into LLMs like ChatGPT, 2022
10
“…these models that are thinking and trained with reinforcement learning…”
Talk / online presentation, June 2023
11
“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 →
12
“…you're talking to a zip file…”
Talk / online presentation, June 2023
13
“…use it as a tool in a toolbox…”
Deep Dive into LLMs like ChatGPT, 2022
14
“…a large language model is just two files…”
Intro to Large Language Models, YouTube interview, 2024
15
“…we kind of understand that they build and maintain some kind of a knowledge database…”
Intro to Large Language Models, YouTube interview, 2024
16
“…this network then dreams internet documents…”
Intro to Large Language Models, YouTube interview, 2024

How this guide was made: drafted with AI from the full transcripts of the recordings cited, then checked: every quotation must match a transcript word for word and be the speaker's own words, and an independent review gates accuracy. Methodology and corrections.

All 6 recordings of Andrej Karpathy on Prompting

Search every transcript
Open the full search page →