AI Learning Hub › Learn AI › Self-Paced Courses › Agents Without the Hype › Give It Context

Module 3 ยท Beginner

Give It Context

What information the system can see when it decides, why context windows have limits, and why handing over everything you have is rarely the right move.

By the end

  • Explain what context means in an agent system
  • Distinguish the job instructions from supporting reference material
  • Recognize when important context is missing
  • Recognize when irrelevant or stale material may make the task harder
  • Build a focused context set for a task
  • Explain why information should not be included merely because it is available

The model cannot use what it cannot see

Three modules, three questions:

  1. Module 1 — Who decides what happens next?
  2. Module 2 — Which decisions should the human make before the work begins?
  3. Module 3 — What information should be available when the remaining decisions are made?

Module 2 gave the agent a bounded job. But the job alone does not contain all of the information needed to perform it. For the fictional briefing, the agent might also need current product information, documentation, information about limitations, and information about the intended audience.

The information available while the model makes a decision is its context. But “available” should not mean “everything we can find.”

Three more words to learn

Context

The information available to the model when it decides what to do next.

Reference material

Task-specific information provided for the model to consult rather than invent.

Context window

The finite working space containing information the model can consider at a given point in the task.

These are the beginner versions. Anthropic’s engineering guidance defines context far more precisely, and in units this course does not need. The Sources section gives the technical definition beside ours.

Same job. Different context.

The job does not change in this module. Only the information supplied to perform it does.

The assignment, unchanged from Module 2

Prepare a one-page background briefing for a faculty member who is considering whether to explore a new AI research platform.

Same bounded job, same success condition, same boundaries, same stop condition.

What follows are three descriptions of what information would be made available. They are not model transcripts, and nothing here was run through a model.

Context A — Almost nothing

Available

  • the bounded job from Module 2; and
  • the platform’s name, as the faculty member gave it.

Nothing else.

What problem would this create?

Reveal the discussion

The job may be clear, but the factual basis for completing it is missing. Every element of the success condition — what the platform does, two limitations, three primary sources — requires information that is simply not present.

Without a permitted way to obtain the missing information, the system should reach the Module 2 stop condition rather than invent a briefing. A well-written job cannot replace missing evidence.

This is worth sitting with, because the instinct when a result disappoints is usually to rewrite the instructions. Context A is a reminder that the instructions may not be the problem.

Context B — The whole folder

Available

  • the bounded job;
  • the current official product overview;
  • the current product documentation;
  • the current privacy and data-use page;
  • pricing information;
  • a two-year-old press release;
  • a long report about an unrelated area of AI regulation;
  • notes from a meeting about a different product;
  • an undated marketing PDF; and
  • a private email thread unrelated to the task.

More information must be better, right?

Reveal the discussion

No.

This set mixes five different kinds of thing:

  • relevant material — the overview, the documentation, the privacy page;
  • stale material — the two-year-old press release;
  • uncertain material — the undated marketing PDF, whose currency nobody can assess;
  • unrelated material — the regulation report, the notes about a different product; and
  • information the task does not need at all — the private email thread.

The problem is not merely that the folder is large. The problem is that the agent now has to distinguish signal from material that should never have been part of the task.

Work that you could have done once, in advance, by not including a file, has instead been handed to the system to redo on every decision.

The private email deserves a separate point, because it is not really about distraction at all. Information should not be exposed to an AI task merely because someone happens to have access to it. Whether the email would confuse the model is the smaller question. It is simply not information this task needs, and having access to something is not a reason to include it.

Context C — Selected for the task

Available

  • the bounded job;
  • the current official product overview;
  • current product documentation relevant to research features;
  • current official privacy and data-use information;
  • current pricing and access information, if cost or access matters to the faculty member’s decision; and
  • source titles and dates, so currency can be assessed.

This is not the one universally correct set, and a different faculty member with a different question would justify a different list. This context set is smaller because the task is specific — not because smaller is automatically better.

The job and the context do different work

Job

Tells the system:

  • what outcome is wanted;
  • what completion looks like;
  • important boundaries; and
  • when to stop.

Context

Gives the system information it can use while deciding:

  • what is true;
  • what is relevant;
  • what remains uncertain; and
  • what step might be useful next.

A good job does not make weak context strong. Good context does not make an undefined job clear.

Give it something to consult

Not everything you supply is an instruction. The official product documentation is not telling the system what to do; it is information the system can look things up in while carrying out the instructions it already has.

Instruction

“Identify two important limitations or unanswered questions.”

Part of the job. It says what to do.

Reference material

Official documentation describing which research features currently exist.

Not part of the job. It is something to consult while doing it.

Mixing the two up is a common way for a task to go sideways — a document pasted in without explanation can read as a new set of orders rather than as something to check against.

