From prompts to context
An agent refunds the wrong customer, and nobody touched the prompt. The problem was everything else the model was reading. Context engineering is the job of deciding, at every step, exactly what the model sees, and it's where most agent bugs are found and fixed.
In this lesson you'll learn to
- Explain what context engineering is and how it differs from writing a single good prompt.
- Name the parts of a model's context in an agent (instructions, tools, examples, history, retrieved data, tool results, memory) and who controls each.
- Recognise the four common context failures (missing, wrong, too much, conflicting) and trace a bad answer to one of them.
- Build context with code at each step and log exactly what the model saw.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.