The context window as a workbench
Swipe to change step
Step 1 of 8. Think of the context window as a workbench. Only what is on the bench can be used, and a cluttered bench makes the work worse. The aim is the smallest set of high-signal tokens for the next step. Instructions (system prompt + repo map). Recent turns (the step in hand). search_docs (returns ids). Manual (5,000 pages). arrow from search_docs to Manual.
In this chapter
- 58.1Context engineering as a discipline5 min read
- 58.2Just-in-time retrieval4 min read
- 58.3Trimming and clearing tool results4 min read
- 58.4Subagent context isolation4 min read
- 58.5Notes files and external memory4 min read
- 58.6Worked example: context editing and a memory tool5 min read
- 58.7Skills and progressive disclosure6 min read
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…