Anatomy of a context
System, user, history, examples, retrieved data and tool results.
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 |
|---|---|
| “A better prompt fixes everything.” | Most failures are what’s in the window. |
| “More context is always safer.” | Irrelevant tokens distract and mislead. |
| “The system prompt is secret and binding.” | It can leak, and users can talk around it. |
| “Ask for JSON and you’ll get it.” | Enforce a schema if you can. Validate always. |
| “One line in the prompt stops injection.” | No prompt fixes it. Limit what the system can do. |
Before you move on
An email assistant summarizes a message, then forwards the inbox.
Where did the design fail? Which fixes live outside the prompt?
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.
Coming soon · an AI character from the show, not a real researcher.