Context Engineering for Agents - Lance Martin, LangChain
Sep 11, 2025 · 1:03:18
Lance Martin from LangChain discusses context engineering for AI agents, arguing that managing context from tool calls is the key challenge and introducing five techniques: offloading, reducing, retrieval, caching, and context isolation. Offloading saves raw tool call outputs to disk and passes only summaries, drastically cutting token usage—Martin's deep research agent went from 500,000 tokens per run to much less. Manus uses file system offloading and warns that irreversible pruning risks information loss, while Cognition advocates fine-tuned summarization for agent-agent boundaries. For retrieval, Martin contrasts Windsurf's multi-step indexing with Claude Code's agentic search using grep and llms.txt, finding the latter more effective. He applies the Bitter Lesson to agent engineering: his own Open Deep Research evolved from a highly structured workflow to a simple agent loop as models improved, and he warns against rigid abstractions that hinder adaptation.