Anthropic: Effective context engineering
Guidance on selecting and maintaining instructions, data, history, tools, and agent state.
Compute College
Select the smallest set of relevant, authoritative, recent, and complete information needed for the next AI decision.
Information belongs in context when it is needed for the current decision, trustworthy for that decision, current enough to use, and complete enough to avoid a misleading answer. Relevance alone is not enough: an old policy can be relevant but wrong, and a current fragment can be authoritative but incomplete without its surrounding definition.
Memory trick: Relevant is not enough. Context should be relevant, right, recent, and sufficient.
Context selection affects answer quality and recurring workload cost. Sending everything increases tokens and makes important details harder to find; sending too little creates unsupported answers and retries. A clear inclusion rule also helps the application distinguish instructions, evidence, memory, and untrusted user content.
A refund agent may need the current refund policy, the order record, delivery status, and the customer’s current request. It does not need every customer order, the company’s entire policy library, a superseded policy version, or a completed tool result from an earlier task.
Example figures are illustrative calculations, not current quoted market prices.
Current example
Anthropic’s context-engineering guidance frames context as a curated set of tokens and information, not a document dump. That framing supports explicit decisions about what is relevant, authoritative, and useful at each step.
Guidance on selecting and maintaining instructions, data, history, tools, and agent state.
Source discipline: the reference explains the concept or method; it is not a substitute for measuring a production workload under its actual provider, model, and data conditions.
“Related” does not automatically mean “belongs in context.” A document can mention the right topic while using an old definition, an unsupported assumption, or a different customer or region. Relevance needs an authority and freshness check.
Practical takeaway
For one AI feature, create an inclusion checklist with relevance, authority, recency, completeness, and sensitivity. Apply it to ten retrieved items and mark why each item entered or stayed out of context.
Decision check: can the system explain why each context item is necessary and which source should win if two items disagree?
Compute College track
Step 11 of 18: What belongs in context