Home / Companies / LangChain / Blog / Post Details
Content Deep Dive

Context Engineering: How Deep Agents Remember

Blog post from LangChain

Post Details
Company
Date Published
Author
Jess Weng
Word Count
1,868
Company Posts That Month
13
Language
English
Hacker News Points
-
Post removed?
No
Summary

Context rot describes the decline in an AI agent’s reasoning and accuracy as long-running tasks fill its context window with instructions, tool outputs, files, and intermediate work. LangChain’s open-source Deep Agents harness addresses this through middleware that controls what enters and remains in the model’s active context: it offloads oversized tool results and user messages to retrievable files, summarizes older conversation material when token use approaches a limit, loads specialized task instructions as skills only when relevant, delegates noisy research to separate subagents, and stores reusable preferences in persistent file-based memory. Using a competitive-analysis agent as an example, the approach keeps raw exports, search results, drafts, and specialized formatting instructions from overwhelming the main agent while preserving access to underlying details when needed. The post emphasizes that effective context engineering should avoid irreversible truncation, keep compaction recoverable, isolate high-noise work, load knowledge on demand, allow configuration for different tasks, and retain memory in storage controlled by the user rather than a model provider.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Subagents 6 186 71 40 -29%
LLM 2 4,241 850 196 -30%
RAG 1 694 165 67 -20%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.