Built-incontext management
Distractors
Distractors
Files or code snippets that are topically related to the query but do not contain the answer can cause the model to lose focus or hallucinate.
Related Articles
Anthropic
Context Windows
Claude API Documentation
Anthropic
Long Context Window Tips
Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems.
Google AI
Long Context
Learn about how to get started building with long context (1 million context window) on Gemini.
Built-in
Progressive Disclosure
Instead of loading an entire codebase—which would immediately overwhelm the attention budget—modern agents use JIT context. The assistant dynamically loads only the necessary data at runtime.