Context engineering
Notebook· 03.05· 150–180 min· Lesson 31 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Explain the two reasons agents fail, and why "wrong context" is the usual one.
- Inspect exactly what the model received on every call (a context probe).
- Control model context: system prompt, messages, tools, model and response format, per call, from state, store and runtime context.
- Control tool context (what tools read and write) and life-cycle context (what happens between steps).
- Diagnose a failing agent as a context problem, with a checklist.
Before you start
Lessons 03.01–03.04; Lesson 02.03 (@dynamic_prompt, @wrap_model_call).
