Block I · Foundations · Lesson 5
Context engineering: give the model just what it needs
You'll see how to prepare what the model has in front of it: instruction files, skills, memory and documents. You'll learn what's worth loading every time, what only when needed and how to measure how much space each thing takes.
- 10 min
- 9 animated slides
- 4-question quiz
- Narrated in 6 languages
What you'll see in this lesson
- Context engineering: what the model has in front of it
Writing the question well isn't enough: the result depends on everything the model reads before answering.
- Always loaded or only when needed
The golden rule: what every task needs stays loaded; what's needed only sometimes is loaded on demand.
- CLAUDE.md and AGENTS.md: the project manual
They're text files in the project root that the agent reads at the start of every session.
- Rules that load only where they're needed
Split instructions by area of the project so the agent only reads the ones for the part it's working on.
- Agent Skills: knowledge that loads in stages
A skill is a folder with a SKILL.md and, if needed, scripts or templates the agent opens only when the task calls for them.
- Memory: what the agent remembers between sessions
Memory saves notes from previous sessions and loads them again at the start: it's useful, but you need to review it.
- Documents and connectors: search instead of paste
Instead of pasting everything, let the model search for what it needs in your files and apps when it needs it.
- Measure before you trim: /context in Claude Code
The /context command shows how much each part of the context takes up and suggests what you can optimize.
- Summary: keep the fixed part minimal, the rest on demand
Context engineering means giving the model exactly what it needs, at the moment it needs it.
Tools and concepts
- CLAUDE.md
- AGENTS.md
- Agent Skills
- /context
Sign in with your Google account to access this lesson and the whole course.