Skip to content

CCAR-P · Domain 3: Integration · 21% of the exam

Task 3.7: Progressive Discovery vs. Monolithic Context Loading

Deciding between loading tools, files and instructions only when they are needed and putting everything into context at the start, by the task's context needs and its tolerance for delay.

Study it

  • Progressive discovery versus loading everything up front

    Partly covered by: Context Windows

Sample questions

Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.

Question 1 · choose 1

A law firm's contract-review agent works from a short negotiation playbook that applies to every task and a library of 40,000 contracts that changes only when deals close. A typical task needs the playbook and three or four contracts. Reviewers want the agent to start useful work quickly, and the architect must decide what the agent loads at the start versus on demand. Which strategy fits these context demands?

  1. ALoad the playbook and as many contracts as fit into the context at the start of every task
  2. BLoad nothing at the start and let the agent discover the playbook and the contracts with its search tools on each task
  3. CSummarize the whole library into one digest at the start of every task, and let the agent answer from that digest
  4. DLoad the playbook at the start, and let the agent find and open the contracts it needs with search and file tools
Show the answer and why
  • ALoad the playbook and as many contracts as fit into the context at the start of every task

    Incorrect

    Context engineering aims for the smallest set of high-signal tokens; thousands of unneeded contracts work against that.

  • BLoad nothing at the start and let the agent discover the playbook and the contracts with its search tools on each task

    Incorrect

    Content every task needs is the part a hybrid strategy retrieves up front for speed.

  • CSummarize the whole library into one digest at the start of every task, and let the agent answer from that digest

    Incorrect

    Overly aggressive summarization can lose subtle but critical details whose importance only shows later.

  • DLoad the playbook at the start, and let the agent find and open the contracts it needs with search and file tools

    Correct

    A hybrid strategy retrieves some data up front for speed and explores the rest just in time; it suits less dynamic content.

Anthropic's context-engineering guidance describes a hybrid strategy: retrieve some data up front for speed, and let the agent explore further on its own just in time, as Claude Code does by loading CLAUDE.md up front and using glob and grep for files. The guidance notes that the hybrid strategy suits contexts with less dynamic content, such as legal or finance work.

Question 2 · choose 1

An architect plans progressive discovery for an agent with a large tool catalog by using the Claude API's tool search tool, so that most tool definitions load only when needed. Which search variants does the tool search tool offer?

  1. AEmbedding search and keyword search, chosen automatically per request
  2. BFull-text search over tool code and over tool documentation
  3. CA regex variant and a BM25 variant, either of which searches the tool catalog
  4. DOnly one variant, configured per tool with a search_mode field
Show the answer and why
  • AEmbedding search and keyword search, chosen automatically per request

    Incorrect

    The documented variants are regex and BM25.

  • BFull-text search over tool code and over tool documentation

    Incorrect

    The tool searches tool definitions with regex or BM25.

  • CA regex variant and a BM25 variant, either of which searches the tool catalog

    Correct

    The tool search page lists both variants for supported models.

  • DOnly one variant, configured per tool with a search_mode field

    Incorrect

    The page lists two variants.

The tool search tool lets Claude find deferred tools on demand instead of loading every definition up front. It comes in two variants, a regex variant and a BM25 variant, available on the models the tool search page lists.

Practice domain 3 →Practice all domains →