Reference material does not automatically become true. Supplying a document means this information is available for consideration. It does not mean the material is current, the author is reliable, every statement is accurate, or that conflicting sources disappear. Context is information, not a truth guarantee.

Help the agent tell one source from another

Useful context keeps enough identifying information for its own reliability to be judged: the source, the title, the date where one is available, and the relevant section or where the material came from.

This matters because a folder flattens things. In Context B, an undated marketing PDF and the current official documentation arrive looking equally authoritative — two files, side by side, with nothing to separate them. An undated brochure should not silently outrank current documentation just because both were in the same folder.

Keeping provenance visible preserves the information someone needs in order to weigh one source against another, which is a separate concern from citation formatting.

Context has limits

A model does not have an unlimited pile of information continuously in view. The working space is finite, which means something eventually has to be left out — and if you do not decide what, something else will.

Products manage this differently. Longer-running systems may:

Not every agent does each of these, and how any particular product handles it is an implementation question this course does not need to answer. This is another reason “give it everything” is not a durable strategy.

There is no number to memorize here. Published limits differ by model and change often, and calculating them is not the skill this module is teaching. The useful idea is simply that the working context is finite, so selection matters.

Context does not stay frozen

So far this module has described context as though it were assembled once, before the work starts. For a single response that is roughly true. For agent work it is not.

As an agent works, new information becomes available:

  1. it begins with the job and the reference material;
  2. it examines one source;
  3. the result becomes relevant to its next decision;
  4. it may decide another source is needed; and
  5. those intermediate results become part of what shapes later choices.

Agent work is not only “prompt in, answer out.” The information available for the next decision can change as the work progresses.

A later module returns to what that means in practice.

Missing context should stay missing

Suppose the briefing needs current information about how the platform handles uploaded documents. None of the supplied reference material addresses it, and no permitted tool can retrieve it.

The appropriate behavior is to identify the missing information — not to fill in the most plausible answer.

This is the Module 2 stop condition doing its job. A gap in the context is a fact about the task, and reporting it is a real result. The most plausible answer, written confidently, is worse than no answer, because it looks exactly like a researched one. Knowing what is missing is part of using context well.

Build the context set

Your turn. You are preparing the same one-page faculty briefing. These eight items are available:

  1. The faculty member’s request and desired one-page format
  2. The platform’s current official feature documentation
  3. The platform’s current official privacy and data-use page
  4. The current pricing and access page
  5. A positive independent review published two years ago
  6. An 80-page report about AI regulation that never discusses this platform
  7. A private email thread about an unrelated technology
  8. An undated product brochure found in a shared folder

Sort each one into a category before reading on. Two of the eight are genuinely arguable, so resist the urge to make this a tidy list of right files.

Three categories

Include
This belongs in the working context for this job.
Leave out
This should not be part of the task.
Investigate first
This might belong, but something needs checking before it can be relied on.
One possible review

Include

  • 1. Faculty request. It defines the actual job and audience.
  • 2. Current official feature documentation. Directly relevant primary information.
  • 3. Current official privacy and data-use page. Directly relevant to understanding important platform behavior.
  • 4. Current pricing and access page. Include if access or cost matters to the decision; otherwise it may not deserve working-context space.

Leave out

  • 6. Unrelated AI-regulation report. Length does not make it relevant.
  • 7. Private unrelated email. It is unnecessary for this task and should not be exposed merely because it is accessible.

Investigate first

  • 5. Two-year-old independent review. It may provide useful perspective, but check whether its claims are still current, and decide whether secondary material belongs in a job built around primary sources.
  • 8. Undated product brochure. Determine source and date before relying on it.

Reasonable people may make different choices about items 4 and 5. The important skill is being able to explain why the information belongs in the task.

Relevance beats accumulation

It would be easy to read this module as “less context is better.” That is just as wrong as “more is better,” and Context A is the proof: a starved task fails as surely as a flooded one. The goal is enough context to support the decisions the agent needs to make — without unnecessarily adding information that is irrelevant, stale, confusing, or inappropriate to expose.

Neither “more” nor “less” is the variable that matters. Fit is.

The job tells you what context matters

Context selection is not a separate skill from Module 2. It begins with the job, which is why the job comes first.

The job helps determine what belongs in context. Context helps the agent pursue the job.

Context is more than documents

One last widening, because it is easy to finish a module like this thinking context means uploaded files.

Depending on the system, context may include:

Notice that two of those are not things you upload at all. The results a tool returns become context the moment they come back, which is the same point the earlier section made about intermediate results.

“Prior conversation” here means the current piece of work. This module is about the information available for the decision being made now. Whether a product carries anything over between separate sessions is a different question, with different controls, and this course does not assume any product does.

What to notice

Context is the information you make available for the decisions the agent needs to make, which is narrower than everything you could hand it.

Before you continue

You are ready for Module 4 if you can: