Stage 3 · Teens · Advanced Topics

Context Engineering & Long Context

Deliberately curating what goes into the context window.

As context windows have grown to hundreds of thousands of tokens, a new discipline has emerged: context engineering — deliberately deciding what information to include, exclude, summarize, or compress in a prompt, rather than just stuffing everything in.

More context isn't always better: irrelevant or poorly organized context can distract the model and degrade performance, even if it technically fits.

Curating the Context Window
Full 40-message chat log
Entire 80-page PDF manual
System instructions
User's actual question
Unrelated tool output from 10 steps ago
Everything gets dumped in — most of it irrelevant to the actual question, diluting the model's attention.

Toggle between an uncurated dump and an engineered context for the same question.

All lessons in Stage 3: Agents and safety