Treat prompts, examples and the context window as the program: condition the model toward the answer you want, give it tokens to reason, and supply context in forms LLMs can read and act on.
An LLM imitates the full quality range of its training data and spends a fixed amount of compute per token, so it needs explicit conditioning. Useful tools include few-shot examples, step-by-step reasoning, self-checks, exact output formats and clean context. Karpathy extends the same idea to infrastructure, arguing that documentation and services should be legible and actionable for agents.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
What following it looks like
Asks the model to work step by step and to check its own answer
Includes concrete input-output examples and an exact output format
Starts a new chat when switching topics and pastes current docs when the model's API knowledge is stale
Writes Markdown docs and CLI commands for agents instead of 'click here' instructions
Evidence · 12 quotes from 3 videos
Each quote was matched word for word against the transcript. Tap the time to hear it.
31:33Basically, feel free to ask for a strong solution.
31:37Say something like, you are
31:38a leading expert on this topic.
“So when you just change the URL from GitHub to get ingest then uh this will actually concatenate all the files into a single giant text and it will create a directory structure etc.”
9:27because it it requires quite a bit of thought to sort of derive answers to
9:28thought to sort of derive answers to these questions. So, in an uh basically
9:31these questions. So, in an uh basically when you ask it to uh
9:33when you ask it to uh think step-by-step, it gets to break
9:35think step-by-step, it gets to break down the problem, and it's not thinking
“and it's not thinking too much per token. And so it has more tokens, and it has more time to think, and then it actually has a higher chance of getting the answer.”