Just-in-time retrieval
For engineers
Letting the agent look things up when it needs them instead of pre-loading everything
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which information is the best candidate to pre-load into every run of an agent?
Check yourself · 2 of 5
You know an error string, "ECONNRESET at pool.js", but not which file raises it. Which tool fits best?
Check yourself · 3 of 5
An agent writes a call to billing.applyCredit(), a function it never opened in this session. What should it have done?
Check yourself · 4 of 5
A grep tool returns 600 matching lines into the conversation. What is the main cost?
Check yourself · 5 of 5
In progressive disclosure, what does the agent see before it opens a skill's full instructions?
Topics
- Pre-loading versus looking things up4 min read · Up-front retrieval compared with letting the agent fetch files, docs and data when needed, and hybrids of both
- Search tools agents use to find context4 min read · Grep, glob, file reads, doc search, web search and MCP resources, plus light references such as paths and URLs
- Signals that an agent should look it up4 min read · Unknown names, version-specific APIs, stale assumptions and low confidence as triggers to search before acting
- Latency and token cost of lookups4 min read · Each search adds turns, tokens and wait time; capping, filtering and summarizing results before they enter context
- Progressive disclosure with indexes and skills4 min read · Loading a short index or skill description first and the full content only when the task needs it
Start here
- Effective context engineering for AI agents (Anthropic) (opens in a new tab)ArticleFree
Defines just-in-time context, light references and the hybrid of pre-loaded data plus agent exploration.
- Context engineering for agents (LangChain) (opens in a new tab)ArticleFree
A vendor-neutral map of writing, selecting, compressing and isolating context for agents.
- Best practices for Claude Code (Claude Code docs) (opens in a new tab)DocsFree
Practical advice on instruction files, exploring code and verifying work with a coding agent.
Helps to know first
110 questions · last verified 2026-12