Context
Just-in-time context & progressive disclosure
Let the agent fetch what it needs through tools instead of preloading everything.
What it is and why it exists
Instead of stuffing every document and tool into the prompt, give the model lightweight pointers (file names, tool search, skill descriptions) and let it load details when needed. Fewer tokens, less distraction, and context that matches the current step.
Quick prototype
One search tool the agent can call.
In production, at scale
Tool search over large tool catalogues, skills or instruction files loaded on demand, file-system or search tools for code and docs, and clearing of results once used.
Vendors and tools
| Agent Skills | Instruction folders loaded when relevant |
|---|---|
| Tool search | Load tool definitions on demand from a large catalogue |
| Coding agents | grep / read-file tools instead of whole-repo prompts |
How it fails
- The agent never fetches what it needs because the pointer was vague
- More round trips → more latency
What the interviewer asks next
Preload or fetch on demand?
Preload what nearly every step needs and is stable (cacheable); fetch what’s large, rarely needed or step-specific.