Anatomy of a context
System, user, history, examples, retrieved data and tool results.
Module 05 · Context
Construct the world the model reasons inside.
What you’ll learn
System, user, history, examples, retrieved data and tool results.
Who wrote each part, and how far to trust it.
A deliberate order, and removing what pollutes the window.
Why the prompt can’t fix it, and how systems defend in layers.
Applied exercise
Redesign an overloaded assistant context with conflicting instructions, irrelevant history and poor retrieval.
Cheat sheet
One page you keep: the questions to ask on every project, the rules of thumb, and a template you can use on your own product. All ten come with The Book.
Leave at the door
| Myth | What’s actually true |
|---|---|
| Prompts fix it | Most failures are what is in the window. |
| More context is safer | Irrelevant tokens distract and mislead. |
| The prompt is secret | It can leak, and users talk around it. |
| Ask for JSON | Enforce a schema. Validate always. |
| One line stops injection | No prompt fixes it. Limit what it can do. |
Before you move on
An email assistant forwards the inbox.
Where did the design fail?
How we would answer
Every module ends on a question like this. Join the waitlist

The Context Alchemist
experiments with the ingredients of a model's input, turning messy information into sharper intelligence.
Episode 05 · Context engineering
Included with the course.
An AI character from the show, not a real researcher.