# LangChain explains how agents should retrieve context before the context window fills up

> Original title: Context Engineering Starts with Retrieval

- Source: LangChain Blog
- Published: 2026-10-23T04:00:00.000Z
- Bad Influence: https://badinfluence.news/items/darsq411vhy1f1h47dcd0pr91
- Original: https://www.langchain.com/blog/context-engineering-starts-with-retrieval

## Summary

LangChain says agents with limited context windows waste tokens and time on inefficient searches, and that Deep Agents' built-in glob and grep tools help by checking file names and keywords before loading content. For meaning-based lookups, it recommends adding a retrieval tool backed by a vector store, and it says research agents should decide when to search through agentic retrieval rather than a single up-front search.
