Context engineering is the craft of arranging your files so an AI finds what matters without being told every time: which files it reads, in what order, and how much it can hold at once.
It’s the labor that turns a folder of notes into a queryable knowledge base. The AI does the reading. You decide what’s there to be read, and how it’s laid out.
Why it matters
An AI learns from what’s in front of it, live, in the moment (in-context learning). In browser chat, that’s the sentence or two you typed. In a CLI working inside your folder, it can be a hundred pages, or a thousand. But it can’t hold everything at once, and it won’t look in the right place by luck. It looks where your folder points it.
So the question shifts from “how do I word this prompt?” to “what does my folder tell an AI the moment it walks in?”
What it looks like in practice
None of this is code. It’s organization you’d recognize from any well-kept project:
- Name things for what’s in them.
wartime-rationing.md, notnotes2.docx. - Folders that mean something. By decade, by feature, by playtest.
- An index note at the root of each folder: what’s inside, and why.
- Standing instructions: a file the AI reads every time, so you’re not re-explaining your preferences in every conversation. Claude Code looks for
CLAUDE.md, Codex forAGENTS.md, Gemini forGEMINI.md. - Examples instead of rules. Hand it three good ones and ask for a fourth, rather than describing what “good” means.
An example
You keep a knowledge base of your grandmother’s cooking. When you ask “what can I make for the holidays that my cousin with the nut allergy can eat?”, the AI finds the right handful of recipes, because you named the folders by kind of dish, named the files for what’s in them, and put a short index note at the root of each folder.
Where to go next
- Queryable Knowledge Base: what context engineering builds.
- Your First Persistent Workspace: a hands-on tutorial where you reorganize someone else’s messy project folder. It teaches context engineering by doing it.
Covered in Seminar 1.