Chapter 12 of 13 · 19 min

Agents and Tool Use

Why capable AI workers are a decade-long project.

Goal of this chapterAfter this chapter you will understand Karpathy’s view of agents, coding delegation, computer use, memory, continual learning, multimodality, and the limits of today’s systems.
Watch this chapterAndrej Karpathy's key moments on agents and tool use, back to back
5 moments · 4 min
1 / 5
“…this is more accurately described as the decade of agents…”
Dwarkesh Patel interview, September 2024 · 0:49

The lesson

Karpathy treats agents as the main project of the next decade, not as something that will fully arrive in the next year. His benchmark is demanding: a real agent should behave more like an employee or intern you can work with over time, not just a chatbot that answers one prompt and stops1. That framing matters because it shifts the question from “can the model do a demo?” to “can it reliably carry work forward with minimal supervision?”

A big reason this will take time is that today’s models are still fundamentally session-based. They begin each interaction without durable carryover, so any useful working state has to be rebuilt in the context window, which Karpathy describes as a scarce resource that should not be filled with irrelevant material345. He points out that models still lack a good equivalent of long-term memory consolidation or continual learning, which makes sustained agent behavior much harder6.

Karpathy also thinks capable agents need more than language alone. In his practical workflow, models become much more useful when they can call tools such as search for fresh information and stronger reasoning modes for hard math, code, and reasoning tasks78. This fits his broader view of software 3.0: prompts are a new kind of program, written in English for a new kind of computer, but useful applications still depend on context management, orchestration, and human supervision rather than raw model output alone910.

Coding is the clearest near-term example of this shift. Karpathy says his own work has moved from directly typing code toward delegating to agents, reviewing their work, and trying to keep more agents productively running in parallel111213. The skill is no longer just producing tokens by hand; it is choosing tasks, setting up loops, checking outputs, and focusing your own time on the parts agents still cannot handle well.

Even so, Karpathy does not think current agents are yet robust general workers. He argues they rely heavily on knowledge compressed from existing data and are weaker when they have to move off the internet’s familiar patterns, which is why he is interested in separating a stronger problem-solving core from memorized knowledge1415. His deeper picture is that pre-training is a practical bootstrap for intelligence, but not the full recipe for durable, multimodal, continually learning agents that can operate independently in the world1617.

5 principles from Andrej Karpathy

1

Judge agents by whether you would trust them with real work

Do not confuse an impressive demo with an agent you can depend on. Use the employee-or-intern test: can it take a task, make progress over time, and reduce your involvement rather than constantly needing rescue?

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

Treat context and memory as core bottlenecks

Today’s systems do not naturally carry stable working state from one session to the next, so you must manage context carefully. Keep inputs relevant, reset when topics change, and recognize that durable memory and continual learning are still unfinished pieces.

“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 →
3

Use tools when the task exceeds the model alone

If the task depends on fresh facts, calculation, or difficult reasoning, give the model search, code execution, or a stronger reasoning mode. Good agent design is not just better prompting; it is choosing the right external support for the job.

“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 →
4

Shift from doing the work to orchestrating the work

In agentic coding, your leverage comes from delegation, parallelism, review, and composition. Spend less time manually producing every step and more time deciding what should be delegated and what still requires your judgment.

“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
5

Protect your time for what agents still cannot do

As agents improve, routine parts of the workflow will be automated first. Your advantage moves toward selecting goals, spotting failures, and handling cases that fall outside the model’s current capabilities.

“The things that agents can do, they can probably do better than you or, like, very soon.”
No Priors interview, 2023

In his own words

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

1
“…this is more accurately described as the decade of agents…”
Dwarkesh Patel interview, September 2024
3
“…think of the tokens in the context window as a precious resource…”
Talk / online presentation, June 2023
4
“…don't overload it with irrelevant information…”
Talk / online presentation, June 2023
5
“…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
6
“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 →
7
“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 →
8
“…these models that are thinking and trained with reinforcement learning…”
Talk / online presentation, June 2023
9
“…we're now programming computers in English…”
Conference keynote, March 2024
10
“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 →
11
“I don't think I've typed like a line of code probably since December basically.”
No Priors interview, 2023
12
“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
13
“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 →
14
“…you're talking to a zip file…”
Talk / online presentation, June 2023
15
“I think that's probably holding back the neural networks overall because it's getting them to rely on the knowledge a little too much sometimes. For example, I feel agents, one thing they're not very good at, is going off the data manifold of what exists on the internet. If they had less knowledge or less memory, maybe they would be better. What I think we have to do going forward—and this would be part of the research paradigms—is figure out ways to remove some of the knowledge and to keep what I call this cognitive core. It's this intelligent entity that is stripped from knowledge but contains the algorithms and contains the magic of intelligence and problem-solving and the strategies of it and all this stuff. There's so much interesting stuff there.”
Dwarkesh Patel interview, September 2024answer page →
16
“I call pre-training this crappy evolution.”
Dwarkesh Patel interview, September 2024
17
“…we're not building animals. We're building ghosts or spirits…”
Dwarkesh Patel interview, September 2024

Reflect

  1. Pick one recurring task in your work. Which parts could an agent handle today, and which parts still require your judgment because the agent would fail or drift?
  2. How are you currently managing model context? Where might irrelevant history, missing tools, or lack of persistent memory be lowering quality?
  3. If your role shifted from direct execution to delegation and review, what new skills would matter most for you?

Check your understanding

1. Why does Karpathy think strong AI agents are a decade-long project rather than an immediate product category?
2. What is the main practical implication of Karpathy’s view of the context window?
3. In Karpathy’s agentic coding workflow, what becomes the human’s highest-leverage role?

Go deeper

Search every transcript
Open the full search page →